Go Down

Topic: Combining an LDR sensor with random blinking (Read 1 time) previous topic - next topic


I've got the LDR connected to a resistor, into the ground and 5.v of my arduino uno board?

It's still not exactly clear, but how about you write a small program just to test your LDR. Take the analogRead() readings and print them to the serial terminal.

Beat707: MIDI drum machine / sequencer / groove-box for Arduino


cool thanks,

what would you have instead of digitalWrite though?


what would you have instead of digitalWrite though

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.


RuggedCircuits - my LDR works, I've used it with other codes, I've got it so that it gets brighter as you get near (as the LDR receives less light), I'm just trying to combine that with the random blinking, i.e when there is a set level of light it randomly blinks. Then when this light is reduced, it will become stable and begin getting brighter...

Go Up