Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP32 Ultra-Low-Power BLE Beacon Firmware

Platform Framework Protocol License


📡 Overview

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.

⚡ Key Engineering Specifications

  • 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

🏗️ Hardware Architecture & Power Tree

  +------------------+
  |  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)

📂 Project Structure

├── 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

🚀 Build & Flash Instructions

  1. Prerequisites: Install PlatformIO Core or the PlatformIO IDE extension.
  2. Build Firmware:
    pio run
  3. Flash to Target Device:
    pio run --target upload

📄 License

This repository is published for portfolio demonstration and technical assessment purposes only. All rights reserved. See LICENSE for terms.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages