I'm building a lasertag system, using actual lasers (yes i know, very unsafe, will be played with laser goggles on for extra safety, and laser will only give short pulse)
Ofcourse i need a receiver to detect when you get hit.
I plan on using LDR's, and i'll need quite some to cover enough area on the body.
Now this is also the issue i'm running up against, i need to use as little pins as possible but still need alot of ldrs.
All i need to know is IF light is hitting the ldr, brightness is not important.
What would be the best way to do this? i was planning on putting them in series, but this might make the total resistance too low to read.
Yea so i adjusted the focus of the laser, one meter away from the laser, the point is about 3cm across.
This might get adjusted, but for now it seems like a good ratio (distance to diameter) but, i will still need quite some ldr's to cover enough area of the body, to make sure that if you hit the body, it will always register
Thanks for the reaction, i was indeed planning putting sensors on the front and back of the body, we plan on playing in the forest at night so ambient light shouldn't be an issue.
BUT that wasn't really the question.
Question is, how can i hookup alot of LDR's while using as little pins on arduino as possible, would it be feasible to put them in series, or should i take a different approach.
TSOP4838 would be an option, but still the same question arises.
larryd:
Some kind of modulation of the transmitter with demodulation in the receiver will be part of the solution.
larryd:
Note: LDRs are slow so a photo transistor might be warranted.
So modulation and LDRs are not a practical combination.
You can of course use LDRs in an array, but you have to have a diode in series with each.
Now since the INPUT_PULLUP of a mega328 is nominally 36k, using it with the LDR to ground similar to the above would be a very effective approach for either digital or analog input.