Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

2 Hour off, 20 Second on Timer... help please!

Status
Not open for further replies.

Electric Rain

New Member
Hello, I need a timer circuit that can latch a 12V DC relay for 20 seconds every 2 hours. It can run off of 120V AC or 12V DC. If necessary, it can run off of a voltage lower than 12V by using a voltage regulator, but I would perfer to avoid that if possible. Can someone help me please? Thanks. :)

Rain
 
Electric Rain said:
Hello, I need a timer circuit that can latch a 12V DC relay for 20 seconds every 2 hours. It can run off of 120V AC or 12V DC. If necessary, it can run off of a voltage lower than 12V by using a voltage regulator, but I would perfer to avoid that if possible. Can someone help me please? Thanks. :)

The obvious answer is a PIC, which would give a single chip (very cheap) solution, but requires 5V for it's supply - the relay could still work off 12V though.
 
Nigel Goodwin said:
Electric Rain said:
Hello, I need a timer circuit that can latch a 12V DC relay for 20 seconds every 2 hours. It can run off of 120V AC or 12V DC. If necessary, it can run off of a voltage lower than 12V by using a voltage regulator, but I would perfer to avoid that if possible. Can someone help me please? Thanks. :)

The obvious answer is a PIC, which would give a single chip (very cheap) solution, but requires 5V for it's supply - the relay could still work off 12V though.

Oh.. a couple of 1 shot timers will do it but you might pay around a dollar more(in final total) for those than a pic. Pic is obviously more flexible but also more time consuming to get started (esp if no prog exp.)

And since its only a couple of digital parts plus a relay coil trans, just put 6.8V zener diode off the +12 supply to the VCC (plus a resistor to gnd for >1 mA bias _if_ needed)

If you use 1 shot timers, a 2 hour time constant will not be accurate (maybe you dont need it to be) but you can always cascade stages to make smaller (more accurate times).. then of course there is crystal controlled PIC at the other extreme..

Which way do you want to go?
Dirt cheap? I need it yesterday fast?
How accurate & repeatable do the times have to be?
 
Another way you could do it would be electromechanical... you can get these mechanical timers for water softeners, that you could mess around with to get it to flip a switch every two hours. This switch would trigger a one-shot to activate a relay for 20 seconds.
 
monttyle said:
Another way you could do it would be electromechanical... you can get these mechanical timers for water softeners, that you could mess around with to get it to flip a switch every two hours. This switch would trigger a one-shot to activate a relay for 20 seconds.

That's exactly what I was going to say. I'm going to come up with a circuit and ask if it will work. Thanks guys.

Rain
 
You can also do this with two 4060 chips and one 555. 60Hz mains frequency as time-base give 128 min. (If i calculated correctly...)
 
Electric Rain said:
That's exactly what I was going to say. I'm going to come up with a circuit and ask if it will work. Thanks guys.

Rain
Don't forget switch noise. You'll want a big RC filter on the trigger line so it doesn't trigger the one shot when the switch is triggered AND when the switch is let go.
 
Schematic is attached.


Description:

P1 is a standard 2-prong plug that will plug into the outlet on the timer at this url: https://www.allelectronics.com/cgi-bin/category.cgi?category=779&item=TMR-11&type=store This timer is the type used many older, non-digitally controlled outside sidewalk lights or sprinkler systems. Since it only comes with 3 sets of start and stop pins, I can old turn the device that I need to control on three times a day, rather than every two hours, like I wanted at first. But this is okay now. The "start pin" and the "stop pin" will be placed right next to eachother. So it will only be on for about 1-2 minutes. However, I need it to be on for only 11 seconds. (I know, I said 20 seconds, but I need it to be 11 now.) Therefore, I've added a 555 timer operating in monostable mode that, with the combined R&C values, will give a one-shot output lasting for exactally 11 seconds. The trigger is wired to the relay that is wired to the timer which turns on at whatever time I want it to. The contacts of the relay who's coil is wire to the output of the 555 is going to be connected to the circuit that needs this timing. Sound good? :D

Rain

P.S. Um, the output of the 555 is the voltage of V+ right?
 

Attachments

  • untitled_552.jpg
    untitled_552.jpg
    24.5 KB · Views: 834
monttyle said:
Electric Rain said:
That's exactly what I was going to say. I'm going to come up with a circuit and ask if it will work. Thanks guys.

Rain
Don't forget switch noise. You'll want a big RC filter on the trigger line so it doesn't trigger the one shot when the switch is triggered AND when the switch is let go.

Um... RC filter? I uh... don't know what that is... :oops:
 
Question: Where's the switch in that schematic? I can't find it.

Here's what an RC filter looks like. It's a low-pass filter, it smoothes things out. Try 1K and 1uF maybye?
 

Attachments

  • rcfilter.png
    rcfilter.png
    1.1 KB · Views: 817
monttyle said:
Electric Rain said:
P.S. Um, the output of the 555 is the voltage of V+ right?
Close enough to it.

So a 12V relay will latch from it then?

What switch? Oh, btw, heh...... :oops: it seems as if I forgot to post the url to the timer... :lol: https://www.allelectronics.com/cgi-bin/category.cgi?category=779&item=TMR-11&type=store That timer is the timer that the 120V relay is going to plug into. That's probably the switch you were talking about. Oops! :lol:

Rain

Edit: Also, I think I can only place the clips a half hour apart. Therefore, it can be on for a minimum of a half hour. This would pose a problem with the 555 will it? What I mean is, the relay that is going to be pluged into the timer is going to HOLD the trigger of the 555 on for a half hour. So will that be a problem? Will it restart as long as the trigger is held low? (It's low right? Because it going to ground? I'm still a newbie. :lol: ) Thanks again.

Rain
 
Electric Rain said:
monttyle said:
Electric Rain said:
P.S. Um, the output of the 555 is the voltage of V+ right?
Close enough to it.

So a 12V relay will latch from it then?
It should, a 555 is designed to drive considerable current. An LM555 should be able to handle 50ma without problems. You might want to put a 100 ohm resistor in the way of the coil, or it might short, damaging relay and/or timer.
What switch? Oh, btw, heh...... :oops: it seems as if I forgot to post the url to the timer... :lol: https://www.allelectronics.com/cgi-bin/category.cgi?category=779&item=TMR-11&type=store That timer is the timer that the 120V relay is going to plug into. That's probably the switch you were talking about. Oops! :lol:
No, the switches in your circuit. I see absolutely no switches in your schematic diagram whatsoever, not even on the relay.
 
Do you see the symbols above both relays that look like caps but larger? That's the symbol for a NO SPST relay contact.
 
Electric Rain said:
Do you see the symbols above both relays that look like caps but larger? That's the symbol for a NO SPST relay contact.
Oh, I see. :oops: Not the symbol I'm used to.

I'd modify your circuit a bit, to add a 10K resistor between pin 2 and +V... On the TTL version of a 555 chip, you can generally count on it being a logic 1 when left unconnected, but not always, and the CMOS versions could go bananas if you leave a pin open-circuited.

And I'd put that RC filter between the switch and pin 2, and a 100-ohm resistor between output and the relay coil.

And you'll have to modify the mechanical timer, of course. They're designed to turn on and off AC-power devices directly, not just open and close a circuit.
 
The revised schematic is attached. Is that good? Also, about the modification needed for the timer… I’m not sure I understand why it needs to be modified. You said they’re designed to turn on and off AC power devices. In the schematic, you can see that the 120V AC relay coil is terminated with a three-prong plug. (It’s actually supposed to be a two prong plug but my schematic designing program only has a 3-prong symbol in it’s library.) This plug is what plugs into the mechanical timer shown on the page I posted. If you read the description to the timer, you’ll see that is says it has a plug on the side of it for standard 2-prong plug devices. That’s why I’m plugging a 120V AC relay into it. I’m assuming you thought the 120V relay in the schematic was supposed to be the mechanical timer itself. The timer is not actually shown in the schematic. But, now that I think of it, what “modifications” are you talking about? Because if I can cut that relay out of the picture, that would save me some $$. 120V relays are expensive. I would open it up and check the inside of it out, but I don’t even have it yet.

Rain
 

Attachments

  • untitled_976.jpg
    untitled_976.jpg
    28.5 KB · Views: 375
TIMER

Hi,

The modification in the timer switch is to avoid the connection to the 120V AC supply. As for your application you only need the mechanical contacts, disconnect all wires to them and use these contacts instead of the AC relay ones.

Another way to use this timer would be to remove the wheel and install an optic emitter (¡!), very simple to do. Draw in your computer a black circle 3 inches in diameter with 24 white radial divisions. Print it in a transparent sheet and adhere it to the shaft (or to the wheel).

A led,very dimmed, and a phototransistor will detect the pass of each line switching on 6 minutes for each milimeter of width in the peripherial of the disk. Just a suggestion.

Regards.
 
There were some problems.

1) It was being triggered constantly, it never had a chance to shut off.
2) The 555 was able to drive the relay by itself, but when it was sourcing that much current it would never shut off.
3) 10M resistors are really hard to come by.

So I tied trig and reset together; that way it's forced to shut off. When the switch closes, it doesn't get triggered, but when the switch opens again, it triggers once and ONLY once(until next time the switch closes). Reset doesn't let it charge while trigger's being held high. This also has the nice side-effect of not caring much about switch noise.

The transistor is just an ordinary 2n2222 or something, out of one of radioshack's grab-bags of small NPN transistors. Practically any small NPN transistor should work.

I used a 1M resistor and a 10uF capacitor, and it seemed to provide around a 10-15 second delay. You might want to play around with the capacitance to get exactly what you want.

So here's the circuit that I tested and seems to work:
 

Attachments

  • 555timer.gif
    555timer.gif
    2.9 KB · Views: 594
Wow, that looks good to me! Thanks a lot for your help. All of you, but mostly you, monttyle. :wink: :) IRQ57, thanks a ton. You saved me some $$. I was pretty sure that's basically what I had to do, but thanks for re-assuring me on that. :) As for the rest of you, I thank you as well. Wish me luck guys, and I hope I haven't been too much of a pain. :p Thanks again guys!!! :D

Rain
 
Status
Not open for further replies.

Latest threads

Back
Top