This is the Smart Hygiene IoT Tap I developed for hospitals back in Tanzania
# Smart Hygiene IoT Tap
This is a Smart Hygiene IoT Tap that I designed and developed for hospital use in Tanzania.
## Project Overview
The project was developed to help reduce the transmission of Healthcare-Associated Infections (HAIs) in hospitals in Tanzania by using affordable, locally developed technology. The system automates the handwashing process and monitors its performance to support maintenance alerts.
## Hardware
- ESP32
- Bistable Solenoid Valve
- IR Sensor
- Custom PCB
## Final PCB
The image below shows the final custom PCB I designed for the project. The PCB is currently awaiting evaluation during the hospital pilot.
## PCB Schematic
The schematic below shows the circuit design used for the custom PCB.
## Testing and Deployment
The prototype was tested at HAEMEDA Hospital, a specialised cardiac facility in Tanzania, and showed positive results during testing.
## Embedded System
The ESP32 serves as the main controller of the tap. It processes input from the IR sensor and controls the bistable solenoid valve to automate water flow. The firmware was developed in C++ and includes safety controls, usage monitoring and power-management features.
## Data & Monitoring
The system collects operational data from the tap and sends it to a backend system for storage and monitoring. A Node.js backend processes the device data and stores it in a PostgreSQL database, allowing tap usage and performance to be monitored for maintenance purposes.
## Development Process
The project was developed through iterative hardware and software prototyping. I designed and tested the electronic system, developed the ESP32 firmware, and iterated the hardware based on testing. The prototype was subsequently tested in a hospital environment, with the final PCB awaiting further evaluation during the hospital pilot.
## Technologies
* C++
* ESP32
* KiCad
* Node.js
* PostgreSQL
* IR Sensors
* Bistable Solenoid Valve