Go Down

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

RuggedCircuits

Quote
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

SJK70

cool thanks,

what would you have instead of digitalWrite though?

AWOL

Quote
what would you have instead of digitalWrite though

Personally?
Nothing.
"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.

SJK70

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