Components and supplies
Breadboard (generic)
5 mm LED: Red
Ultrasonic Sensor - HC-SR04 (Generic)
Male/Female Jumper Wires
Resistor 1k ohm
5 mm LED: Green
Arduino UNO
Tools and machines
Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires
Apps and platforms
Arduino IDE
Project description
Code
Code
c_cpp
This is the code of this project. Copy paste this code to your Arduino IDE.
Downloadable files
Circuit Diagram
This is the Circuit Diagram of this project. Assemble your project by following this circuit diagram.
Circuit Diagram
Circuit Diagram
This is the Circuit Diagram of this project. Assemble your project by following this circuit diagram.
Circuit Diagram
Comments
Only logged in users can leave comments
Anonymous user
3 years ago
what will the code be for more than 2 leds?
blackpanda856
3 years ago
Please follow me. Also subscribe to my You Tube channel for more project videos like this. You Tube : J4 JEVINS Link :- https://youtube.com/J4Jevins
blackpanda856
2 years ago
Please follow me. Also subscribe to my You Tube channel for more project videos like this. You Tube : J4 JEVINS Link :- https://youtube.com/J4Jevins