Complete ESP32 Energy Application with Web Interface
A ready-to-use solution that transforms ESP32 into professional electrical network monitoring with a modern web interface.
RBgrid Firmware
The Complete Energy Operating System
Enterprise-Grade Power Monitoring. Free. Ready Now.
RBgrid isn't just firmware - it's a complete energy operating system that transforms a $10 ESP32 into a professional-grade power analyzer that rivals systems costing thousands. Built on the proven SDK RBGrid, this production-ready firmware eliminates months of development time, delivering industrial capabilities out of the box.
Core Engine: Where Physics Meets Code
At its heart, RBgrid operates a high-performance measurement engine capable of 10,000 samples per second on single-phase AC systems. This isn't just fast sampling - it's intelligent acquisition with hardware-synchronized zero-cross detection, adaptive gain control, and real-time signal processing. The dual-core architecture dedicates one core entirely to data acquisition while the second handles processing, ensuring zero data loss even under heavy network load.
The firmware automatically detects and configures connected hardware modules, calibrates sensors, compensates for temperature drift, and maintains measurement accuracy within ±0.5%. Every calculation - from basic RMS values to complex power factor analysis - runs in real-time with deterministic timing, providing instantaneous response to grid events.
Statistics Engine: Your 5-Year Energy Historian
RBgrid implements a sophisticated multi-tier storage system that preserves years of energy data without cloud dependency. The intelligent aggregation engine maintains fine-grained recent data (hourly for 30 days) while progressively condensing historical records (daily, weekly, monthly, yearly). This approach maximizes the ESP32's limited storage while preserving essential trends and patterns.
Every statistic is timestamped, tagged, and indexed for instant retrieval. Whether you need yesterday's hourly consumption profile or last year's monthly trends, the data is immediately available through the web interface or API. The system even survives power outages, automatically resuming data collection and preserving continuity in your energy records.
Connectivity: Bridging Local and Cloud
While completely functional offline, RBgrid seamlessly integrates with modern IoT ecosystems. The firmware includes native support for:
- WiFi Connectivity: Auto-reconnection, fallback AP mode, WPA2 Enterprise support
- Home Assistant: Auto-discovery, real-time state updates, historical data access
- MQTT: Configurable topics, QoS levels, TLS encryption
- HTTP API: RESTful endpoints, WebSocket streaming, JSON/CSV export
- Cloud Services: AWS IoT, Google Cloud IoT, Azure IoT Hub ready
- Time Sync: NTP client with RTC support for accurate timestamping
The telemetry engine intelligently batches data to minimize bandwidth while ensuring critical events are transmitted immediately. Automatic failover and buffering ensure no data loss during network interruptions.
Web Application: Your Energy Command Center
RBgrid implements a smart dual-web architecture that maximizes ESP32 performance while delivering a professional user experience. The firmware includes a lightweight built-in web server for secure administrative functions - WiFi configuration, firmware updates, and system diagnostics - accessible through a protected access point. This ensures you can always reach your device for critical maintenance, even without network connectivity.
For the full energy monitoring experience, RBgrid connects to a powerful external web application that handles all visualization, analytics, and user interactions. This architectural separation means your ESP32 focuses on what it does best - high-speed data acquisition and processing - while the web app delivers a stunning, responsive interface without taxing the microcontroller's resources.
Intelligence: Smart Features That Save Money
Beyond basic monitoring, RBgrid implements intelligent features that actively help reduce energy costs:
- Peak Detection: Identifies and alerts on demand spikes
- Load Scheduling: Suggests optimal times for heavy loads
- Anomaly Detection: Catches unusual consumption patterns
- Tariff Optimization: Calculates savings from time-shifting
- Solar Forecasting: Predicts generation based on history
- Predictive Maintenance: Warns of degrading appliance efficiency
Updates: Always Improving, Never Breaking
RBgrid features a robust Over-The-Air (OTA) update system that keeps your firmware current without manual intervention. The system periodically checks GitHub for new releases, validates signatures for security, and performs safe dual-partition updates with automatic rollback on failure. Your configuration and statistics are preserved across updates, ensuring seamless continuity.
Updates bring new features, performance improvements, and hardware support - all while maintaining backward compatibility. The changelog is displayed before updating, giving you full control over when and what to upgrade.
Professional Hardware. Plug & Play Simplicity
Transform your ESP32 into a professional power measurement station with our purpose-built hardware modules. Every component is meticulously designed and optimized for rbpower firmware, ensuring maximum accuracy, reliability, and ease of installation. No more breadboard prototypes or tangled wires - just professional-grade modules that work perfectly together.
Our hardware ecosystem eliminates the complexity of DIY power monitoring. Each module features proper signal conditioning, protection circuits, and standardized connectors that make installation as simple as plug-and-play. Built with industrial-grade components and tested for 24/7 operation, these modules deliver laboratory precision in real-world conditions.

Ready-to-Connect Modules
Web App


Professional Real-Time Dashboard
- Experience your energy ecosystem in real-time with rbpower's professional dashboard. Every measurement, every flow direction, every device - updated live with sub-second precision. No refresh buttons, no delays - just pure, instantaneous energy intelligence.
- The Main Supply card displays your grid connection status with bidirectional flow indicators - watch consumption turn to generation as your solar panels kick in. Active flow animations show power direction instantly, while color-coded metrics highlight consumption (red) versus feed-in (green). Track voltage quality, frequency stability, and power factor in real-time.
- The Alternative Supply card monitors your renewable generation and storage systems simultaneously. See solar production peaks, battery charging cycles, and internal consumption patterns as they happen. Smart flow indicators reveal whether your batteries are charging from solar excess or grid off-peak rates, helping optimize self-consumption strategies.
- The Active Devices table provides instant visibility into individual load consumption. Sort by power draw to identify energy hogs, monitor device startup surges, track duty cycles, and catch standby vampires. Each device shows current consumption, today's total, and trend indicators - perfect for troubleshooting or optimization.
Advanced Statistics & Local Storage
Transform your ESP32 into a powerful energy data historian. rbpower's intelligent storage system preserves up to 5 years of measurements directly on Flash memory - no subscriptions, no cloud dependency, complete data ownership.
The multi-tier storage architecture automatically aggregates data across five time periods: hourly records for detailed recent analysis (30 days), daily summaries for monthly patterns, weekly aggregates for seasonal trends, monthly data for annual comparisons, and yearly archives for long-term insights. With 720 hourly records and progressive aggregation, you get both granular detail when needed and efficient long-term storage.
Access your energy history through the intuitive web interface - visualize consumption patterns, compare periods, identify trends, and export data for deeper analysis. Perfect for tracking solar production cycles, validating utility bills, or documenting energy efficiency improvements.
Intelligent Tariff Management & Economics
Stop guessing your energy costs. rbpower's comprehensive tariff engine transforms raw measurements into actionable financial insights, supporting everything from simple flat rates to complex Time-of-Use plans with seasonal variations.
Configure multiple tariff zones matching your utility's pricing structure - peak, off-peak, and super off-peak periods with automatic weekend and holiday adjustments. Track both consumption costs and feed-in revenues for complete Net Metering support. The system calculates real-time costs per device, quantifies savings from solar generation, and accounts for grid feed-in earnings, providing a complete economic picture of your energy ecosystem.
Built-in ROI calculators help justify renewable investments by tracking actual vs. projected savings. Export detailed reports for tax purposes or utility disputes. With support for multiple concurrent tariff plans, you can compare different pricing options or maintain historical records through contract changes.
See Savings in Real-Time
Track consumption costs and solar feed-in revenue simultaneously
Cost-per-Device Intelligence
Identify expensive appliances and optimize usage patterns
Simple Setup via Web Interface
Configure device in 5 minutes
Enable initial calibration of connected sensors
Verify connection correctness


RBgrid SDK
For Professional Applications
Open-source C library with comprehensive API for custom development. Build your own energy monitoring solutions with Arduino or ESP-IDF - professional features, your implementation.
Use RBgrid SDK and documentation for developing your application


