You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current OpenEVSE hardware (as of April 2024) lacks a voltmeter, and the current meter is not too precise. As a result, power calculations use some predefined voltage (like 240) and imprecise current.
After some research, it seems that adding a dedicated power meter that will interface with ESP32 directly (i.e. no ATMEGA involvement) would be the best solution.
For example, Peacefair PZEM-004t (v3.0) measures both AC voltage and current (up to 100A) and is able to talk via a serial bus. There are mixed reports of whether it can work with ESP32's 3.3v signalling, but most sources say it can (if being powered by 3.3v).
Another possibility is to use Peacefair PZEM-016 which seems to be a newer version of PZEM-004t v3.0 (as far as I can tell, the only difference is built-in power supply that is powered from the high voltage side).
ESP32 has 3 serial ports. Current OpenEVSE hardware (OpenEVSE TFT v1) has two serial ports available on the board:
Serial0 (used to talk to ATMEGA board);
Serial2 (seems to be used for development/debug, although the connector is not soldered).
There's also a possibility to use Serial 1 by directly connecting to any two ESP32 pins that are otherwise unused.
For now, I am going to try using Serial2 (aka debug port). Unfortunately it is used even when the DEBUG is not defined, so the first step would be to make debug work without actually occupying a real serial port.
The next step would be to modify the code to support a dedicated power meter instead of relying on information from ATMEGA board.
Any ideas, comments, questions etc. are very welcome!
The text was updated successfully, but these errors were encountered:
Which would possibly free up Serial2 for your use. Or maybe you could just undefine it as well. Not sure how it would handle that though. Other platforms don't have a debug port defined, so I'd hope that undefining it works.
This is a continuation/summary of discussion in lincomatic/open_evse#175
Current OpenEVSE hardware (as of April 2024) lacks a voltmeter, and the current meter is not too precise. As a result, power calculations use some predefined voltage (like 240) and imprecise current.
After some research, it seems that adding a dedicated power meter that will interface with ESP32 directly (i.e. no ATMEGA involvement) would be the best solution.
For example, Peacefair PZEM-004t (v3.0) measures both AC voltage and current (up to 100A) and is able to talk via a serial bus. There are mixed reports of whether it can work with ESP32's 3.3v signalling, but most sources say it can (if being powered by 3.3v).
Another possibility is to use Peacefair PZEM-016 which seems to be a newer version of PZEM-004t v3.0 (as far as I can tell, the only difference is built-in power supply that is powered from the high voltage side).
ESP32 has 3 serial ports. Current OpenEVSE hardware (OpenEVSE TFT v1) has two serial ports available on the board:
There's also a possibility to use Serial 1 by directly connecting to any two ESP32 pins that are otherwise unused.
For now, I am going to try using Serial2 (aka debug port). Unfortunately it is used even when the
DEBUG
is not defined, so the first step would be to make debug work without actually occupying a real serial port.The next step would be to modify the code to support a dedicated power meter instead of relying on information from ATMEGA board.
Any ideas, comments, questions etc. are very welcome!
The text was updated successfully, but these errors were encountered: