Servo motor interfacing

Here, the S3003 Servo Motor is used for the purpose of interfacing. It can turn to a predetermined position. In general, the servo arm rotates 180 degree.  With the help of ardiuno programming, we can tell the servo to go to the required position.

Servo motor being a combination of the DC motor, control system and gears, its position can be adjusted by the control electronics in the servo.  The adjustment is done based on the duty ratio of the PWM signal. This data, regarding position of shaft is sent through the SIGNAL pin. The position data to the control should be sent in the form of PWM signal through the Signal pin of servo motor.

Procedure

Step1: Procure Components Required

  • MEP_ROBO Board with ATMEGA 328 IC.
  • USB Cable.
  • Computer with Arduino software.
  • Servo motor

Step2: Write the program in Arduino UNO IDE.

In this program the servo motor is made to rotate clockwise (0? to 180?) and anticlockwise (180? to 0?) using Arduino programming. In MEP_ROBO UNO board there are three PWM options to connect the servo motor. Here, the servo is attached to pin 9.

program

Step3: Connecting the motor with MEP_ROBO UNO board.

                Servo motor interfacing

                                                                                 Figure1: Connection Diagram

  • Connect the motor to the berg male strip provided on the board.

Step4: Connect USB cable to the board. Upload the program.

Step5: Download the program to the board.

Step6: Check the Output

The output will be a motor rotating clockwise (0? to 180?) and anticlockwise (180? to 0?).

Related Items