Output Devices

Connect a Servor Motor to the Board

For my final project I used a servo motor to prompt the mechanism which opens the flower. When I created my board in Week06 I added a 3-Pin pinheader to my board to connect it with a servo motor. I then used a library in Week08 to program my board with the arduino, such that it is able to control the servo motor. The library is called Software Servo ( Library Homepage ) and encapsulates the control of the servor motor in simple commands such that one can set the angle of the servo motor with one command. With this it was pretty easy to controll the servo motor. One thing which was problematic was, that the motor needed its own power source. When it drew the power from the board it behaved strange. I checked the pins on my board with a voltmeter but everything seemed ok. After I connected the motor to it's own power source everything went well.

Entangling of the wire chaos:
  • Purple and yellow are ground and vcc for the servo motor
  • Thick black cable on the left is the power source for the motor
  • The brown cable is the data connection for the servo motor
  • The cables from the arduino to my board provided power at that moment.

Code File for the flower with the implemented servo commands