Components and supplies
Arduino UNO
Ultrasonic Sensor - HC-SR04 (Generic)
Jumper wires (generic)
Breadboard (generic)
Laptop or computer
USB-A to B Cable
Apps and platforms
Arduino IDE
Project description
Code
Ultrasonic ruler with inches, centimetres, and millimetres
arduino
This the code. Just copy it and paste it on your Arduino IDE. Comment down below how I can make this code better.
Ultrasonic ruler with inches, centimetres, and millimetres
arduino
This the code. Just copy it and paste it on your Arduino IDE. Comment down below how I can make this code better.
Downloadable files
Ultrasonic Ruler
Just wire the: VCC of Ultrasonic sensor ---> 5V in Arduino Trig of Ultrasonic sensor ---> Pin 2 in Arduino Echo of Ultrasonic sensor ---> Pin 4 in Arduino GND of Ultrasonic sensor ---> To GND in Arduino And then just copy and paste the code above in your Arduino IDE. To see the distance just go to Tools -> Serial Monitor or just put Ctrl+Shift+M or for mac just Command+Shift+M.
Ultrasonic Ruler
Ultrasonic Ruler
Just wire the: VCC of Ultrasonic sensor ---> 5V in Arduino Trig of Ultrasonic sensor ---> Pin 2 in Arduino Echo of Ultrasonic sensor ---> Pin 4 in Arduino GND of Ultrasonic sensor ---> To GND in Arduino And then just copy and paste the code above in your Arduino IDE. To see the distance just go to Tools -> Serial Monitor or just put Ctrl+Shift+M or for mac just Command+Shift+M.
Ultrasonic Ruler
Ultrasonic Ruler
The Ultrasonic ruler helps you to measure things with Ultrasonic sounds.
Ultrasonic Ruler
Comments
Only logged in users can leave comments
Imperial_Proggramer
0 Followers
•0 Projects
Table of contents
Intro
9
0