DEVELOPMENT OF AN OCCUPANCY DETECTOR USING ARDUINO UNO || LCD SCREEN || ULTRASONIC SENSOR FROM SCRATCH
Hi, I'm @techlhab and it is my pleasure to share with you again another device I built or developed named occupancy detector. The occupancy detector is a device that can be used or installed on restrooms doors to easily know or notify if a person is inside the restroom or not by sensing movement. The device uses Arduino Uno, 16x2 LCD, and an Ultrasonic sensor as its major hardware components and it is been programmed in Embedded C/C++ language using the Arduino IDE (Integrated Development Environment). It was fun building this as it helps in easily notifying users if a restroom is vacant or not in other to avoid unnecessary waiting or entering the restroom without knowing someone is actually there which could lead to conflict or discomfort.
The Arduino Uno is a microcontroller that serves as the brain of the device where the code is been uploaded to and other components receive and send instructions or pieces of information from and to respectively.
The 16x2 LCD screen has 16 columns and 2 rows display screen that helps in displaying information and necessary instructions for easy interactions between the device and the users.
The ultrasonic sensor is a proximity sensor that works with sound waves, it helps in sensing any obstructions along its transmitted sound waves at a specified distance its been programmed with.
When the device is been switched on using the power located by its side, the device comes on then displays on the LCD the name of the device which is the occupancy detector. The device is been programmed that whenever the ultrasonic sensor senses any obstructions in its propagated wave within a distance of 150cm then it should send a signal to the Arduino Uno microcontroller then display
OCCUPIED and also enable the
RED LED (Light Emitting Diode) bulb to come
ON as it is assumed that it is due to the presence of a person or an occupant is in the restroom or any other location or place the device is installed. On the other hand, in the absence of no obstructions detection or sensing on the propagated wave by the ultrasonic sensor within a distance of 150cm then the Arduino Uno microcontroller instructs the LCD screen to display
VACANT and also enables the
GREED LED (Light Emitting Diode) bulb to come
ON meaning that no one is inside the restroom or where ever the device is been installed.
Thanks for reading and visiting my blog 🤝. Kindly support this post by reblogging, upvoting, and commenting, it would be highly appreciated.
Posted with STEMGeeks