Basic Arduino code to check the variance and test the ultrasionic sensors.
- Download libraries for use teensy Arduino following all the steps in the web page
- Download the library for the ultrasonic sensors
- Connect every pin with the correct pin in the ultrasonic sensor
- Datasheet ultrasonic sensor
- Pins information Teensy 3.2
Added file that measures variance
Simple code example from the Teensy and adapted for 2 sensors. It reads the cm of right and left and then is showed in the monitor.
Simple code example with two sensors(right and left) and 3 LEDs(right, left and central).
Simple code example adapted for 3 sensors and 3 LEDs. The cm are showed in the monitor.
Code calculation and comparing with three sensors and 3 LEDs(right, left and central)
Single sensor ros file
Publishes in Ros distance for all three ultrasonic sensors