Introduction: Computerized Spinning Button

Picture of Computerized Spinning Button


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.

 

Step 1:

Picture of

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

Step 2:

Picture of

Insert the end pieces into the tube.

Step 3:

Picture of

Add the servo motor holder.

Step 4:

Picture of

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

Step 5:

Picture of

Insert the servo motor and servo motor cover.

Step 6:

Picture of

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

Step 7:

Picture of
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);

}

Step 8:

Picture of

Wind the button up and turn on the switch. 

Now, your days of tedious button spinning are over!

Comments

Build_it_Bob (author)2013-07-29

I remember many years ago when my dad made me a "buzz saw" as he called it ...you just took it much , much further !
Nice!
Build_it_Bob

Thanks for the comment! I'm not sure why this is fascinating to operate, but it is. Of course, the larger the button's diameter, the easier the process is. I just got curious as to whether this could be automated, so I gave it a try. The Arduino code has to be one of the shortest software listings I have ever written that does anything.

About This Instructable

1,073views

3favorites

License:

Bio: I am an author and a maker. My current project is Santa's Shop. I'm working on a science fiction type book--more later. @EngineerRigsby
More by MikeTheMaker:Snowflake Gear WreathHappy Gear TableHappy Face
Add instructable to: