I have simple code that lights an LED when I pass my hand through the sensor but I am wondering if I can increase the interval to make the sensor more reactive to movement passing through it...
Can I code for this? I am using the newPing stack and my code works at the basic interval sound is sent and received but the sensor does not always trigger if I pass my hand through...
ccj777:
I have simple code that lights an LED when I pass my hand through the sensor but I am wondering if I can increase the interval to make the sensor more reactive to movement passing through it...
Can I code for this? I am using the newPing stack and my code works at the basic interval sound is sent and received but the sensor does not always trigger if I pass my hand through...
I think we have a terminology problem here. If you want the unknown sensor to sense more often, you want to DECREASE the interval, not increase it.
The data sheet or specification for your unknown sensor will tell you how many pulses the sensor sends, how long is waits for the sensor vibrations to stop, and how long it listens for an echo, which is your hand passing.
Your unknown sensor is NOT a continuous device. It cycles.
Paul