Introduction: Drinking Bird Clock



This "Hours Only" Drinking Bird Clock project is an excerpt from my iPad app, "How to Make a Science Fair Project."  The hour--in binary--is determined by the motion of the birds.  A moving bird is a "one," and a still bird is a "zero."  From left to right, the birds represent, "eight, four, two, one."

This is intended to be a simple way to get "into" microcontrollers.  No soldering is required, only wire wrapping and twisting wires together.  The electrical work is primarily done on the breadboard, so things are just "pushed" into place. 

Step 1: Parts


Parts List

 

 

(1) 12 inch x 12 inch Clear Acrylic Plexiglass Sheet—1/2 inch thick   estreetplastics.com

(4) Transistors, 2n2222a  #38236  jameco.com

(4) Drinking Birds #DB-100  teachersource.com

(4) Machine Screws, 6-32 x 3/8 inch  local hardware or amazon.com

(1)Wire jumper, 2 inch long  #126360  jameco.com

(1)Wire jumper, 4 inch long  #126342  jameco.com

(1)Breadboard, 3.25 inch x 2.125 inch  #20601  jameco.com

(1)Wire wrap wire, red  30 awg  #22631  jameco.com

(1)Wire wrap wire, blue 30 awg  #22542  jameco.com

 (1) Microcontroller, mbed lpc 1768  #568-4916-ND  digikey.com

(4) Resistors, 10 ohm, 3 watt  #PPC10W-3JCT-ND  digikey.com

(1) Power supply, 5 volt, 3 amp  #271-2583-ND  digikey.com

 

 

Tools you may not have

 

(1) Wire wrap tool  #236785  jameco.com

(1) Wire stripper  #175098  jameco.com

(1) Voltmeter  #1536843  jameco.com

 

 

Misc.  electrical tape, hook and loop fastener (tape)

Step 2: Software

The mBed LPC 1768 microcontroller includes a cable to connect to your computer.  The mBed device will act as a USB drive.  The compiler is online and instructions for signing on are included with the mBed microcontroller.  The mBed has four "built in" LED's which will illuminate left to right just as our birds bob left to right.

Type in the software listed below, then "compile" (on the mBed website; all your programming work is done "in the cloud" at the mBed website).  When you compile, the complete code will be downloaded to your computer.  Transfer this file to your MBED USB device.


#include "mbed.h"

 

DigitalOut myled1(LED1);

DigitalOut myled2(LED2);

DigitalOut myled3(LED3);

DigitalOut myled4(LED4);

DigitalOut bird1(p21);

DigitalOut bird2(p23);

DigitalOut bird3(p25);

DigitalOut bird4(p27);

 

 

int main() {

    while(1) {

                

        //seven o'clock

        myled1=1;

        bird1=1;

        myled2=1;

        bird2=1;

        myled3=1;

        bird3=1;

        myled4=0;

        bird4=0;

       

        wait (1800);

        wait (1800);

    

       

        //eight o'clock

        myled1=0;

        bird1=0;

        myled2=0;

        bird2=0;

        myled3=0;

        bird3=0;

        myled4=1;

        bird4=1;

       

        wait(1800);

        wait(1800);

       

        //nine o'clock

        myled1=1;

        bird1=1;

        myled2=0;

        bird2=0;

        myled3=0;

        bird3=0;

        myled4=1;

        bird4=1;

       

        wait(1800);

        wait(1800);

       

        //ten o'clock

        myled1=0;

        bird1=0;

        myled2=1;

        bird2=1;

        myled3=0;

        bird3=0;

        myled4=1;

        bird4=1;

       

        wait(1800);

        wait(1800);

       

        //eleven o'clock

        myled1=1;

        bird1=1;

        myled2=1;

        bird2=1;

        myled3=0;

        bird3=0;

        myled4=1;

        bird4=1;

       

        wait(1800);

        wait(1800);

       

        //twelve o'clock

        myled1=0;

        bird1=0;

        myled2=0;

        bird2=0;

        myled3=1;

        bird3=1;

        myled4=1;

        bird4=1;

       

        wait(1800);

        wait(1800);

       

        //one o'clock

        myled1=1;

        bird1=1;

        myled2=0;

        bird2=0;

        myled3=0;

        bird3=0;

        myled4=0;

        bird4=0;

       

        

        wait(1800);

        wait(1800);

       

        //two o'clock

        myled1=0;

        bird1=0;

        myled2=1;

        bird2=1;

        myled3=0;

        bird3=0;

        myled4=0;

        bird4=0;

       

        wait(1800);

        wait(1800);

       

        //three o'clock

       

        myled1=1;

        bird1=1;

        myled2=1;

        bird2=1;

        myled3=0;

        bird3=0;

        myled4=0;

        bird4=0;

       

        wait(1800);

        wait(1800);

        

        //four o'clock

        myled1=0;

        bird1=0;

        myled2=0;

        bird2=0;

        myled3=1;

        bird3=1;

        myled4=0;

        bird4=0;

       

        wait(1800);

        wait(1800);

       

        //five o'clock

        myled1=1;

        bird1=1;

        myled2=0;

        bird2=0;

        myled3=1;

        bird3=1;

        myled4=0;

        bird4=0;

       

        wait(1800);

        wait(1800);

       

        //six o'clock

        myled1=0;

        bird1=0;

        myled2=1;

        bird2=1;

        myled3=1;

        bird3=1;

        myled4=0;

        bird4=0;

       

        wait(1800);

        wait(1800);

       

   

    }

}

 

Step 3:

     Start with a sheet of 12 inch by 12 inch acrylic (1/2 inch thick).  Mark four spots according to the template above.

Step 4:

Using a 1/8 inch drill bit, drill holes 3/8 inch deep into the acrylic.

 

 

Step 5:


     Remove the drinking bird from his leg base and drill a 3/16 inch diameter hole in the center of the bird’s leg base.

Step 6:


Drill 1/16 inch holes in each of the bird’s legs.

Step 7:


Insert a resistor into the leg holes.

Step 8:

Using a wire wrap tool, wrap a 9 inch long piece of red wire wrapwire around one end of the resistor.

Step 9:


 

Wrap a 9 inch long piece of blue wire wrap wire around the other end of the resistor.

Step 10:


  Using a  6/32 X 3/8 screw, fasten the bird’s leg base to the acrylic sheet.

Step 11:


Do the same with the other 3 birds.  Notice that  the adjacent ends of the resistors touch.  In the world of electricity, this is not a good thing.  It is called a “short circuit.”

Step 12:


 

     Bend the resistor wires toward the back of the bird to solve the problem.

Step 13:


 

  Now the four bases should look like the picture above with a red wire on one end and blue on the other of each bird.

Step 14:


Insert the bird bodies into the leg assemblies.

Step 15:


 

    Place the microcontroller onto the center of the breadboard.  The silver colored end of the

microcontroller should be at the top of the breadboard.

Step 16:


 

  Carefully push the microcontroller into the breadboard.  It will be a snug fit.  Be certain that all the pins are aligned with holes; you don’t want to bend a pin.

Step 17:

Cut the end of the wire coming from the 5 volt power supply. Separate the cable into it’s two component wires. Remove about ½ inch of black insulation from each of the wires using a wire stripper.



Step 18:


  Separate the two exposed copper ends of wire.  Plug the power supply into the wall. You can touch the copper wires, five volts will not hurt you.  Don’t let the wires touch each other, as this could damage the power supply.  Touch the wires to the probes of a voltmeter (voltmeter set on DC voltage).  If the needle on the meter moves to the right, then the wire touching the probe is positive.  If not, reverse the wires.  When the needle on the meter moves to the right, the wire touching the red probe is positive.  Mark that wire  “+” with a label or tape.

Step 19:


Wrap the “+” wire you just marked to one end of a 4 inch long red  jumper.  Make this connection as tight as possible.

Step 20:

Wrap this connection with electrical tape.

Step 21:


Plug the other end of the 4 inch red jumper wire into the breadboard—next to the red line on the right side.

Step 22:


Wrap the other power supply wire to one end of a 4 inch long black jumper wire.  Tape this connection.  Plug the open end of the black jumper wire into the breadboard on the left side.

Step 23:


Plug one end of a 2 inch long jumper wire into the hole next to pin number one of the microcontroller

Step 24:


 

Plug the open end of the 2 inch long jumper wire into a hole on the left side of the breadboard (in the column with the previously inserted black wire).

Step 25:


Plug one end of a 2 inch long jumper wire into a hole on the right side of the breadboard, in the column under the previously inserted red wire.

Step 26:


Plug the other end of the 2 inch jumper wire into  a hole next top in number 2 of the microcontroller

 

Step 27:


Plug the power supply into an outlet.  The microcontroller should turn on and three LED’s on the lower left should be illuminated.  Unplug the power supply after you have seen that it works.

Step 28:


 

Plug one end of a 2 inch long jumper wire into the bottom left corner of the breadboard.

Step 29:

Plug the other end of the 2 inch long jumper wire into the lower right hand corner of the breadboard, next to the blue stripe.

Step 30:

Using the wire wrap tool, take a red wire from bird number one and wrap it around one end of a 4 inch long red jumper wire.


Step 31:

 

Attach the red wires from birds two, three and four to the same place you just attached bird number one’s red wire.

Step 32:

Take the other end of this red jumper wire and insert the pin into the lower right side of the breadboard, next to the red line.

Step 33:

Turn a transistor over and examine the wire legs.  Take the leg that is opposite the tab and bend it out to the side. This leg needs to be bent up—it will not be going into the breadboard.  It is ok if it touches the metal side of the transistor’s case.

 


Step 34:


Insert a transistor in the breadboard next to pin number 21. The leg next to the tab goes into a hole next to the blue line (second hole from the right side). 

Step 35:


Take a blue wire from bird number one and wire wrap it to the transistor leg that you bent in an earlier step.

Step 36:


Take another transistor and attach it next to microcontroller pin number 23 in a manner similar to the last transistor.  Wire wrap a blue wire from bird number two to this transistor.

Step 37:

 

Repeat this step with a transistor next to microcontroller pin number 25.  Wire wrap a blue wire from bird number three to this transistor.

 



Step 38:


Repeat this step with a transistor next to microcontroller pin number 27.  Wire wrap a blue wire from bird number four to this transistor.

Step 39:

The breadboard is backed with an adhesive strip.  Remove the paper backing and place the breadboard on the acrylic in its final position. 

Step 40:


Remove the “+” tag from the power supply wire (it’s ugly).

Step 41:


Take a one inch long strip of a “hook and loop” fastener andattach (remove the paper backing to expose the sticky side)it to the acrylic.

Step 42:


Place the power supply wires on the fastener and secure the wires by pressing down the other side of the “hook and loop” fastener.

Step 43:


Press the wires down and arrange them so that the clock looks neat.  Plug the clock in and it will start running—displaying seven o’clock (the right three birds will bob).  There is no way to set the clock (that would have required more parts and programming).  You must start the clock at 7 A.M. or 7 P.M. if you want it to display time correctly.  If you want to really confuse your friends (they will probably have enough trouble reading the time using binary numbers), start the clock at a different time—like four o’clock—and mentally subtract three hours from the time displayed. Have fun!

For more detail--and a little fun--the iPad app, "How to Make a Science Fair Project" tells you more. http://itunes.apple.com/us/app/how-to-make-a-science-fair/id433405652?mt=8

Comments

author
jeanotP1314 (author)2016-05-13

That's a great one! Congrat!

author
jtaylor115 (author)2014-07-19

just found my favorite project of all time. thank you so much ordering parts list tomorrow for this one!

author
jtaylor115 (author)jtaylor1152014-07-20

Update- I was excited for this funny little project until I seen that the mbed alone was $70 ! project total investments need to really be included with th larts lost. im not sayin im entirely shunning this one but it will not be anytime soon that I will be tossing out $100+ for something small and meant to be a timekiller project.

author
J-Five (author)2011-10-29

I think someone has too much time on their hands.

author
stevemoseley (author)2011-10-18

While I'm not great at telling binary time, you just gotta love the birds. Great concept.

author
biospot (author)2011-09-15

I was quite impressed by this. I have a binary clock and it makes me think in binary to read it. Very good mental exercise.
the problem is you have to think in binary to tell the time. I think it would be better if you could set it up so one bird will tell the hours, one the minutes and one the seconds by the number of bounces. That will make people sit and watch it to count them. That will be even more entertaining.... :-)

Or, if you have this running from an app, how about having different birds bounce depending on the weather forecast. You could change the look of the birds for each weather type. One could wear sunglasses, one could have rail coat, or rain hat, and another could have coat, etc. That would be fun also.

Anyway this would be fun, but I am afraid it would take up too much space at my house to be truely usefull. Still good idea and great instructable.

author
ParanoidPilot (author)2011-09-12

Excellently daft project! I've written some mbed code that allows the use of your instructable as an actual clock. Since I have neither an mbed nor a set of drinking birds, I think you'd make better use of it than I will. PM me with either an email address to send the code to, or I'll put it on dropbox and send the link?
Jordan

author
Gunther45 (author)2011-09-11

Kinda of hard to use it as a clock. But I love Drinking Birds so A+++. Didn't know a resister would put that much heat out to change the birds. A larger scale project maybe even incorporating the time machine fountain would be interesting.

author
campingfriends (author)2011-09-10

cool!

author
wilgubeast (author)2011-09-09

This just blew my mind. I love those little drinking birds, and I thought that they couldn't get any better. But they did! Everything's better with a microcontroller. Plus, it tells time. In binary. Great work.

You should consider entering it into the Clocks Challenge.

author
MikeTheMaker (author)wilgubeast2011-09-09

Thanks! I'm always encouraged when people enjoy my "near useless" contraptions.

About This Instructable

13,845views

36favorites

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:Happy FaceJittery Servo RepairAutomated Climbing Bear
Add instructable to: