ahoy/tools/esp8266
2022-06-01 23:46:38 +02:00
..
html use mSendInterval for showIndex and index.html 2022-06-01 23:46:38 +02:00
test/hmClassTest * version 0.3.0 2022-04-30 02:13:38 +02:00
WemosD1_NRF24_Case 3D-Model for a case for Wemos D1 2022-05-26 00:18:26 +02:00
app.cpp use mSendInterval for showIndex and index.html 2022-06-01 23:46:38 +02:00
app.h * inverter dependent mqtt (is avail) 2022-05-29 21:57:59 +02:00
CircularBuffer.h * added rx channel switching 2022-05-09 20:47:05 +02:00
config.h * moved mqtt loop out of checkTicker as mentioned in #49 2022-05-23 11:35:56 +02:00
crc.cpp * complete payload processed (and crc checked) 2022-05-17 15:30:36 +02:00
crc.h * complete payload processed (and crc checked) 2022-05-17 15:30:36 +02:00
debug.h * fixed issues (found during unit test) 2022-04-30 02:02:41 +02:00
defines.h fix #56 2022-05-29 22:48:42 +02:00
eep.h * moved mqtt loop out of checkTicker as mentioned in #49 2022-05-23 11:35:56 +02:00
esp8266.ino * improved tickers, only one ticker is active 2022-05-04 19:28:54 +02:00
hmDefines.h * moved mqtt loop out of checkTicker as mentioned in #49 2022-05-23 11:35:56 +02:00
hmInverter.h * moved mqtt loop out of checkTicker as mentioned in #49 2022-05-23 11:35:56 +02:00
hmRadio.h * inverter dependent mqtt (is avail) 2022-05-29 21:57:59 +02:00
hmSystem.h * reduced heap size (>50%) by using 'F()' for (nearly) all static strings (mentioned by @stefan123t) 2022-05-24 21:52:27 +02:00
main.cpp fix #56 2022-05-29 22:48:42 +02:00
main.h fix #56 2022-05-29 22:48:42 +02:00
mqtt.h * try to fix #52 2022-05-23 20:31:21 +02:00
README.md * added patch from @Argafal 2022-05-23 12:22:31 +02:00

OVERVIEW

This code is intended to run on a Wemos D1mini or similar. The code is based on 'Hubi's code, which can be found here: https://www.mikrocontroller.net/topic/525778?page=3#7033371

The NRF24L01+ radio module is connected to the standard SPI pins. Additional there are 3 pins, which can be set individual: CS, CE and IRQ These pins can be changed from the /setup URL

Compile

This code can be compiled using Arduino. The settings were:

  • Board: Generic ESP8266 Module
  • Flash-Size: 1MB (FS: none, OTA: 502kB)

Optional Configuration before compilation

  • number of supported inverters (set to 3 by default) defines.h
  • enable channel hopping hmRadio.h
  • DTU radio id hmRadio.h
  • unformated list in webbrowser /livedata defines.h, LIVEDATA_VISUALIZED

Flash ESP with firmware

  1. flash the ESP with the compiled firmware using the UART pins or any preinstalled firmware with OTA capabilities
  2. repower the ESP
  3. the ESP will start as access point (AP) if there is no network config stored in its eeprom
  4. connect to the AP, you will be forwarded to the setup page
  5. configure your WiFi settings, save, repower
  6. check your router or serial console for the IP address of the module. You can try ping the configured device name as well.

Usage

Connect the ESP to power and to your serial console (optional). The webinterface has the following abilities:

  • OTA Update (over the air update)
  • Configuration (Wifi, inverter(s), Pinout, MQTT)
  • visual display of the connected inverters / modules
  • some statistics about communication (debug)

The serial console will print the converted values which were read out of the inverter(s)

Compatiblity

For now the following inverters should work out of the box:

  • HM400
  • HM600
  • HM800
  • HM1200

USED LIBRARIES

  • ESP8266WiFi 1.0
  • DNSServer 1.1.0
  • Ticker 1.0
  • ESP8266HTTPUpdateServer 1.0
  • Time 1.6.1
  • RF24 1.4.2
  • PubSubClient 2.8