Maker Pro
Maker Pro

Project question

I have a little ornament on my guitar that I would likem to light up with 6 LEDS. I'd like for them to automatically liight, when it is dark.

I have photo resistors with the specs listed below, but I am understanding that they would have the opposite effect- ie: turn the lights on when it is not dark. How could I make them go on when it is dark?

Thnak-you



5mm GM5539 Photoresistor:
Maximum voltage: 150 Volt DC
Spectral peak: 540 nm
Maximum wattage: 100 mW
Light resistance (10 Lux): 50-100 Kohm
Operating temperature: - 30 ~ + 70 degree Celsius;
 
It will do either depending how it is set up.
Normal approach is to connect in a voltage divider arrangement and if the LDR is in the top leg, effect is opposite to that when it is in the bottom leg.
There are small modules on Ebay etc. which have a comparator so you can select the switching point or sensitivity if you like.

I am certain we gave you the address of "talkingelectronics" website which should have a circuit and explanation.
Go take a look there first.
 
Thank you for all the advice. I also found the circuit below on an electronics app that I purchased. Wonder if the one on the right would work
upload_2020-5-15_17-31-13.png
[mod edit: rotated the image]


I wonder why the diagram does not specify the voltage to apply
 
Last edited by a moderator:

Harald Kapp

Moderator
Moderator
I wonder why the diagram does not specify the voltage to apply
This is a simple circuit and not very accurate. It will work probably in the range 4.5 V ... 9 V.
Note that the emitter resistor is labeled R only. It is up to you to calculate the required value depending on supply voltage, LED current and number of LEDs in series (I assume you have a few). See our resource on driving LEDs for more details.
With a few LED in series the required supply voltage increases to Vsupply > n × Vled.
Example: White LEDs have a forward voltage of ~3 V. 6 (the number you gave) LEDs in series require more than 18 V supply voltage. You may be better off creating 2 parallel strings of 3 LEDs in series. See my post #5 in this thread for how it is done. You may get away with a 9 V battery in this setup.
Ignore the MOSFET but observe the placement of the current limiting resistor: each string needs its own resistor. Therefore connect the emitter of the HNP transistor from your schematic directly to battery "-" and connect the LED strings with their separate resistors to the collector of the NPN transistor.

This is possibly the simplest circuit that is nevertheless good enough for the humble service you ask of it. Give it a try.
 
Thank-you for the replies. I plan to loop back to this and read it carefully when I finish a current project, and mover on to this one. Thank-you.
 
Top