DEVELOPMENT OF AN OCCUPANCY DETECTOR USING ARDUINO UNO || LCD SCREEN || ULTRASONIC SENSOR FROM SCRATCH

avatar
(Edited)

IMG_20220314_152755_0.jpg

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.


HOW IT WORKS


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.


IMAGES OF THE DEVICE


IMG_20220314_152805_2.jpg

IMG_20220314_152825_0.jpg
IMG_20220314_152659_1.jpg

IMG_20220314_152714_3.jpg

Thanks for reading and visiting my blog 🤝. Kindly support this post by reblogging, upvoting, and commenting, it would be highly appreciated.

Posted with STEMGeeks



0
0
0.000
3 comments
avatar

Greetings, you can also activate the lights and the fan, and a musical thread while busy. Do you plan to add a timer to know if it's been a long time and is a medical emergency?
In case the person has been fainted in the bathroom, it would be great.

0
0
0.000
avatar

Yeah, thanks @soltecno for the comment and nice suggestion. The feature you mentioned can also be added to make it smarter and extend its functionality in other to prevent or address any possible medical issue that could occur when the user takes more time than expected in the restroom.

It is a great idea 👍, I would look into it and probably modify the device functionality as suggested.

0
0
0.000