Distance Warning
Original: https://www.instructables.com/Arduino-LCD-Project-...
This is a machine that can measure the distance, help people who want to know how long is it, also you can't be too close to this machine, because there will be red light flashing, which is warning you don't be too close to the machine. Thus, this machine also can be the warning machine. But also can measure things or the distance.
During you're too close to the machine only will have a red light flashing, is because red light will make you feel scared, can warning you, stop getting close.
I want to make this machine is because elementary school student always don't know how to use ruler to measure things, but if you use this machine can know how far you are, and the correct distance you're in. Also in daily life, always have people want to use or take your things without permission, but if you use this machine you can see if they're gonna take the things, the red light will start flashing and we can know.
我從原本網站原本將我的機器改成如過距離太近,也就是小於五公分,紅燈會開始閃爍。這也是提醒你不要靠那ㄇ
Step 1: Prepare Materials You Need.
LED red light x 1
Breadboard x1
USB Cable x1
Arduino Leonardo x1
some wires
resistance x 1
LCD Display x1
HC-SR04 Ultrasonic Sensor x1
Step 2: Connect the Components
Connect the materials together. Make it works.
Step 3: Creating the Code
Downloads
Step 4: Final!!
If it can measure the distance, and also during its too close red light will flash, it means you're done!