this video is fabulous, I really did understand how to use the photo cell.
I did a series of experiments and found that to get an even better result you can add a potentiometer and use the value read from it as adjusting the amount of darkness in which you want the lights come on.
Also if you replace the LED with a relay you can use this system to control the normal incandescent lamps.
@andrew1056 sounds pretty good. I'm currently learning about the differences between IR lighting and incandescent lighting and light from LED's. Do you think that if you lit your house with LED's that it would effect the LDR?? I think that only florescent lights would effect the LDR. Just my 2 cents. -Joe
I actually haven't tried it with LED's. It does work with incandescents and fluorescents. It would be an interesting experiment. My aquarium is led lit so I could try it there and see.
It should work. Is your hookup the same? You need to create a voltage divider with the photo-resistor and a regular resistor. The middle is what goes to analog in. I'll annotate this sometime soon.
source code please?
baddspella 11 hours ago
code?
Regulator1332 1 year ago
do you have the program for it somewhere?
ekstc 1 year ago
this video is fabulous, I really did understand how to use the photo cell.
I did a series of experiments and found that to get an even better result you can add a potentiometer and use the value read from it as adjusting the amount of darkness in which you want the lights come on.
Also if you replace the LED with a relay you can use this system to control the normal incandescent lamps.
chupitos2269 1 year ago
Ahh, you'll need to have the photoresistor placed somewhere the light doesn't change like pointing outside a window.
andrew1056 2 years ago
@andrew1056 sounds pretty good. I'm currently learning about the differences between IR lighting and incandescent lighting and light from LED's. Do you think that if you lit your house with LED's that it would effect the LDR?? I think that only florescent lights would effect the LDR. Just my 2 cents. -Joe
joebro391 2 years ago
I actually haven't tried it with LED's. It does work with incandescents and fluorescents. It would be an interesting experiment. My aquarium is led lit so I could try it there and see.
BringAboutGreen 2 years ago
what do you feel would be the best course of action to work around the shut on/off problem (the light going off, everytime the led's come on)?? -Joe
joebro391 2 years ago
It should work. Is your hookup the same? You need to create a voltage divider with the photo-resistor and a regular resistor. The middle is what goes to analog in. I'll annotate this sometime soon.
andrew1056 2 years ago
can't get mine to work. need help. my arduino is the NG with the atmega 168
daemontrainer 2 years ago