Giter Site home page Giter Site logo

morrisjobke / ferraris_mqtt_energy_counter_meter_tcrt5000 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eisbaeeer/ferraris_mqtt_energy_counter_meter_tcrt5000

0.0 1.0 0.0 3.6 MB

Ferraris energy counter with TCRT5000 infrared sensors

License: MIT License

C++ 100.00%

ferraris_mqtt_energy_counter_meter_tcrt5000's Introduction

Logo

Ferraris TCRT5000 ESP8266 Energy Meter Counter MQTT

Description

This project allows you to count the rounds per KWh of meter disk with the red mark of ferraris energy counter . The code is tested on ESP8266 platform. You are able to connect maximum four energy meter. You can use the cheap TCRT5000 as infrared sensors. Printable enclosures are available on thingiverse.

Features

  • the code creates a filesystem on flash storage of the esp8266
  • all settings are stored on the filesystem in a JSON format
  • Wifi-Manager for easy connection to available AccessPoints
  • MQTT client to transmit the values to a central server like home-automation-systems
  • Webpage to configure all settings or read the values
  • OTA Over-The-Air update of firmware

Logo Logo Logo

Steps to get running

  1. Install VSCode + PlatformIO
  2. Follow the installation guide to compile the framework https://github.com/maakbaas/esp8266-iot-framework/blob/master/docs/installation-guide.md

Calibrate sensor

  1. Connect the sensor Pin A0 to Pin A0 on the NodeMCU board
  2. Open the dashboard and calibrate the sensor by moving up/down - left/right until the best hysteresis
  3. Turn the poti left until the light is off, now turn right and stop when the light turn on.

Logo

Using upload ready binary

You are able to upload the compiled binary without Arduino IDE installed. You will find the compiled bin file in binary folder. The binary supports ESP8266 with 4MG flash e.g. NodeMCU version 2+3.

Weblinks to get running

ToDo

  • adding floats
  • adding gas sensor
  • adding impuls settings for S0

Changelog

Ver. 0.92

(Eisbaeeer 20211014)

  • Bugfix: Interrupt Routinen bei MQTT Übertragung unterbrochen
  • Bugfix: Interrupt Routinen beim Speichern mit littleFS unterbrochen
  • Dashboard mit zusätzlichen Infos erweitert

Ver. 0.91

(Eisbaeeer 20211011)

  • Graphen zum Dashboard hinzugefügt
  • ISR mit no-delay Entprellung angepasst
  • Nachkommastellen durch fehlerhafte addition von floats entfernt
  • Entprellung ist jetzt konfigurierbar

Version 0.9

(Eisbaeeer 20210917)

  • Graphen zum Dashboard hinzugefügt
  • Analogwert vom Sensor wird jetzt auf dem Dashboard angezeigt

Version 0.8

(Eisbaeeer 20210914)

  • Bugfix Zählerroutine - jetzt per Interrupt auf alle Eingänge

Version 0.7

(Eisbaeeer 20210822)

  • Bugfix Zählerstand
  • Zählerstand auf Nachkommastellen erweitert

Version 0.6

(Eisbaeeer 20210819)

  • Moved from ArduinoIDE to PlatformIO
  • Merged project to framework

Version 0.5

(Eisbaeeer 20210813)

  • Bugfix boolean
  • Added 3 digits after dot

Version 0.4

(Eisbaeeer 20200905)

  • Bugfix Zähler 3 und 4 (Zählerstand)
  • Neu: MQTT Server Port konfigurierbar
  • Neu: MQTT publish Zeit einstellbar (1-9999 Sekunden)
  • Blinken der internen LED aus kompatibilitätsgründen von anderen Boards entfernt (manche Boards nutzen D4 für die interne LED)
    (ACHTUNG: mit dieser Version gehen die Zählerdaten verloren! bitte über Browser neu eintragen!)
  • Neu: Port D4 auf D5 umgezogen! (D4 ist bei manchen Boards die interne LED
  • Neu: Alle Zählerdaten werden im EEPROM abgespeichert.

Version 0.3

(Eisbaeeer)

  • adding upload of firmware bin files via webpage (http://.../update)

Version 0.2

(Eisbaeeer 20200911)

  • fixing debounce to 20ms

Version 0.1

(Eisbaeeer 20200803)

  • Initial Version
  • Filesystem to store and read values from
  • Wifi-Manager to connect to Wifi easy
  • Stored values are in JSON format
  • MQTT client to publish values
  • HTTP page for configuration
  • Over the air update of firmware
  • four meter counter (IR-Input pins)

License

The MIT License (MIT) Copyright (c) 2020 Eisbaeeer [email protected]

ferraris_mqtt_energy_counter_meter_tcrt5000's People

Contributors

eisbaeeer avatar

Watchers

 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.