Author Topic: light activated led help LDR  (Read 544 times)

jimitrader

light activated led help LDR
« on: November 28, 2021, 04:36:07 PM »
I have built this for an idea i am working on ..but it seems to work backwards? when i block the light in the LDR (darkness) it turns on the LED? it is supposed to come on when i shine a light on it and dark when no light? it seems backwards because it does nothing when i shine the light on it..but everywhere i look it shows same circuit? anyone have any thoughts how it could be reversed so it works like its supposed too?? or did i do something wrong? its in the breadboard so its possible that i made a mistake..





https://circuits-diy.com/light-activated-led-using-photoresistor-ldr/
« Last Edit: November 28, 2021, 04:38:30 PM by jimitrader »

antonis

Re: light activated led help LDR
« Reply #1 on: November 28, 2021, 05:02:57 PM »
Interchange LDR and 50k+1k.. :icon_lol: :icon_lol:

P.S.1
Is LDR "isolated" from LEDs light..??

P.S2
Your photoresistor is supposed to work like a NTC thermistor so measure its resistance in dark and bright enviroment.. :icon_wink:
« Last Edit: November 28, 2021, 05:07:42 PM by antonis »
"I'm getting older while being taught all the time" Solon the Athenian..
"I don't mind  being taught all the time but I do mind a lot getting old" Antonis the Thessalonian..

jimitrader

Re: light activated led help LDR
« Reply #2 on: November 28, 2021, 06:27:24 PM »
ok i changed out the ldr to a different manufacturer and its working as originally intended? so I am learning that there are different types LDR's? is this correct? when checking on MM there was a difference in readouts..so i changed it out and it works...hmmm what do you think Antonis? i looked online and its kind of confusing.

GibsonGM

Re: light activated led help LDR
« Reply #3 on: November 28, 2021, 08:12:25 PM »
Oh yes, LDRs will vary all over the place. Unless you got one from a manufacturer that provides a data sheet, it's hard to know what you're getting, and you often have to adjust your circuit to take into account the specific LDR you got. 

You can test the LDR...get it into as dark a place as you can and cover the 'lens' with your thumb, read its dark resistance. Then read resistance right up against a bright light.  Those are your 'dark' and 'light' resistances.

An even better way to do this is to put it in an isolation box...and old film canister works great for this. You can even read the R when it's dark, and then turn on an LED you wired in, which you'll use in the circuit, inside the film can to get light resistance!   This removes the unknowns for your circuit, and you can then adjust what you need to accordingly.

You will often find circuits calling for "At least 1 meg dark resistance", and this is what they mean by that...1 Megohm when in total darkness...
MXR Dist +, TS9/808, Easyvibe, Big Muff Pi, Blues Breaker, Guv'nor.  MOSFace, MOS Boost,  BJT boosts - LPB-2, buffers, Phuncgnosis, FF, Orange Sunshine & others, Bazz Fuss, Tonemender, Little Gem, Orange Squeezer, Ruby Tuby, filters, octaves, trems...

antonis

Re: light activated led help LDR
« Reply #4 on: November 29, 2021, 05:29:49 AM »
What Sir Mike said.. :icon_wink:

On your paricular circuit, LDR values between 500k & 10k (dependent on 50k pot setting) can turn BJT on hence activate LED..
So, it's always good to know the extremes of your particular device (full darkness - full brightness resistance) to properly set BJT bias configuration.. :icon_wink:
"I'm getting older while being taught all the time" Solon the Athenian..
"I don't mind  being taught all the time but I do mind a lot getting old" Antonis the Thessalonian..

Kipper4

Re: light activated led help LDR
« Reply #5 on: November 29, 2021, 05:58:50 AM »
"Duck_Arse
otherwise, you might end-up with SOIC or gullwings, for surface mounts."


Smoke me a Kipper. I'll be back for breakfast.

Grey Paper.
http://www.aronnelson.com/DIYFiles/up/

duck_arse

Re: light activated led help LDR
« Reply #6 on: November 29, 2021, 09:13:26 AM »
like those blokes said, put the old not-working ldr in and measure the base voltage, dark and light. then refit the workable ldr, and measure the base voltage when the led turns off.
no, I don't do kitchens ......

but pinkjimi's gonna help me with the measurements soon.

anotherjim

Re: light activated led help LDR
« Reply #7 on: November 29, 2021, 11:10:11 AM »
We know LDR specs vary but common CdS are all pretty much all some Megohms in the dark and some Kohms in the light. Different specs only affect response range and linearity. It doesn't explain a reverse response, High R in light and Low R in the dark that the OP states. I can't answer that.
Croeso i Diystompboxes.

There is no aspect of human endeavour that cannot be improved with cheese.

antonis

Re: light activated led help LDR
« Reply #8 on: November 29, 2021, 02:29:58 PM »
It doesn't explain a reverse response, High R in light and Low R in the dark that the OP states.

OP never stated that.. :icon_wink:
Just a "reverse" operation of the whole configuration which may as weel work for a p-n-p BJT..

@jimitrader: Are you sure about your particular transistor type..??
"I'm getting older while being taught all the time" Solon the Athenian..
"I don't mind  being taught all the time but I do mind a lot getting old" Antonis the Thessalonian..

anotherjim

Re: light activated led help LDR
« Reply #9 on: November 30, 2021, 04:46:30 AM »
Huh?
Quote
..but it seems to work backwards? when i block the light in the LDR (darkness) it turns on the LED? it is supposed to come on when i shine a light on it and dark when no light? it seems backwards because it does nothing when i shine the light on it..
Then...
Quote
ok i changed out the ldr to a different manufacturer and its working as originally intended?

Doesn't say anything about changing transistor type. If he had a PNP it would invert operation for sure, but it wouldn't then un-invert with a different LDR.
Croeso i Diystompboxes.

There is no aspect of human endeavour that cannot be improved with cheese.

antonis

Re: light activated led help LDR
« Reply #10 on: November 30, 2021, 06:36:54 AM »
Maybe the use of question marks instead of periods or exclamation marks by OP baffles things a bit.. :icon_wink:
"I'm getting older while being taught all the time" Solon the Athenian..
"I don't mind  being taught all the time but I do mind a lot getting old" Antonis the Thessalonian..

anotherjim

Re: light activated led help LDR
« Reply #11 on: November 30, 2021, 09:37:38 AM »
He went outside.
He went outside!
He went outside? (Grammar wants "Did he go outside?")
English, nowadays, is normally informal. You are allowed to write as you would speak. You can't write inflexions - so look for the punctuation.
Actually, I've written lots in posts here with statements terminating with a "?" indicating puzzlement/uncertainty and some replies (or lack of) suggest the "?" has gone unnoticed.

So anyway, it worked backwards?
 :icon_question:


Croeso i Diystompboxes.

There is no aspect of human endeavour that cannot be improved with cheese.

jimitrader

Re: light activated led help LDR
« Reply #12 on: November 30, 2021, 02:14:04 PM »
Quote from: antonis on November 29, 2021, 02:29:58 PM<blockquote>Quote from: anotherjim on November 29, 2021, 11:10:11 AM<blockquote>It doesn't explain a reverse response, High R in light and Low R in the dark that the OP states. </blockquote>
OP never stated that.. :icon_wink:
Just a "reverse" operation of the whole configuration which may as weel work for a p-n-p BJT..

@jimitrader: Are you sure about your particular transistor type..??
</blockquote>2n2222a 
« Last Edit: December 01, 2021, 03:26:32 AM by jimitrader »

jimitrader

Re: light activated led help LDR
« Reply #13 on: November 30, 2021, 02:26:49 PM »
Sorry about the ????????? question marks.  I will try harder to use proper grammar and spelling :icon_redface: DOH!

antonis

Re: light activated led help LDR
« Reply #14 on: November 30, 2021, 02:48:10 PM »
2n222a

We could sake hands if only another "2" was added.. :icon_wink:

"I'm getting older while being taught all the time" Solon the Athenian..
"I don't mind  being taught all the time but I do mind a lot getting old" Antonis the Thessalonian..

jimitrader

Re: light activated led help LDR
« Reply #15 on: December 01, 2021, 03:25:04 AM »
2n222a

We could sake hands if only another "2" was added.. :icon_wink:


dang missed again..lol

anotherjim

Re: light activated led help LDR
« Reply #16 on: December 01, 2021, 04:57:27 AM »
2n222a

We could sake hands if only another "2" was added.. :icon_wink:
A waste of good rice wine IMHO.
 ::)
Croeso i Diystompboxes.

There is no aspect of human endeavour that cannot be improved with cheese.

duck_arse

Re: light activated led help LDR
« Reply #17 on: December 01, 2021, 08:26:37 AM »
2n222a

We could sake hands if only another "2" was added.. :icon_wink:

he'd already gone outside.
no, I don't do kitchens ......

but pinkjimi's gonna help me with the measurements soon.