Sonar for Robot Navigation Issues | Cypress Semiconductor
Sonar for Robot Navigation Issues
For the senior design project at my university, my group was assigned a robot that would serve as a wandering information kiosk for the campus. I was placed in charge of sensor integration. The sonars that our group decided to use can output an analog voltage level that corresponds to detected range or a pulse whose width corresponds to the detected range. To get a handle on the PSoC 3 I created a quick proof of concept program that would take in the analog votlage level and convert it to a digital value. To test it out I breadboarded the PSoC 3 and hooked it up to a power supply so I could easily and precisely change the voltage. The problem is that no matter what I change the voltage level to, GetResult always returns a value that is approx 22,000 or 0x5850 in hex.
So far in my troubleshooting efforts I have assumed, from talking to friends on similar projects, that the ADC returns a value that is scaled so that the resolution matches the acceptable input voltage range IE 0-6.14 volt range divided by 2^16 (16 bits of resolution).
Attached is my simple project so far,