Go Down

Topic: Domino Clock (Read 12887 times) previous topic - next topic

SpencerH

Yeahhh!! First topic.

First of all I guess this will fit in here. And part 1 is now here: http://arduino.cc/forum/index.php/topic,6671.0.html

Well to continue:
Slapped the first layer of paint on the stones and lightly sanded it:

And to put it into perspective, I added a beer can oh and the circuit boards are done (will post the circuit and code when it's working nicely):


Onto something more electrical than wood and paint :)
So I mounted the LEDs in short pieces of drain pipe:

And to close the back I used some aluminium foil (for our American buddies that is tin foil or aluminum foil ;) ):


Looks like smooth sailing... well not really. The boards with the shift registers, in my finite wisdom I randomly wired the first one... doesn't sounds like a problem but with the whole dataArray stuff the all have to be wired exactly the same. Then there are the LEDs, the slight Dutchness inside me said: buy the cheapest, is best bro!! Now turns out is not best bro... They hardly give of any light, so had to order new bright ones. Either way progress is good, more updational goodness to come later today or tomorrow or whenever there is more to post.

Oh btw, I'm still not sure whether to make the stones clean black or roughen it up a bit for the aged look?? Any ideas??

stregoi

Clean black i guess ;)

Great work !! .. i was looking to those domino clocks too, and i wanted to make then for my school project ( quite a noob in electronics )
i wanted to make a couple of dominos for the seconds too, what do you think ?

It is possible to share your shematics for the circuit boards, so i can learn something :) ? ( evt in a PM )


stregoi

please is this the correct why to connect the shift registers ?

CrossRoads

What shift registers are those? Picture is too small to read.
If 74HC595, then you want to send Q7/ to the next Din.
You'll Shiftout out will send out 8 bits, even if you're not using it.

So how do electromagnets & H-bridges come into play? Will  you use the LED Hi/Lo level to drive a transistor to let current flow for those?
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

stregoi

yes that's exactly what i am using 74HC595, i am just sending Q7 to ser_data_in ( 14 ) to the next 74H.

well i am trying to make the clock work, and make a working schematic before, taking the next step changing the LED's with the magnets.

well the electromagnets, i was just thinking to remove the LED and put the electromagnet in sted, so when the swith is high the electromagnet is activated, the dot turns, and when the switch is low it gets disactivated and the dot turns to the original position.

The problem is that since it is a DIY electromagnet, i have to figure out to spol it and calculate the amout og V it is going to use ( i dont want to drain the battery.

chrissv


yes that's exactly what i am using 74HC595, i am just sending Q7 to ser_data_in ( 14 ) to the next 74H.


Hi,
I think you are supposed to wire the Q7* (also labeled as Q7'), pin 9, to the serial input of the next '595. The Q7* pin is specifically designated for cascading the chips.

Check out the data sheet here: http://www.nxp.com/documents/data_sheet/74HC_HCT595.pdf

-- Steven

CrossRoads

I'm thinking that electromagnet and "don't drain the battery" are not going to be compatible as described.
These guys
http://www.flipdots.com/EN/electromagnetic_displays/products/page-10/electromagnetic_status_indicators.html
talk about magnetic memory - So I'm thinking pulse of current flow one direction to flip the display, pulse of current flow the other direction to flip it back.
How does your DIY flip dot work?
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

CrossRoads

http://www.flipdots.com/EN/electromagnetic_displays/principle_of_operations/index.html
More info on how the commercial  units work.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

stregoi

@ Chrisv : i see now i should hook up the Q7' pin to DS and not the Q7 as i did.

@CrossRoard : i see what do you mean, i drawed my idea, so can you see if it works !



so when the magnet is activated, the to pols of the magnets go away from each other, when the magnet is inactivated, it is then atracted to the metal screw head, and stays there. so i dont know if the H-brigde is necessery, since i am not going to reverse the current.

i am stille strugling with the schematics since i am not that good to electronics.

Can i just switch the LED with the magnet or is there any consideretion i have to take ( outside current and resistans ) ?

CrossRoads

LEDs are limited to 20mA, I don't know if that would be enough current for you or not.
You could leave the LED in place, and in parallel add a higher current driver part like a ULN2803 with its own current limit resistor for the magnet.
The number of windings & wire guage & the core you use will all impact the impedance of the resulting coil & hence its current draw.
For example, measure the resistance of the contacts for a speaker, it will be around 8 ohm for many typical speakers. Your coil winding will have some resistance like that also. So take that into account, take your supply voltage into account, take the voltaga drop across your drive transistor into account, work out your current limit resistor from there.
Or you can do it experimentally - find  a higher wattage variable resistor, put it in series with the supply, the coil, and the transistor, with the NPN transistor like the ULN2803 being the bottom of the string going to ground.
Add a resistor to ground to an input pin, and a switch to +5 so you can make it momentarily high to turn it on.
Dial the resistor to highest resistance, and slowly bring it down until you get your response, or until something smokes :)
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

stregoi

That was a great help thank you .. i didnt see the schematic you made, so i did one my self. You think i could work ?



CrossRoads

Not like that.
You can't see the .jpg attachment in reply #9?

If you want the LED/Resistor there, connect it to the collector of  the transistor.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

stregoi

i See .. but please just bear with my, i am trying to understand. The ULN2083 has 18 pins, but i can only see 2 in your schematics.

what about hookinit the the shift register is it from the SW side ?

CrossRoads

Okay, here's a more complete picture. The transistor was meant to represent one driver of the ULN2803, and to provide a means to test if your electromagnet worked.

I stuck in the 7-driver ULN2003 as an example here, replace with the 8-driver ULN2803 if that's what you have.
Or go with the indivual transistors driven by the shift register out (with a series resistor, likethe input to the ULN part has)

For the shift register, you are using shiftout command?
So, datapin goes to SerDataIn
shiftclock goes to SerInClk
your latch control, an output that you will make go from Low to High after the Shiftout, goes to OutClk.

For example, here I shift out 2  bytes, then clock the output register
Code: [Select]

digitalWrite(outclock, LOW);  // set up output clock
// shift out highbyte
shiftOut(shiftdataout, serialclock, MSBFIRST, highbyte);  // clocks out 8 bits
// shift out lowbyte
shiftOut(shiftdataout, serialclock, MSBFIRST, lowbyte); // clocks out 8 bits
digitalWrite(outclock, HIGH);  // this transition makes the data show up on the outputs


OutH/ goes to SerDataIn on the next device.
OE/ goes to ground
SerCLR goes to +5V.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

stregoi

Ahhh i Understand now, that made a lot of sans ! thanks a lot !

last question ( quite banal indeed ! ) .. for the push buttons to set the hours and minuts, i am plannning to hook them to the analog pin 0 ( PC0 )  and 5 ( PC5 ) of the arduino, where the one leg is connected to the 5v through a resistor and the other leg is grounded.

i am also planning to use a RTC to get an accurate time, instead of the internal clock, using the schematic in the picture

is it the right way to do it ?


Go Up