Computerized Spinning Button

by MikeTheMaker in Circuits > Gadgets

1394 Views, 4 Favorites, 0 Comments

Computerized Spinning Button

button12.jpg


While sitting around spinning a button on a string, I realized that this was not the best use of time.  By utilizing the power of the Arduino, along with a servo motor, battery and 3D printer; I was able to take this task--which a small child can do--and automate it.

 

button01.jpg
button02.jpg
Take a 20 inch long piece of 1 1/2 inch OD acrylic tubing along with an HS-311 servo motor, Arduino Uno, and 9 volt battery with holder and integrated battery switch.  Add a printed button, string, end pieces and servo motor holder.

Printed parts and design files can be found at:

http://www.thingiverse.com/thing:123939

button03.jpg
button04.jpg
Insert the end pieces into the tube.

button06.jpg
Add the servo motor holder.

button07.jpg
Drill out the end of the servo horn so that a piece of string will fit.

button08.jpg
button09.jpg
Insert the servo motor and servo motor cover.

button10.jpg
Run string through the button and both ends.  Cut and tie.

button1.jpg
button11.jpg
Wire according to the schematic.

Program the Arduino with the following  complex code:

#include <Servo.h>

 

Servo button;

 

 

void setup()

{

  button.attach(7);

 

}

 

void loop()

{button.write(30);

delay(500);

button.write(105);

delay(500);

}

button12.jpg
Wind the button up and turn on the switch. 

Now, your days of tedious button spinning are over!