Range finder & Display
Click here to see the weeks post
This project we used the Arduino uno and paired it with a Ultrasonic proximity sensor and later paired with the LCD display from last week to display the distances of whats ahead of the sensor.
Ultrasonic proximity sensor
The Ultrasonic proximity sensors works by omitting and receiving high frequency sound waves that are inaudible, so they cant perceived by the human ears. to detect the presence of a object at distance the emitted waves bouncing back and are detected at different strength that represent there distance.
Sensor to Arduino
like last week the fist step is connecting the Ultrasonic proximity sensors to the Arduino using wires connected as so…
- Gnd to Gnd
- +5V to Vcc
- Trigger to D8
- Echo to D7
Wiring
Next was adding the code shared to the Arduino and checking if it would work. It didn’t but a quick fix lead to getting the proper feedback from the sensor. [Example Sketch]
Serial monitor
The serial monitor is the tether between the computer and Arduino. It lets you send and receive text messages which is handy for debugging and controlling the Arduino from a keyboard. In the serial monitor there is baud which is currently set to 9600 which is the delay between each message.