Ferraris_MQTT_Energy_Counter_Meter_TCRT5000

所属分类:通讯编程
开发工具:C++
文件大小:0KB
下载次数:0
上传日期:2023-07-12 08:48:04
上 传 者sh-1993
说明:  Ferraris能量计数器,带TCRT5000红外传感器,
(Ferraris energy counter with TCRT5000 infrared sensors,)

文件列表:
.tool-versions (15, 2023-07-12)
.vscode/ (0, 2023-07-12)
.vscode/extensions.json (274, 2023-07-12)
LICENSE (1068, 2023-07-12)
configuration.json (4220, 2023-07-12)
dashboard.json (3340, 2023-07-12)
pics/ (0, 2023-07-12)
pics/dashboard.png (106193, 2023-07-12)
pics/esp8266.jpg (241764, 2023-07-12)
pics/irsensor.jpg (453991, 2023-07-12)
pics/irsensor2.jpg (101458, 2023-07-12)
pics/logo.jpg (203259, 2023-07-12)
platformio.ini (1798, 2023-07-12)
src/ (0, 2023-07-12)
src/ferraris.cpp (8078, 2023-07-12)
src/ferraris.h (3211, 2023-07-12)
src/main.cpp (14047, 2023-07-12)
src/mqtt_publish.cpp (9872, 2023-07-12)
src/mqtt_publish.h (71, 2023-07-12)
src/mqtt_subscribe.cpp (5284, 2023-07-12)
src/mqtt_subscribe.h (162, 2023-07-12)

![build](https://github.com/Eisbaeeer/Ferraris_MQTT_Energy_Counter_Meter_TCRT5000/actions/workflows/main.yaml/badge.svg) [![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/) ![Logo](pics/logo.jpg) # 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. ## DEPRECATED - This repo will not be updated! See forks for updates! ## 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](pics/irsensor.jpg) ![Logo](pics/irsensor2.jpg) ![Logo](pics/esp8266.jpg) ## 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](pics/dashboard.png) ## 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 4MB flash e.g. NodeMCU version 2+3. ## Weblinks to get running - iobroker forum: https://forum.iobroker.net/topic/35404/ferraris-z%C3%A4hler-mit-tcrt5000-und-esp8266 - thingiverse: https://www.thingiverse.com/thing:4560681 ## ToDo - adding floats - adding gas sensor - adding impuls settings for S0 ## Changelog ### Ver. 0.94 (Eisbaeeer 20221225) - Last Version - Deprecated. See Forks for updates!!! - Changed structure for auto-compiling different boards - Fixed: missing react-website compile by auto-compile - removed obsolete binary folder ### Ver. 0.92 (Eisbaeeer 20211014) - Bugfix: Interrupt Routinen bei MQTT bertragung unterbrochen - Bugfix: Interrupt Routinen beim Speichern mit littleFS unterbrochen - Dashboard mit zustzlichen 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 Zhlerroutine - jetzt per Interrupt auf alle Eingnge ### Version 0.7 (Eisbaeeer 20210822) - Bugfix Zhlerstand - Zhlerstand 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 Zhler 3 und 4 (Zhlerstand) - Neu: MQTT Server Port konfigurierbar - Neu: MQTT publish Zeit einstellbar (1-9999 Sekunden) - Blinken der internen LED aus kompatibilittsgründen von anderen Boards entfernt (manche Boards nutzen D4 für die interne LED) (ACHTUNG: mit dieser Version gehen die Zhlerdaten verloren! bitte über Browser neu eintragen!) - Neu: Port D4 auf D5 umgezogen! (D4 ist bei manchen Boards die interne LED - Neu: Alle Zhlerdaten 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

近期下载者

相关文件


收藏者