1
\$\begingroup\$

I'm looking for some help in a project of my own that i can't get off the ground. I wanted to make some mechanism that can automatically shift to a certain angle based on computer input. Ex. On a computer i enter 48 degrees, the mechanism (which is no bigger than a normal protractor) starts off flat at 180 degrees then shifts to 48 degrees after input. What programming software helps with this, how do i build this. If it helps i am a CS Major

\$\endgroup\$

closed as too broad by Matt Young, vicatcu, PeterJ, Brian Carlton, m.Alin Feb 3 '15 at 8:26

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

1
\$\begingroup\$

Most programming languages (C++, Java) allow you to interface to the computer's serial port (RS-232). If no physical serial port is available then you can use a low-cost UART-to-USB adapter.

Once you are able to send data out over serial you need to build something at the receiving end that interprets this data, probably a microcontroller (AVR, PIC, Arduino). Microcontrollers are very good at interfacing to low-level signals (e.g. analogue or digital 0-5V).

With the microcontorller you can control something like a linear actuator. This will allow you to physically move something. You will need a feedback system to know how far the linear actuator has travelled.

When you are able to successfully read the serial data from your pc program you then need to interpret the number and translate it to a value that corresponds with your linear actuator feedback (e.g. 48 degrees equals to 1.45V measured on an analogue input sent from your actuator feedback.

Based on how you asked your question I think you will have quite a learning curve to scale.

Good luck and feel free to come back here for any related questions you may have.

\$\endgroup\$
  • \$\begingroup\$ A common mechanism for this purpose is called a servo. So if OP does not want to design any hardware or do uC programming, search for "serial servo controller". \$\endgroup\$ – rioraxe Feb 3 '15 at 3:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.