Abstract
Using Ultrasonic sensor for detecting the distance and display the value at the LCD screen, while under certain value the Microservomotor rotates 90 degrees. Also, detecting the light by using a Light sensor, which values is being displaying to the LCD screen throw the message ‘dim’ or ‘bright’ light.
BoM (Bill of materials)
- 1 x Arduino Uno
- 1 x Breadboard
- 1 x MQ Sensor
- 1 x Ultrasonic Sensor
- 1 x LDR Sensor
- 2 x 220 Ohm Resistors
- 1 x LCD Screen
- 1 x 10k Ohm Potentiometer
- 14 x Jump wires
Code
Next Steps
In the future, the distance and light sensor detecting system could be connected also to an alarm system, which is being triggered when the distance’s value is too low and light’s too high…