Previous in Forum: Three Diesel Generators Synchronizing With National Grid Problem   Next in Forum: Transformer Foundation and Drainage
Close
Close
Close
26 comments
Rate Comments: Nested
Associate

Join Date: Feb 2019
Posts: 38

Timed Light Switch

02/15/2019 8:11 AM

Hi all,

A little backstory. Earlier this year I bought a bearded dragon. I was told they need typically 12 hours of light, and 12 hours of darkness, to maintain a healthy sleeping pattern. I am going to design a circuit with a microprocessor that switches a relay every 12 hours because there are some days where the light is on for up to 16 hours. So I am going to automate the process a bit. I was thinking about using 2 SPDT relays, one for the heat lamp, one for the UV lamp. Question is, am all I looking for is a SPDT relay with a 5VDC input for switching and a 120VAC output? The heat lamp is 60W and the UV lamp is 45W. Any recommendation for 2 good relays that I could use?

Register to Reply
Pathfinder Tags: bearded dragon design Relay
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru

Join Date: Apr 2010
Location: About 4000 miles from the center of the earth (+/-100 mi)
Posts: 9916
Good Answers: 1141
#1

Re: Timed Light Switch

02/15/2019 8:53 AM

There are timers used to control lights when on vacation that would probably do what you want...

https://www.amazon.com/electrical-timers/b?node=495340

Register to Reply Score 1 for Good Answer
Associate

Join Date: Feb 2019
Posts: 38
#4
In reply to #1

Re: Timed Light Switch

02/15/2019 9:18 AM

I would like to make my own.

Register to Reply
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#26
In reply to #4

Re: Timed Light Switch

02/21/2019 4:38 AM

It's not worth the effort when commercial versions are so readily available.

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply Score 1 for Off Topic
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 5826
Good Answers: 322
#2

Re: Timed Light Switch

02/15/2019 9:01 AM

Why dual throw?

Why not: single pole, single throw, NO (1 FORM A)

(You could go for dual pole if you want to switch live and neutral.)

Go to Digikey or mouser and search for relay then filter your results 'til you get what you want:

SPST-NO

SPDT

$2 or $40 (doing dual throw with a mechanical switch is easy: you just have a central rest position, but, with a relay it gets a lot more complicated).

__________________
If you spend all your time looking for people and things to complain about: trust me, you will find plenty to complain about.
Register to Reply
Associate

Join Date: Feb 2019
Posts: 38
#5
In reply to #2

Re: Timed Light Switch

02/15/2019 9:21 AM

Oh I actually meant DPST sorry. Throw connected in parallel, one pole for the hot leg of the heat lamp and one pole for the hot leg of the UV lamp.

Register to Reply
Guru

Join Date: Apr 2010
Location: About 4000 miles from the center of the earth (+/-100 mi)
Posts: 9916
Good Answers: 1141
#11
In reply to #5

Re: Timed Light Switch

02/15/2019 6:14 PM

Why DPST. Why not tie both the UV lamp and heat lamp to the load side of an SPST switch?

Register to Reply Score 1 for Good Answer
Power-User

Join Date: Mar 2011
Posts: 238
Good Answers: 14
#3

Re: Timed Light Switch

02/15/2019 9:07 AM

I have a $5 timer from Home Depot for controlling my turtles light cycle.

Register to Reply Score 1 for Good Answer
Associate

Join Date: Feb 2019
Posts: 38
#6
In reply to #3

Re: Timed Light Switch

02/15/2019 9:21 AM

I would like to make my own.

Register to Reply
Guru

Join Date: Jul 2016
Posts: 1377
Good Answers: 105
#13
In reply to #6

Re: Timed Light Switch

02/16/2019 12:38 AM

You may find it difficult to find a (5V) TTL level relay coil with enough mechanical force to close a 10-15A relay armature. There is also the back-EMF to consider as the coil is deenergized, a reverse polarity diode across the coil to protect your computer output. The drive capability of your computer output may require you have two relays, one small enough to not overload your computer output, to drive one heavy enough to switch your power circuit.

If you gang a day timer, it measures the passing of each day, with 12 hour stoppers, and wire a photocell to extend the daylight, if it gets dark before 12 hour light cycle expires. Run the timer continuously for consecutive 12 hour cycles. Turning the lights on at dusk and run them until the 12 hour stopper comes by, would that do it?

Cloudy day, the lights would run 12 hours at a time, one stopper turns them on, the other stopper turns them off. If there is plenty of light, no lamps needed, just like in the prehistoric times...

Register to Reply
Associate

Join Date: Feb 2019
Posts: 38
#14
In reply to #13

Re: Timed Light Switch

02/16/2019 1:57 AM

If its a 45W and 60W bulb, theres not a lot of current going thru this. The 60W itelf doesnt even go above 1 amp. I already have a flyback diode for back emf in my schematic I drew up earlier. Your last 2 paragraphs made no sense to me.

Register to Reply
Guru

Join Date: Jul 2016
Posts: 1377
Good Answers: 105
#21
In reply to #14

Re: Timed Light Switch

02/16/2019 4:50 PM

So you don’t need two relays, both loads can be fed from 1 source, without fear of overload.

Not sure why you would need computer control for this, except to perfect your personal skills. Maybe I’m making it more complex, not understanding how a simple 24 hour time switch as used for water heaters, would not be the easiest solution. I don’t understand how the lights could be on for 16 hours as you said, under those conditions, except if outside & natural light were considered. On days where there is less daylight than 12 hours, your outdoor light control would turn on, and give you light for the 12 hour balance. That’s the design of the 12 hour clock and photocell.

Maybe there is no outside light, then the 12 hour timer will work, I don’t then understand how you could get 16 hours of light, then?

Register to Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#7

Re: Timed Light Switch

02/15/2019 10:25 AM

The birds are keeping me up all night, I need sleep....

Look my beard is turning blue....I'm a blue beard now...

Time to go shoppin' boss....

__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply
Associate

Join Date: Feb 2019
Posts: 38
#8
In reply to #7

Re: Timed Light Switch

02/15/2019 11:45 AM

Oh wow, that's amazing! I'm guessing that's yours?

Register to Reply
2
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#9
In reply to #8

Re: Timed Light Switch

02/15/2019 11:54 AM

No need to cage the little beasties down here in Florida....they run wild...

__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply Good Answer (Score 2)
Guru

Join Date: Apr 2008
Location: Chicago
Posts: 3990
Good Answers: 144
#10

Re: Timed Light Switch

02/15/2019 4:14 PM

If you are capable of designing the circuit I would think you are capable of picking a good relay?

It seems very redundant but why not attach a relay to a vacation timer and use it like a contactor switch. Bam circuit designed.

My turtles are wintering outside in a pond I dug last spring.

Actually I had one big turtle but when the pond showed up so did another turtle.

The 70+ gallon aquarium was getting a little tight for the old girl.

Fingers crossed.. it will be very exciting to see them in the spring.

the pond has mostly frozen over but one day it hit 50 and my big turtle climbed out onto her rock for some quick sun.

At the bottom of the pond there is a circulator pump a bubble stone and a 250 watt submersible heater.

The tank is now more fishy than ever.

__________________
High Tolerance is Beautiful
Register to Reply
Guru
Australia - Member - New Member

Join Date: Feb 2008
Location: Australia
Posts: 2181
Good Answers: 255
#12

Re: Timed Light Switch

02/15/2019 10:36 PM

I'm wondering "Why bother"?

In nature they don't get regulated hours year round, summer up to 16 or more, winter 8 or even less.

I've marked as OT since doesn't add to the body of knowledge.

__________________
Just an Engineer from the land down under.
Register to Reply Off Topic (Score 6)
Associate

Join Date: Feb 2019
Posts: 38
#15
In reply to #12

Re: Timed Light Switch

02/16/2019 2:02 AM

Idk im just bored and i wanna keep my software/hardware designing skills in check. And I might just add buttons for time change or i might get lazy and go back in and edit the code to manually change time. I figured it would be a fun little project.

Register to Reply Off Topic (Score 5)
Power-User

Join Date: Jun 2010
Location: Amsterdam, Netherlands
Posts: 343
Good Answers: 32
#16

Re: Timed Light Switch

02/16/2019 5:53 AM

Not a joke... Pehaps place a proximity or micro-switch in one area of the cage with the idea of enabling the critters to chose their own On/Off times. Of course a human operaed manual and/or auto timer switch could be wired in parallel...(learning curve may vary.)

__________________
Humans are just smart enough to fool themselves.
Register to Reply
Associate

Join Date: Feb 2019
Posts: 38
#18
In reply to #16

Re: Timed Light Switch

02/16/2019 11:39 AM

I’m not sure if the dragon would be able to learn how to do that. He’ll probably end up having some existential crisis seeing he can control his world haha.

Register to Reply
Guru
Hobbies - CNC - New Member Popular Science - Biology - New Member Hobbies - Musician - New Member

Join Date: Dec 2008
Location: Canada
Posts: 3523
Good Answers: 146
#22
In reply to #18

Re: Timed Light Switch

02/17/2019 7:25 PM

Yeah, that can only lead to demanding a morning coffee, more internet surfing time, hosting raves for other dragons... all the trouble stuff.

__________________
incus opella
Register to Reply Off Topic (Score 5)
Guru

Join Date: Nov 2012
Posts: 633
Good Answers: 13
#17

Re: Timed Light Switch

02/16/2019 10:49 AM

do a search for something like an Arduino and a plug in shield (board) with relays or if you are designing your own use a driver transistor to fire the larger relays...

Register to Reply
Associate

Join Date: Feb 2019
Posts: 38
#19
In reply to #17

Re: Timed Light Switch

02/16/2019 11:42 AM

I’m not a big fan of the arduino. It takes away the beauty of having to design the pcb from scratch and figuring out the correct components. And yeah good idea, I’ll probably end up using some MOSFET for the switching.

Register to Reply
Guru

Join Date: Nov 2012
Posts: 633
Good Answers: 13
#25
In reply to #19

Re: Timed Light Switch

02/19/2019 4:15 PM

The processor used in Arduino is available $2< use "dead bug" construction or build your own PCB...

Register to Reply
Guru

Join Date: Apr 2008
Location: Chicago
Posts: 3990
Good Answers: 144
#20

Re: Timed Light Switch

02/16/2019 1:18 PM

Right again

__________________
High Tolerance is Beautiful
Register to Reply
2
Guru

Join Date: Oct 2006
Location: 44.56024"N 15.307971E
Posts: 8277
Good Answers: 270
#23

Re: Timed Light Switch

02/19/2019 5:19 AM

This will do it.Need 2.

https://www.sparkfun.com/products/13015

These are very durable.I have used them to control 3phase motors(3ea).

Opt-isolated input.

Never had a failure.

Lots of other good stuff that might interest you here also.

__________________
"A man never stands so tall as when he stoops to help a child." "Never argue with a stupid person.They will drag you down to their level and beat you with experience" "To create an apple pie from scratch, first you must create a universe"
Register to Reply Good Answer (Score 2)
Guru

Join Date: Apr 2008
Location: Chicago
Posts: 3990
Good Answers: 144
#24
In reply to #23

Re: Timed Light Switch

02/19/2019 6:16 AM

Ahhhh. Reminds me of my days doing automatic gates.

__________________
High Tolerance is Beautiful
Register to Reply
Register to Reply 26 comments

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

artsmith (1); geraldpaxton (2); harley (1); HiTekRedNek (1); JE in Chicago (3); Just an Engineer (1); kendall (1); PWSlack (1); Randall (1); Rixter (2); rwilliams (2); SolarEagle (2); tws26 (8)

Previous in Forum: Three Diesel Generators Synchronizing With National Grid Problem   Next in Forum: Transformer Foundation and Drainage

Advertisement