Ultrasonic sensor with LED
The project is about 1 ultrasonic sensor and if you are in front of it for at least 1 Meter the LED will light up
The way how to build is quite easy.
Get the stuff you need:
1 Ultrasonic sensor (HC-SR04)
1 Arduino Motherboard (In my case Arduino MEGA 2560)
First of all, you need to place the sensor on the board there are 4 outputs:
GND = pin: -
Echo = pin: 2
Trig = pin: 3
Vcc = +
just place the LED somewere on your breadboard and place a wire at the long pin to pin 4
the other one you need to connect with a transistor and after that to -
Upload the code!
LET IT GLOW!