Hi,
I am working on an obstacle avoidance robot using a radioshack 3-pin ping sensor, and a SEEED 2.0 motor shield. So far, I can make the motors run and make an if statement, but I can't find anywhere how to use the ping sensor in code. I don't even know how to make it ping. In my code I would like to do an if statement with a threshold of about 2 in. but I don't know how to make a threshhold, or what the threshhold should be, or really anything regarding the sensor. Help!
what do you get when you search Arduino Ping Sensor?
I know that. I have used the serial monitor, but I can't make sense of the code, and I can't figure it out.
@HazardsMind
I looked on the Radioshack site and at first only found the multi-sensor pack (on sale for $90, what I can get for less than $20, good old Tandy Corp) but when I checked that out there was a link for just the Ping Sensor at "only" about $25 for a $2 sensor (well okay, I bought 3 or 4 at $1.88 ea).
On the sensor page was a link to the user manual (RTFM!) with link to code and instructions:
http://demandware.edgesuite.net/aasr_prd/on/demandware.static/Sites-radioshack-Site/Sites-radioshack-Library/default/v1421161226367/Support/ProductManuals/2760342_PM_EN.pdf
but I can't make sense of the code, and I can't figure it out.
And what code would that be? Can you post it.