#energy #embedded-hal #driver #devices #metering #platform-agnostic

no-std atm90e32

A platform-agnostic driver for the ATM90E32 energy metering device

1 unstable release

0.1.0 Mar 28, 2023

#1512 in Hardware support

MIT license

17KB
457 lines

Rust ATM90E32 Driver

A platform-agnostic driver for the ATM90E32 energy monitor. Implemented with embedded-hal traits. It contains an opinionated initialization of the driver for basic energy monitoring but allows full manual control if desired. Initialization code was heavily inspired by the ESPHome implementation of ATM90E32 sensor.

Example

An example is included in examples/ for the ESP32. It isn't officially included in the Cargo.toml because I couldn't figure out a good way to have it compile with the esp rust toolchain without interfering with this library.


lib.rs:

A platform-agnostic driver for the ATM90E32 energy metering device. Built using embedded-hal.

Initialization logic was heavily inspired by ESPHome's implementation for the ATM90E32 sensor. Main inspiration for writing this driver was to make an alternative firmware for the amazing CircuitSetup Expandable 6 Channel ESP32 Energy Meter

Dependencies

~56KB