| 1 | [[Image(servo.png, align=right, width=600px)]] |
| 2 | = Servo Actuator = |
| 3 | |
| 4 | A servo is a small strong "motor" that have limits. Usiually they can be turned 180 degrees. |
| 5 | |
| 6 | == Software == |
| 7 | You can download the Arduino sketch [[http://code.mios.com/git_public/mios/arduino-sensor.git/tree/HEAD:/VeraArduino/Arduino/libraries/Vera/examples/ServoActuator?js=1?js=1|here]]\\ |
| 8 | |
| 9 | == Wire things up == |
| 10 | |
| 11 | Follow the instructions in ConnectingRadioModule to connect radio module. |
| 12 | |
| 13 | The servo has 3 wires. |
| 14 | Connect red wire to +5V of the Arduino board. Brown or black to to GND.\\ |
| 15 | Connect the last [mine was orange colored] wire to digital pin 3 of the Arduino board.\\ |
| 16 | |
| 17 | |
| 18 | Relays can use much power and should probably be powered separately. I has some problems with when servo reached its limit (and i tried to move it further). This was too heavy [consumed too much power] for the Arduino so it reset itself. You can fine-tune the boundaries of the servo by modifying the SERVO_MIN and SERVO_MAX defines. |
| 19 | |
| 20 | |
| 21 | == Hardware - Purchase guide == |
| 22 | |
| 23 | To build this sensor you'll need one arduino + radio specified in the base kit found here:\\ |
| 24 | http://code.mios.com/trac/mios_arduino-sensor/wiki/WikiStart#Buyingguide\\ |
| 25 | |
| 26 | With the following additional parts:\\ |
| 27 | 1x [[http://www.tkqlhce.com/click-7319170-10881559?url=http%3A%2F%2Fwww.aliexpress.com%2Fitem%2F2pcs-High-Torque-MG996R-Digital-Metal-Gear-RC-Servo-For-Helicopter-Car-Boat-Airplane%2F570595893.html|Servo Module]]\\ |
| 28 | |
| 29 | |
| 30 | TOTAL SENSOR PRICE: $7.6 (arduino + radio) + $6.5 (servo module) = '''$14.1''' |
| 31 | |
| 32 | [[Image(servo.jpg, width=500px)]] |