![]() |
PING))) Ultrasonic Distance Sensor - Printable Version +- Alchitry Forums (https://forum.alchitry.com) +-- Forum: Alchitry (https://forum.alchitry.com/forum-1.html) +--- Forum: General Questions (https://forum.alchitry.com/forum-2.html) +--- Thread: PING))) Ultrasonic Distance Sensor (/thread-248.html) |
PING))) Ultrasonic Distance Sensor - john.tilghman@protonmail.com - 08-26-2020 I am trying to see if anyone has used the PING))) Ultrasonic Distance Sensor before. It has some interesting timing to be able to use it, as well as it's triggered as well as the return echo come back on the same pin. PING))) Ultrasonic Distance Sensor I have a lot of these to drive and a AVR just bogs down the more you put on. From the website: Quote:Interfacing to a microcontroller is a snap. A single I/O pin is used to trigger an ultrasonic burst (well above human hearing) and then "listen" for the echo return pulse. The sensor measures the time required for the echo return, and returns this value to the microcontroller as a variable-width pulse via the same I/O pin. Thanks for any insight. JT RE: PING))) Ultrasonic Distance Sensor - alchitry - 08-26-2020 I've used one of these a long time ago when I was first starting to mess with electronics with the "BASIC Stamp" but I haven't used one with an FPGA. It should be pretty easy to make it work though. Here's a module I just wrote. I haven't tested it but it should be a good starting point. Code: module ping #( |