espressif/power_measure

0.1.1

uploaded 1 day ago
Support chips to measure voltage, current, energy

readme

# Component Power_Measure

## Overview

This example demonstrates how to use the **BL0937** power measurement chip to detect electrical parameters such as voltage, current, active power, and energy consumption. It is implemented for **ESP32** using FreeRTOS, and shows how to configure and interface with the BL0937 power measurement chip. The example initializes the power measurement system, fetches various parameters, and logs them at regular intervals.

This example supports the **BL0937** power measurement chip, which is capable of measuring:

1. **Voltage**
2. **Current**
3. **Active Power**
4. **Energy**

The primary goal is to demonstrate how to configure the hardware pins, initialize the power measurement system, and retrieve the data from the chip.

## Features

* Measures  **voltage** ,  **current** ,  **active power** , and  **energy** .
* Configures **BL0937** power measurement chip.
* Supports overcurrent, overvoltage, and undervoltage protection.
* Energy detection is enabled for accurate readings.
* Regularly fetches power readings every second and logs them.

## Hardware Requirements

The example uses the **BL0937** power measurement chip. To connect it, the following pins must be configured on the ESP32:

| Variable            | GPIO Pin       | Chip Pin |
| ------------------- | -------------- | -------- |
| `BL0937_CF_GPIO`  | `GPIO_NUM_3` | CF Pin   |
| `BL0937_SEL_GPIO` | `GPIO_NUM_4` | SEL Pin  |
| `BL0937_CF1_GPIO` | `GPIO_NUM_7` | CF1 Pin  |

Make sure that these GPIO pins are correctly connected to the respective pins on the **BL0937** chip in your hardware setup.

Links

Supports all targets

License: Apache-2.0

To add this component to your project, run:

idf.py add-dependency "espressif/power_measure^0.1.1"

or download archive

Stats

  • Archive size
    Archive size ~ 20.91 KB
  • Downloaded in total
    Downloaded in total 0 times
  • Downloaded this version
    This version: 0 times

Badge

espressif/power_measure version: 0.1.1
|