Skip to content

ESP8266 reading Peacefair PZEM-017 values over ModbusRTU and passing date to SignalK server

License

Notifications You must be signed in to change notification settings

mplattu/signalk-pzem017

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

signalk-pzem017

ESP8266 reading Peacefair PZEM-017 values over ModbusRTU and passing date to SignalK server.

Voltage and current sensor based on Peacefair PZEM-017 with 200A/75mV shunt. The sensor can be ordered e.g. from AliExpress.

Libraries Used

Equipment

  • Wemos D1 ESP8266
  • Peacefair PZEM-017
  • 200A/75mV shunt
  • MAX3485
  • 120 ohm resistor

Wiring

See images/esp8266_pzem017.png

Power Connector (two pins):

  1. 5V DC for ESP8266 (red)
  2. GND DC for ESP8266 (black)

Modbus Connector (four pins):

  1. Modbus 5V DC (red)
  2. Modbus A (striped blue)
  3. Modbus B (striped yellow)
  4. Modbus GND (black)

PCB

Configuration

  • Copy template file lib/settings.cpp.sample as lib/settings.cpp
  • Edit according to your environment
  • make upload

OTA update

To enable OTA update set OTA password (variable otaPass in settings.cpp) to non-empty string.

To update image using PlatformIO pio tool:

PLATFORMIO_UPLOAD_FLAGS="--auth=ota-password" pio run -t upload --upload-port device.ip.address

Or with zeroconf address (hostname is your wifiHostname defined in settings.cpp):

PLATFORMIO_UPLOAD_FLAGS="--auth=ota-password" pio run -t upload --upload-port hostname.local

About

ESP8266 reading Peacefair PZEM-017 values over ModbusRTU and passing date to SignalK server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published