Category:PCB Arduino

Group Administrators: 1 | Group Member: 81 | Group Threads: 86

Arduino is an open-source electronics platform based on easy-to-use hardware and software. It's intended for anyone making interactive projects. About Arduino and Arduino Projects sharing are appreciated.

Thread Reply
Connect small servo motors directly to an Arduino Reply 2017-02-15 21:26:44
204 views
1 comments
38 likes

Enrico Gensale

Leave A Message

Follow

You can connect small servo motors directly to an Arduino to control the shaft position very precisely.
Because servo motors use feedback to determine the position of the shaft, you can control that position very precisely. As a result, servo motors are used to control position of objects, rotate objects, move legs, arms or hands of robots, move sensors etc. with high precision. Servo motors are small in size, and because they have built-in circuitry to control their movement, they can be connected directly to an Arduino.
Most servo motors have the following three connections:
  • Black/Brown ground wire.
  • Red power wire (around 5V).
  • Yellow or White PWM wire.
In this experiment, we will connect the power and ground pins directly to the Arduino 5V and GND pins. The PWM input will be connected to one of the Arduino's digital output pins.
Experiment 1Hardware Required
  • 1 x TowerPro SG90 servo motor
  • 1 x Arduino Mega2560
  • 3 x jumper wires
  • Wiring Diagram
    The best thing about a servo motor is that it can be connected directly to an Arduino. Connect to the motor to the Arduino as shown in the table below:
    • Servo red wire – 5V pin Arduino
    • Servo brown wire – Ground pin Arduino
    • Servo yellow wire – PWM(9) pin Arduino
    Caution: Do not try to rotate the servo motor by hand, as you may damage the motor.
    Experiment 2
    This experiment is essentially the same as Experiment 1, except that we have added a potentiometer for position control. The Arduino will read the voltage on the middle pin of the potentiometer and adjust the position of the servo motor shaft.
    Hardware Required
    • 1 x TowerPro SG90 servo motor
    • 1 x Arduino Mega2560
    • 1 x 20kΩ potentiometer
    • 1 x breadboard
    • 6 x jumper wires
    Wiring Diagram
    Connect the circuit as show in the figure below:
    • Servo red wire – 5V pin Arduino
    • Servo brown wire – Ground pin Arduino
    • Servo yellow wire – PWM(9) pin Arduino
    • Potentiometer pin 1 - 5V pin Arduino
    • Potentiometer pin 3 - Ground pin Arduino
    • Potentiometer pin 2 – Analog In (A0) pin Arduino
    38 likes
    Statement: This post is only the personal view of the author and does not represent the opinions of ALLPCB.com.

    filippo.lalli

    Leave A Message

    Follow

    Pretty good and useful info to my job. Keep on checking your post.
    ThreadReply