Hello all,
For a school project we want to create a device using an infrared sensor that can sense te border of an archery target. Our idea was to put infrared lights around the target, and an infrared sensor on the bow. When moving the bow closer to the border of the target (and therefore closer to the infrared lights) a vibration motor should start vibrating faster, indicating that you're not aiming the right way.
For the sensor we thought we could use an HX1838 IR receiver (link down below). Using the analogRead function it would start giving us different values when an infrared light was detected. For some reason this doesn't work however, the value seems to change 1 time and then the same value as previously continues to print. Is it possible that this IR receiver only gets a single 'pulse' and therefore the value only changes ones? Somewhat like a remote?
I found a tutorial that somewhat shows what we want to do (link below), except that the infrared light doesn't reflect but points straight at the sensor. We want somewhat of the same outputs, but for us it seems to be constant. Do you think it will work with this infrared sensor? Personnaly I though there was no difference but I'm kind of a beginner on Arduinos.
Help would really be appreciated, we're in kind of in a tight schedule. Please let me know if anything is unclear. Thanks in advance.