Skip to content

Energy-efficient IoT parking sensor system based on ESP32, ultrasonic sensing, and the ESP-NOW protocol. The project includes Wokwi simulation, embedded sensor code, power profiling (deep sleep, sensing, transmission), and sink optimization analysis.

Notifications You must be signed in to change notification settings

mrzamaniiii/Iot-Parking-Sensor-Energy-Optimization

Repository files navigation

IoT Parking Sensor – Energy Optimization & Simulation

Screenshot 2026-01-27 190856

This project focuses on designing and analyzing an ultra-low power IoT parking sensor system using:

  • ESP32 microcontroller
  • HC-SR04 ultrasonic sensor
  • ESP-NOW protocol for transmission

All data is collected, simulated, and analyzed in a Wokwi-based environment to assess energy consumption, battery lifetime, and network optimization.

Features

  • Distance-based vehicle detection
  • Wireless transmission via ESP-NOW
  • Deep sleep to reduce energy consumption
  • Battery lifetime estimation per operational cycle
  • Optimal sink placement for maximizing sensor network lifetime
  • Wokwi JSON simulation diagram included

Project Structure

File Description
sketch.ino Arduino sketch for ESP32 node (sensor + transmitter)
Deep_Sleep.ipynb Power profiling during deep sleep
Transmission_Power.ipynb Power profiling during data transmission
Read_Sensor.ipynb Power profiling during ultrasonic distance measurement
Optimizing.ipynb Lifetime optimization for wireless sensor network
diagram.json Wokwi hardware setup (ESP32 + HC-SR04)
Challenge 1 Report.pdf Full project report (methods, calculations, plots)
Exercise.pdf Sink placement analysis and optimization
wokwi-project.txt Link to online Wokwi simulation

Key Results

  • Battery Lifetime: Up to 13.9 hours with sensor-only operations
  • Energy Consumption: ~7.51 J per full sensing-transmitting cycle
  • Optimal Sink Placement: Found via analytical and Python (Powell algorithm) methods
  • Simulation: Fully replicable via Wokwi link

About

Energy-efficient IoT parking sensor system based on ESP32, ultrasonic sensing, and the ESP-NOW protocol. The project includes Wokwi simulation, embedded sensor code, power profiling (deep sleep, sensing, transmission), and sink optimization analysis.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors