vasanthkumarch / EXPERIMENT-NO--05-INTERFACING-ANALOG-OUTPUT-SERVO-MOTOR-WITH-ARDUINO-

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DATE:

NAME:

ROLL NO :

DEPARTMENT:

EXPERIMENT NO 05 INTERFACING ANALOG OUTPUT SERVO MOTOR WITH ARDUINO

AIM

To interface an Analog output (servo motor) and modify the angular displacement of the servo using PWM signal . COMPONENTS REQUIRED:

  1. Servo motor of choice (9v is preferred )
  2. 1 KΩ resistor
  3. Arduino Uno
  4. USB Interfacing cable
  5. Connecting wires
  6. Servo rated power supply (dc source )

THEORY

Servo motors and are constructed out of basic DC motors, by adding: • gear reduction • a position sensor for the motor shaft • an electronic circuit that controls the motor's operation Typically, a potentiometer (variable resistor) measures the position of the output shaft at all times so the controller can accurately place and maintain its setting. Servo motors are used for angular positioning, such as in radio control airplanes. They typically have a movement range of 180 deg but can go up to 210 deg.The output shaft of a servo does not rotate freely, but rather is made to seek a particular angular position under electronic control.

image

Figure-01 SERVO MOTOR SPLIT VIEW

Control An external controller (such as the Arduino) tells the servo where to go with a signal know as pulse proportional modulation (PPM) or pulse code modulation (which is often confused with pulse width modulation, PWM). PWM uses 1 to 2ms out of a 20ms time period to encode its information.

image

Figure-02 SERVO MOTOR PINS

image

Figure-03 SERVO MOTOR OVERVIEW

CIRCUIT DIAGRAM

image

FIGURE 04 CIRCUIT DIAGRAM

PROCEDURE:

  1. Connect the circuit as per the circuit diagram
  2. Connect the board to your computer via the USB cable.
  3. If needed, install the drivers.
  4. Launch the Arduino IDE.
  5. Select your board (If you the board is arduino uno, select accordingly).
  6. Select your serial port, accordingly ( E.g. COM5 )
  7. Open the file of the program and verify the error , clear if any errors that are existing
  8. Upload the program and check for the physical working.
  9. Ensure safety before powering up the device.

PROGRAM :

RESULTS:

Arduino uno interfacing with servo motor is learned and angular position is controlled .

About

License:BSD 3-Clause "New" or "Revised" License