These also offer the possibility to regulate the power.
Now some hard-working guys have set out to hack the communication with these modules.
This resulted in two projects: one is the "openDTU", the other is the "Ahoy" DTU - The Hoymils inverters communicate with the help of an NRF24l01+ module. (see : Microcontroller.net and as an example https://ahoydtu.de)
Both projects use an ESP and these radio modules for communication and generate a web interface and support MQTT and a REST API -
this gave me the idea to monitor and possibly control the microinverters with an ESP32 and AnnexRDS.
The first steps have been taken:
Code: [Local Link Removed for Guests]
'DTU-Monitor
'touch.calib
OPTION.BASE 1
OPTION.WLOG 1
dim Feld$(6)
Feld$(1) = " Produktion":Feld$(2)="2":Feld$(3)="3":Feld$(4)="4":Feld$(5)="5"
tft.init 1
tft.fill 0
ret$=""
TFT.TEXT.POS 3,10 : TFT.TEXT.SIZE 2 : tft.text.color white
tft.print WORD$(IP$,1)
tft.print ""
ONWGETASYNC answer_done
' do an HTTPS GET request
'WGETASYNC "http://192.168.2.34/api/statistics", 80
'pause 2000
'wgetasync "http://192.168.2.34/api/livedata/status/inverters",80
'pause 1000
'wgetasync"http://192.168.2.34/api/inverter/list",80
'pause 1000
do
'wgetasync"http://192.168.2.34/api/livedata/status/inverter",80
'pause 1000
wgetasync"http://192.168.2.34/api/inverter/id/0",80
pause 5000
loop
Wait
answer_done:
'wlog WGETRESULT$
tft.fill 0
TFT.RECT 0, 30, 310, 30, tft.rgb(80,80,80),1,15
TFT.TEXT.POS 0,35 : TFT.TEXT.SIZE 3 : tft.text.color white
search$="ch"'channel
ret$=json$(WGETRESULT$, search$)
if ret$ <> "not found" then
sw$=ret$
sw$=replace$(sw$,"["," "):sw$=replace$(sw$,","," ")
DatCount=word.count(sw$,",") : wlog DatCount
delimiter$ = chr$(32)
dim Daten$(13)
'for z = 1 to 13
Daten$(1) = word$(sw$, 4)
'next z
'for z = 1 to 9
tft.print Feld$(1);":"; Daten$(1)
'next z
end if
Return
The (first) result is the output of the instantaneous power generation on a TFT display with Annex
a picture of the AHOY DTU module:
and a picture of the AHOY- web-interface: