- Wed Nov 30, 2011 8:38 am
#136378
I'm using my Arduino Uno with a Ping Sensor to take readings that will correlate with a code in Processing. (Processing.org) I have made the programs successfully read together so that as you approach the sensor the image in processing zooms in, and as you back up, the image zooms out.
My problem is that the sensor is jumpy and the zooming in/out is sporadic. I've been adjusting the number of readings taken along with the delay time and I have it hooked up to 5v. I'm slightly successful with 75 readings with delay(10), but I was hoping someone had found a way to take more consistent readings.
Also, is there any way to restrict the direction that the ping is reading from? I'm afraid it can read past my body and that's why it's jumpy so much.
Thanks!
My problem is that the sensor is jumpy and the zooming in/out is sporadic. I've been adjusting the number of readings taken along with the delay time and I have it hooked up to 5v. I'm slightly successful with 75 readings with delay(10), but I was hoping someone had found a way to take more consistent readings.
Also, is there any way to restrict the direction that the ping is reading from? I'm afraid it can read past my body and that's why it's jumpy so much.
Thanks!