Problem
In a car park, knowing which spaces are free saves drivers from circling. The goal was an end-to-end IoT chain, from the sensor on the space to the dashboard.
Data
- Distance readings from HC-SR04 ultrasonic sensors, published on the MQTT topic parking/update
Approach
- ESP32 simulated on Wokwi: 2 sensors for the spaces, 1 sensor and an SG90 servo for the barrier
- MQTT publishing through the public HiveMQ broker
- Node.js backend with Docker Compose: MongoDB for the event history, Redis for the current state
- Real-time web dashboard with Chart.js
Results
- End-to-end chain working in simulation: space occupancy and barrier state displayed live
What I would improve
- Move from the public broker to a secured one (authentication, TLS)
- Test the setup on physical sensors, beyond the Wokwi simulation