EveryCircuit
Contact
Reviews
Home
treii28
modified 6 years ago

Photoresistor Daylight Switch

0
12
332
04:40:47
I'm EE challenged and have been working on figuring this out all morning. Please let me know if this will work. I am trying to come up with a simple power switching circuit that will turn a heating element on during the day and off at night. I use the lamp set at 12vdc/15W to match the specs of the heating pad. The photoresistor I plan on using is 0.5Mohm (500k ohm) dark resistance and 10-20kohm light resistance. So I used the switch with the two resistors to represent the photoresistor. My power source is going to be 12v. And I have two types of N-channel mosfets on hand for the switching. IRFZ44n and IRF540 - I set the mosfet settings based on community recommendations and built around the Z44n.
published 6 years ago
treii28
6 years ago
oh wait - duh! I was thinking I couldn't test it until I got the photo resistors I ordered. But assuming they closely resemble the datasheet, I can emulate the photoresistor the same way I did in the simulation. I still appreciate any comments/suggestions
lmccoig
6 years ago
Might look over automotive switches, heat elements, and schematics for off the shelf module?
treii28
6 years ago
I already have the heat element attached to the birdbath and insulated. I got a 15C switch but ordered two more at 2C and 5C and just ordered the photoresistors. (I also tested the circuit and it appears to work, but hooked a heatsink on the mosfet to be safe at 15W)
2ctiby
6 years ago
Your photo-resistor is going to act like a variable resistor for voltage to the mosfet gate. Various gate voltages per cloud/sun is not like a straight on/off switch for your mosfet/heater (which you are simulating here with two fixed resistors). Your heater is probably not designed to work on varying voltage/current which will occur throughout each day as per this changing gate voltage, which will be reflected in the drain voltage/current to your heater load.
2ctiby
6 years ago
Being able to calculate your load drain current at any time may be something that you wish to look in to in the future. It involves the Width, Length and KP of your settings, along with the drain voltage, lambda, and Vov: (Vgs - VTO).... which can be matched to a datasheet mosfet setup, with the help there of the given Rds(on) with its matching Vov etc.... and then turn it completely on/off instantly at your chosen current or voltage point. You might want to seek a comparator circuit for now, using a 555 (or 7555) timer or op-amp with your mosfet driven heater output for your photoresistor.
treii28
6 years ago
I added an indicator LED to know when the photo-resistor part of the circuit/FET is active and then added a switch and LED for the power line itself as I also intend to use an NC thermal switch to turn the entire circuit off whenever the water is above freezing.
kiani
6 years ago
@treii28. Don't listen yo anything 2ctiby says..he is a troll,, misleading users , pretending he is an expert...lenzulz is his team mate.....they keep tslking sbout God and religeon,,, perhaps they are a pair of charlatans...just check thrir posts history and their circuit...
treii28
6 years ago
lol I didn't even notice as I've already tested and confirmed the circuit - now I'm just tweaking it for minimum power drain and color coding of the led indicators. I added the switch on the left side to represent a bi-metallic NC 0 degree C switch that will detect the water temperature. I also have a 5 C one if 0C is too cold to switch off. I switched the LED on the right to orange to let me know when the heating element is on (daylight and -0C)
treii28
6 years ago
I also found it works better with a second resistor off the bottom of the opto-resistor.
2ctiby
6 years ago
@all users ... Hurz demands subservience in every, yes every aspect of electronics. If you show signs of knowing more than him in so much as one aspect, then the trio of hurz/zorgrian/kiani will set about insulting you etc in an effort to drive you out, or force you to actively show submissive stature... If you get on ok with hurz, then you have either been seen as obviously knowing less in every aspect, or you have compromised yourself and shown him that you are submissive to him... Be honest with yourself ... Have you yielded to his imposed superiority even though you know more about a particular aspect?  No one know best about everything ... but hurz believes that he does, and you will be forced to believe that too on EC.... or suffer the consequences.
2ctiby
6 years ago
Back in October last year, kiani placed abusive lies and insults on virtually every production that I have ever placed on EC  and he continues to update that abuse recently ... eg:  http://everycircuit.com/circuit/5245744790634496     ... http://everycircuit.com/circuit/5283024345759744  ...    http://everycircuit.com/circuit/6594722429403136   ...   etc.
2ctiby
6 years ago
I do not intend to spend my life here bickering on EC with a know-all like hurz. ... Individuals must decide whether to be subservient to him or not ... Those who submit themselves to him will never be able to voice an opinion which contradicts his view. Then you must always abide by everything he says ... and that may well influence your life path outside EC, which in my opinion would be towards a hell hole, with his partner zorgrian and their puppet kiani.

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2026 by MuseMaze, Inc.     Terms of use     Privacy policy