How chandravaran/smart_prepaid_electric_meter works
This repository documents a simulated smart prepaid electricity meter. Its main workflow measures electricity at the source and load, sends the top Arduino’s readings to the bottom Arduino for theft detection, calculates consumption and deducts cash, then notifies the user via GSM. The README also describes current and voltage sensing and a zero-crossing circuit. No source excerpts were provided, so implementation details and links beyond those documented are omitted; simulation files are shown as artifacts, not assumed to implement specific stages.
Main entry points: bottom_arduino.ino Bottom Arduino · top_arduino.ino Top Arduino · GSMLibraryTEP.hex GSM module · theft.pdsprj Current sensing
Components 14
Metering
- Top Arduino
top_arduino.ino - Bottom Arduino
bottom_arduino.ino - Current sensing
theft.pdsprj - Voltage sensing
theft.pdsprj - Zero crossing
theft.pdsprj
Theft and billing
- Theft detection
bottom_arduino.ino - Usage calculation
bottom_arduino.ino - Cash deduction
bottom_arduino.ino
GSM communication
- GSM module
GSM Library for Proteus/GSMLibraryTEP.hex
Circuit simulation
- Theft circuit simulation
theft.pdsprj - No-theft simulation
gsm_no_theft.pdsprj
Other components
- Electrical source
- Electrical load
- Consumer
Connections 10
- Electrical source → Top Arduino: provides readings
README.md - Electrical load → Bottom Arduino: provides readings
README.md - Top Arduino → Bottom Arduino: sends readings
README.md - Bottom Arduino → Theft detection: compares readings
README.md - Bottom Arduino → Usage calculation: determines usage
README.md - Usage calculation → Cash deduction: deducts cash
README.md - Bottom Arduino → GSM module: sends notifications
README.md - GSM module → Consumer: notifies
README.md - Current sensing → Top Arduino: measures current
- Voltage sensing → Top Arduino: measures voltage