loading
 


The Flock Clock uses male and female drinking birds to display time.  Binary addition of the female birds (left to right) yields the hour.  Binary addition of the male birds (multiplied by five) yields the minute--within five minutes.  An Arduino processor provides the signals needed to drive Peltier cells which heat the fluid in the birds and causes the bobbing motion.  

102-1671-nd  Peltier  digikey.com
pb1124-nd  relay  digikey.com
drinking birds   teachersource.com
320081  5 volt 6 amp power supply for Peltier   jameco.com




Step 1:

 Cut a 12" by 12" piece of 1/4" thick plexiglass for the base.  Use four three inch long acrylic rods to support the upper plate (I cut the handle of a fancy toilet plunger for these rods).

Step 2:

 Fasten the plexiglass to the rods with screws.  Pre drill holes that are slightly smaller than the screw threads (1/16" smaller).

Step 3:

 Fasten the top plate with screws.

Step 4:

 Cut small notches in the base of the dunking bird (to accept the Peltier cells).

Step 5:

 Ideally, the Peltier cell should be a snug fit.

Step 6:

 Drill two holes in each bird's base--the holes should be toward the front of the base.

Step 7:

 Drill holes in the upper plate to match the holes in the bird base.  ONE AT A TIME.

Step 8:

 As you prepare each base, insert the bird body and bob it to its full extent both directions.  Be certain that the birds don't collide before you drill holes.

Step 9:

 Number each base, or you will have trouble later matching the base holes to the top plate holes.

Step 10:

 Solder about 15 inches of wire (#22 stranded) to each Peltier cell.  Place heat shrinkable tubing over the solder joint.

Step 11:

 Using epoxy, glue the Peltier cells to the bird base.

Step 12:

 In the upper acrylic plate, drill a hole behind the bird base (about 1 inch behind the base) large enough to slip both Peltier wires (and solder joints) through.

Step 13:

 Place the wires through the hole.

Step 14:

 Number the red wire as you prepare each bird base.  You will need to keep up with this to match the relays to the correct bird.  
Bird 1 Arduino pin 11, "8" hour
Bird 2 Arduino pin 10, "4" hour
Bird 3 Arduino pin 9,   "2" hour
Bird 4 Arduino pin 8,  "1" hour

Bird 5  Arduino pin 4, "8" minute
Bird 6  Arduino pin 3  "4" minute
Bird 7  Arduino pin 2,  "2" minute
Bird 8  Arduino pin 1, "1" minute


Step 15:

 Drill holes in perfboard and use nuts and bolts to prepare to mount the relay interface (perfboard).

Step 16:

 This is the schematic--quite a bit of wiring.  I mounted the relays in wire wrap sockets to make the work easier.  The pushbutton is used to "set" time.  The clock starts at 1 o'clock and each push advances the time five minutes.  The LED's help you to know where you are when setting the time (the birds have about a 100 second delay before they start or quit bobbing).

Step 17:

 
 
int second=0;
int minute=0;
int hour=1;  //start time at 0
int valm=0;
 
static unsigned long lastTick = 0; // set up a local variable to hold the last time we moved forward one second
// move forward one second every 1000 milliseconds
 
void setup() { //set outputs and inputs
pinMode(1, OUTPUT);pinMode(2, OUTPUT);pinMode(3, OUTPUT);pinMode(4, OUTPUT);pinMode(5, OUTPUT);
pinMode(6, OUTPUT);pinMode(7, OUTPUT);pinMode(8, OUTPUT);pinMode(9, OUTPUT);pinMode(10, OUTPUT);
pinMode(11, OUTPUT);pinMode(12, OUTPUT);pinMode(13, OUTPUT);
 
}
 
void loop() {
 
 
if (millis() - lastTick >= 1000) {
lastTick = millis();
second++;
 
}
 
// move forward five minutes every 300 seconds
if (second >= 300) {
minute++;
second = 0; // reset seconds to zero
}
 
// move forward one hour every 12 five minute intervals
if (minute >=12) {
hour++;
minute = 0; // reset minutes to zero
}
 
if (hour >=13) {
hour=1;
minute = 0; // reset minutes to zero
}
 
 
 
if(minute == 1 || minute == 3 || minute == 5 || minute == 7 || minute == 9 || minute == 11) {  digitalWrite(1, HIGH);} else {  digitalWrite(1,LOW);}
if(minute == 2 || minute == 3 || minute == 6 || minute == 7 || minute == 10 || minute == 11) {digitalWrite(2, HIGH);} else {digitalWrite(2,LOW);}
if(minute == 4 || minute == 5 || minute == 6 || minute == 7) {digitalWrite(3, HIGH);} else {digitalWrite(3,LOW);}
if(minute == 8 || minute == 9 || minute == 10 || minute == 11) {digitalWrite(4, HIGH);} else {digitalWrite(4,LOW);}
 
 
//hour units
if(hour == 1 || hour == 3 || hour == 5 || hour == 7 || hour == 9 || hour == 11) {digitalWrite(8, HIGH);} else {digitalWrite(8,LOW);}
if(hour == 2 || hour == 3 || hour == 6 || hour == 7 || hour == 10 || hour == 11) {digitalWrite(9, HIGH);} else {digitalWrite(9,LOW);}
if(hour == 4 || hour == 5 || hour == 6 || hour == 7 || hour == 12) {digitalWrite(10, HIGH);} else {digitalWrite(10,LOW);}
if(hour == 8 || hour == 9 || hour == 10 || hour == 11 || hour == 12) {digitalWrite(11, HIGH);} else {digitalWrite(11,LOW);}
 
 
 
valm = analogRead(0);    // add five minutes when pressed
if(valm<800) {
minute++;
second=0;
delay(250);
}
  
 
 
}
 
 This is the Arduino code.

Step 18:

 Mount the terminal strip.

Step 19:

 Drill holes and mount the Arduino processor board.

Step 20:

 Wire the relay interface board.  When connecting "pin 8" on the relays, use two runs of wire wrap wire.

Step 21:

 Insert relays into sockets.

Step 22:

 Electronics should look pretty good--before you tie everything together.

Step 23:

 Take a 1.5 inch piece of #22 solid, strip both ends and leave one end open to receive wire wrap wire from the relay board.

Step 24:

 Turn the relay board upside down and add wires to connect to Arduino and the terminal strip.  Don't forget that wires to the terminal strip have to survive turning the perforated board over (next step).  I ran those wires toward the lower part of the picture shown, then under the board (so they wouldn't get tangled when the perf board is flipped).

Step 25:

 Hide the wires as much as possible.

Step 26:

 Add the wires from the 5volt 6 amp power supply (each Peltier cell will consume about .7 amps).

Step 27:

 Bring the wires from each bird to the terminal strip (now, aren't you glad that you marked those wires!)

Step 28:

 Everybody is ready to bob!  If you've been wading through all of this for the secret on how to determine drinking bird sex, think "blue" for boy and pink for girl (and just what were you thinking?)
They are ubergeek, thats what makes them AWESOME!&nbsp;<br /> <br /> Great Ible,<br /> <br /> Thanks!<br />
no, geeks like innovative solutions that work.<br>Fanboys like solutions only they and a few others can use in order to make them feel elite.<br>Fun clock though, even if it's complicated to read
Troll alert :P
No, just a proud geek.<br>Same as how the guy who fixes my car is not an engineer, he's a mechanic.<br>You can't claim fanboys aren't defined by their smug elitism.<br>I'm not trolling, just looking to better define and use terms.
Nice job...but if I lose so much time to understant what time is I waste my time...so simple you see????<br><br>:)<br>
Binary Clocks are ubergeek...&nbsp; Drinking birds are ubergeek.&nbsp; The combination is unfathomable.<br /> <br /> You, sir, have quite possibly created the single coolest thing in existence.&nbsp; I&nbsp;gotta make one of these to sit on my fireplace mantel.&nbsp; :D<br />
Thank you!&nbsp;<br /> <br /> If you use a 12 ohm 3 watt resistor for heat, you can save a lot of money (and probably mount them more easily than Peltier cells).&nbsp; The start/stop response of a resistor is better--but&nbsp;resistors do get pretty hot and smelly.&nbsp; I haven't tried one long enough to see if the odor ever goes away. If you control the heaters with a power transistor, you could eliminate relays, diodes, sockets (cost and labor).<br /> <br /> The photos really don't capture the &quot;technosexy&quot; look . . . and the thing is fascinating even to those (most people) who don't want to tackle reading the time.<br /> <br />
(5 stars btw)<br />
what a bizare instructable ! full marks for effort, not so sure on practicality but then perhaps this wasnt supposed to be practical !<br />
<style type="text/css"><![CDATA[p.MsoNormal, li.MsoNormal, div.MsoNormal { margin-top: 0.0cm; margin-right: 0.0cm; margin-bottom: 10.0pt; margin-left: 0.0cm; line-height: 115.0%; font-size: 11.0pt; font-family: Calibri , sans-serif; } p.MsoPlainText, li.MsoPlainText, div.MsoPlainText { margin: 0.0cm; font-size: 10.5pt; font-family: Consolas; } span.a { font-family: Consolas; } *.MsoChpDefault { } *.MsoPapDefault { margin-bottom: 10.0pt; line-height: 115.0%; } div.Section1 { page: Section1; } ]]></style> <p class="MsoPlainText" style="margin-left: 42.0pt;"><span style="font-family: Courier New;">Exciting!!!!</span></p>
&nbsp;Which ones are male and which ones are female?
&nbsp;Blue for boys--pink for girls
I have a suggestion for those who may not have a box of Peltier devices around. Why not just use power resistors? All we need is some heat, here, not the heat and cold produced by the Peltier. You could cut the cost down by nearly $150 USD! Just a thought, folks.
incredible and totally awesome.<br /> i would have a hard time to tell the time in the morning.<br /> <br /> wouldnt it be nice to have that one on your wrist :)<br />
Drinking birds, peltier devices and time-keeping is something you would never expect to find in the same project, but you've done it ooooh sooooo successfully.<br /> Brilliant lateral thinking!<br /> <small>(I&nbsp;never realised they came in 'male' and 'female' varieties.&nbsp; I assumed that my recent 'male' one was a safer replacement fluid than the 'female' one I&nbsp;had years ago #;&not;)</small><br />
Oh wow. This is great.<br />
That's wild!&nbsp;<br /> Here is a thought: by the time one figures out what time it is with your fabulous contraption, that time is long gone. Which leads one to realize that time is fleeting. Conclusion: Carpe diem, enjoy the day, smell the roses, create wild things...like this clock.<br /> Thank you for sharing it so&nbsp;diligently! 5*<br /> <br />
Nice crazy clock.<br />
Wow, and I thought one of these things was cool. If you arranged it in an orderly fashion on a shelf or little case for each one, it would look even better!<br />
&nbsp;I quite agree with randofo! &nbsp;<br /> <br /> This is the ultimate in geek clocks!<br />
This is totally useless for telling the time, but just plain awesome! Good job (<em>Five Stars</em>!)<br />
Actually, it's not useless, it's <em>impractical</em>! Sorry!<br />
I think you have just blown my mind! Thank you for sharing this.<br />

About This Instructable

12,929views

22favorites

License:

Bio: I am an author and a maker. Current projects include Santa's Shop and Little Friend (ultracapacitor powered robot) on hackaday.io. I'm working ... More »
More by MikeTheMaker:Robot Servo With Idle Horn Servo Bracket Cabinet Light 
Add instructable to: