Production-ready firmware for battery-powered ESP32 BLE Beacons, engineered to integrate seamlessly with the BLE Indoor Localization System.
Designed for maximum battery longevity, the firmware broadcasts calibrated iBeacon/Eddystone advertising packets with battery telemetry before entering microamp-level deep sleep states.
- Microcontroller: ESP32 (WROOM / WROVER / ESP32-C3 / S3)
- Active Transmission Current: ~80 mA for 15 ms
- Deep Sleep Current:
< 12 µA(with ULP and RTC timer active) - Calculated Battery Life: 18+ Months on a standard CR2450 coin cell (at 1-second advertising intervals)
- Telemetry Payload: Battery voltage ADC reading embedded into custom manufacturer data frame
- RSSI Calibration: 1-meter calibrated TX power (-59 dBm) for precise trilateral distance calculation
+------------------+
| CR2450 Battery | (3.0V Nominal)
+--------+---------+
|
+---> [ LDO / Buck Regulator (TPS62740) ] ---> 3.3V Rail
| |
v v
[ Battery ADC Divider ] [ ESP32 SoC ]
| |
+-----> GPIO 34 (ADC1_CH6) +---> BLE Antenna (RF matching)
+---> RTC Timer (Deep Sleep Wakeup)
├── src/
│ └── main.cpp # Main firmware: BLE init, advertise, telemetry, deep sleep
├── include/
│ └── beacon_config.h # UUID, Major, Minor, TX power, and interval settings
├── platformio.ini # PlatformIO build configuration
├── LICENSE # Portfolio evaluation & demonstration license
└── README.md
- Prerequisites: Install PlatformIO Core or the PlatformIO IDE extension.
- Build Firmware:
pio run
- Flash to Target Device:
pio run --target upload
This repository is published for portfolio demonstration and technical assessment purposes only. All rights reserved. See LICENSE for terms.