Giter Site home page Giter Site logo

keukenrol / p1-esp-be Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jantenhove/p1-meter-esp8266

0.0 0.0 0.0 36 KB

P1 port reader for belgian electricity meters Sagecom T211 and S211

License: GNU General Public License v3.0

C++ 48.71% C 51.29%

p1-esp-be's Introduction

P1 port reader for belgian electricity meters Sagecom T211 and S211

Software for the ESP8266 / ESP32 that sends P1 smart meter data as a string to a TCP port (with CRC checking). These meters have an open collector output, thus they require a pullup to 3.3V / 5V and an inversion of the signal (see included schematic).

Requirements for Arduino IDE

--- BOARDS ---

  • esp32 v2.0.9+
  • esp8266 v3.0.2+

--- LIBRARIES ---

  • None

--- Functionality ---

  • ArduinoOTA from board package
  • Check Wi-Fi for both boards

Installation instrucions

  • Make sure that your ESP8266 / ESP32 can be flashed from the Arduino environnment.
  • Place all files from this repository in a directory. Open the required .ino file.
  • Adjust WIFI settings
  • Adjust TCP server and port
  • Add / delete messages as required for output string
  • Compile and flash

Connection of the P1 meter to the ESP

You need to connect the smart meter with a RJ11 (4 pin) or RJ12 (6 pin with +5V and GND) connector. More information here: https://www.cdem.be/13_technical/#what-information-is-provided-with-the-p1-port

Invert the input to 3.3V logic for ESP using a BC547B NPN transistor or similar: image

Connect GND->GND, RTS->REQ_PIN, and RxD->RX pin. By default, the req pin and the npn base input are on 3.3V. If this does not work, then supply 5V for these by using a level shifter from the output of the ESP for the REQ_PIN and connect the R2 to +5V.

p1-esp-be's People

Contributors

keukenrol avatar jantenhove avatar basvdijk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.