Hey everyone!
Today I am going to explain you about another interesting COVID-19 Arduino project. This is an automatic, effective and cheap method to limit the crowd in public places - such as shopping malls, supermarkets, offices, etc. - and public transport vehicles, such as buses and trains.
The World Health Organization, WHO, has advised people to stay away from crowded places to protect themselves from the spread of Coronavirus disease. Even though people practice social distancing, it may not be effective when they are present in crowded places. I came up with this idea after I read the WHO guidelines about preventing the spread of COVID-19.
Aim/ Objective
This project is an automatic, cheap and effective way of limiting the crowd in public places and vehicles. Using a human to limit the number of people in a particular place would not be as effective as using an automatic system, due to lack of staff members in some areas. This prototype can be used in real-life situations by replacing the servo motor with a solid state relay module.
The solid state relay module will control the motor operating the automatic sliding doors in buildings and vehicles. There will be a slight change in code when replacing the servo motor.
Hardware components used in this project
- Arduino Uno
- USB Type A/ B cable (for Arduino Uno)
- Solderless Breadboard - Full + (You will only be needing the power rail of this breadboard)
- IR tracking sensor module (x2) (You could also use an ultrasonic sensor module)
- Ultrasonic sensor module (x2) (HC-SR04) - Use this if you don't have an IR tracking sensor module
- TowerPro Micro servo motor - SG90
- LCD display module with I2C interface - 16x2
- Male/ Male Jumper wires
- Female/ Male Jumper wires
Schematic
IR tracking sensor module
- S ( inside) - D5
- S (outside) - D4
- (+) - 5V
- (-) - Ground (GND)
Ultrasonic sensor module (HC-SR04) - If you had used this in your project
- VCC - 5V
- Trig - D4
- Echo - D3
- GND - Ground
16 x 2 LCD display module with an I2C interface
- GND - Ground
- VCC - 5V
- SDA - A4
- SCL - A5
Servo motor
- S - D9
- (+) - 5V
- (-) - Ground
Code
If a person is going to enter the building or vehicle, he/ she can wave or hover his/ her hand over the ultrasonic/ IR tracking sensor module. If an IR tracking sensor module is used, it will send a LOW signal to the Arduino Uno microcontroller and according to my program, the door will be opened.
In my model, I have used a servo motor to open/ close the door. The door will be opened when the servo motor rotates 90 degrees.
If an ultrasonic sensor module is used, the door will be opened when the sensor detects an obstacle within 5 cm away from itself.The door will remain open for 5 seconds and the value stored in the count variable will increase by one after the door is closed. The count variable denotes the number of people inside a building or vehicle.
If the value stored in the count variable reaches the maximum occupancy value, the LCD display module will show that no one could enter and the door will remain closed until someone leaves the building.I have attached an IR tracking sensor module on the inside of the box (modelled as the building/ vehicle) as well. The process will be the same as that mentioned above, but the difference is that the value stored in the count variable will decrease by one as a person is leaving the building.
If anyone has any questions with the codes, please feel free to comment below.
Final Look
If the images are not clear, please visit my instructable page.
If anyone has any questions or suggestions regarding this project, please do not hesitate to comment below or send me an email at arduinoprojectsbyr@gmail.com.
Will you please make your schematic diagram on proteus8 program and run using your arduino code.
ReplyDeleteI have replied to your email.
Deletehello sir, i had a problem when connecting the 5volt input of the arduino uno it will turn off when i connect it. I already connected the circuit properly like your schematic diagram but the same problem happened. Will you please help me for this problem. I am hoping for your response soon thank you.
DeleteNice project. Can you give me code because its not visible. Blured image.
ReplyDeleteYou can find the codes from this instructable page: https://www.instructables.com/Limit-the-Crowd-to-Prevent-the-Spread-of-COVID-19/
DeleteWill you please make a conceptual diagram - flow chart of your project (from input to output)
ReplyDeleteI want to create you project..can you help me?
ReplyDeleteWill you please make your schematic diagram on proteus8 program and run using your arduino code.
ReplyDelete