Pages: [1] 2 3 4   Go Down
Author Topic: Domino Clock  (Read 9901 times)
0 Members and 1 Guest are viewing this topic.
The Hague, Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 34
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley
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 smiley-wink ):


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??
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Clean black i guess smiley-wink

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 smiley ? ( evt in a PM )

 
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 437
Posts: 23660
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 29
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 437
Posts: 23660
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 437
Posts: 23660
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.flipdots.com/EN/electromagnetic_displays/principle_of_operations/index.html
More info on how the commercial  units work.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@ 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 ) ?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 437
Posts: 23660
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley


* electromagnet_driver.jpg (36.46 KB, 960x720 - viewed 40 times.)
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ?


Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 437
Posts: 23660
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 437
Posts: 23660
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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.


* electromagnet_driver.jpg (57.28 KB, 960x720 - viewed 55 times.)

* ULN2003_internal.jpg (41.24 KB, 960x720 - viewed 38 times.)
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ?

Logged

Pages: [1] 2 3 4   Go Up
Jump to: