The present project aims to build a monitoring system for the stock of cleaning supplies for hand cleaning.
With this system we can guarantee the existence of these supplies in the bathrooms and public services where it is required for hand disinfection, thus avoiding possible COVID19 infections.
The parameters to monitor are alcohol, water and paper.
There are various hand disinfection points in shopping centers, schools, homes, among others. At these points, for example, gel or liquid alcohol is used, a very important input for the disinfection of hands, which are found in entrance doors, exits, interior bathrooms and all environments where people are present.
The problem is that these cleaning products run out quickly and are not reported immediately, with the risk that many people do not disinfect themselves and can spread the covid 19 virus.
It is proposed: To build an alcohol monitoring system with sensors and the Edukit equipment connecting to the Wi-Fi network of the place. The points to monitor would be:
Alchol Gel Dispenser: Uses a contact and infrared sensor.
Water tap: Uses a water flow sensor.
Paper dispenser: Uses a contact and infrared sensor.
This solution is useful and necessary because it would help to respect security protocols and take care of people.
For the development of this project the following materials were used:
- M5 Stack Core2
- Gel dispenser with IR Tx and Rx sensor
- Dipswich contact sensor
- HZ21WA water flow sensorCuenta de AWS para realizar la plataforma de monitoreo.
5.1. Sensors
The M5Stack Core2 will be the central device that will collect data from the gel dispenser, water flow sensor, and paper dispenser.
To monitor the alcohol, a gel dispenser was used which comes with a mechanical and infrared system that allows the dispensing of alcohol every time the hand is passed.
The dispenser finishes delivering the alcohol gel when a touch sensor detects that it has rotated enough to deliver a portion of the alcohol gel.
At this point we obtain the 2.5V and 0V digital signal from the internal circuit of the dispenser and together with the GND signal we enter it to the PORTB of the Core2, to be read and monitored.
Every time the dispenser is used it sends a 0V signal and when it is not used it sends a 2.5V signal.
Making a calculation of the volume for this practical example, we approximate that for each use 1% of the volume of alcohol is spent, that is why in the programming we consider 100% as capacity. To have larger volumes, it would only be to scale the volume to the use of each portion of alcohol and change this value in the code.
For paper monitoring, it was found that it is possible to install an infrared and contact sensor inside the dispensers and to know the amount of paper that is being used.
While there are various sizes, thicknesses and shapes of dispensers, the solution can be applied to all of them in a viable way by doing an engineering analysis of the size and locating the sensors.
For this case, due to the fact, it was not possible to find a dispenser available to carry out the tests, but this input will be simulated with a contact sensor (pushbutton).
For the water flow sensor, a HZ21WA sensor was used, which contains a rotor whose blades have a magnet, and next to this a hall effect sender, which when rotating will send us digital signals from 5V to 0V, which We will enter through the PORTC.
We must bear in mind that it is necessary to condition the input signal of the 5V sensor to 3V digital levels, so as not to damage the pins of the Core2.
5.3. Programación Core2
The Arduino IDE was used to program the Edukit-Core2, for this we relied on the installation guide of the device and its library.
Link: https://docs.m5stack.com/en/core/core2
First the libraries to use are declared
The Arduino IDE was used to program the Edukit-Core2, for this we relied on the installation guide of the device and its library.
Upload the certificates that were generated when creating the IoT device in AWS IoT core. These will be uploaded to Core2 through ESP32 Sketch Data Upload.
The way certificates are opened and read is by using:
The RGB lights are programmed first, define the text size, then the position and finally the text :
The following code is used to send a sensor data payload through the topic "sensors"
52. Dashboard
Core2 uses the MQTT protocol to send sensor data to Amazon's AWS IoT Core service configured in our amazon account.
For this, an object called "Esp32-edukit" was created with its certificates and the respective policy.
Then the mqtt test with the topic "sensor"
For the monitoring panel, it was decided to carry out the development with Node red software.
Node red will be installed on an Ubuntu instance, for this an instance was created using the EC2 service.
I configured the security policies and enabled the input and output ports for
As a result, we have the dashboard that monitors the data from the sensors in real time.
The development of this project was a very satisfying experience because a solution is being created which will help to supervise and solve the problems of lack of supplies for cleaning hands and thus avoid the spread of COVID19 and other infectious diseases.
In this project some AWS services were used, but we can improve the project and repower it, making use of data analysis with AWS IoT Analytics, so that we can predict and see the behavior of people with the use of inputs in certain days, hours, population groups and various places where people meet. These data would help a lot to better understand how people make use of these cleaning supplies that are very important today.
Likewise, the Simple Notification Service (SNS) can be implemented to send e-mails to the personnel in charge indicating the alerts due to lack of supplies.
Finally, I would like to thank the entire team that proposed this contest, because it helps the contestants to be able to contribute our ideas to solve various health problems related to covid19 in spaces.
Comments