circuit_projects

Circuit Projects

Blogger

EEWeb Stats

Circuit's Blog :

Return to Blog

Controlling Servomotor Position from an Analog Sensor

Figure:1

Figure 1 

A microcontroller is used to control servomotors since they are the easiest way to start making motion where the position comes from the value returned from an analog sensor.

All sorts of reciprocating and periodic motions can be created using the servos although they are not designed to turn 360 degrees. The project utilizes a solderless breadboard where the Arduino microcontroller module, Flex sensors, RC Servomotor, 10K Ohm resistors, and 22 AWG hook up wire will be connected.

During the build up of the circuit, the power and ground on the breadboard is connected to the power and ground from the microcontroller. The 5V and any of the ground connections are used on the Arduino module. The Analog pin 0 is connected to any analog input while the RC servomotor is connected to digital pin 2 where the yellow wire of the servo goes to the pin while the red wire to +5V and black wire to ground.

There are many ways by which the servomotor can be controlled by the microcontroller program. First is by pulsing the servomotor with a digital pin and the other is using Arduino Servo library.

Rest of the project

Tags: controlling, analog,

Comments on this post:

There are currently no comments.

Login or Register to post comments.
 
Click Here