Releases: mjpalmowski/CAN-BUS-control-R4875G1-with-ESPHome-and-MQTT
R48xxG Total Off-Grid, Preppers, SHTF-version
This version is a stand-alone web-app in browser version, no Internet Connection, no WiFi Network, no Cell-Service is required.
No support for mqtt or homeassistant in this version (please compile these from the relevant YAML examle yourself)
New in this version:
- self contained web-app
- limit AC imput AMPS to match your power source
To install it
-
upload it to an ESP32 WROOM32 dev board using this link: https://web.esphome.io/
Make sure you have the following connected:
tx_pin: GPIO19==tx of the CAN tranceiver board
rx_pin: GPIO21==rx of the CAN tranceiver board
Once the firmware is on the ESP32 it creates a hotspot.
Connect your PC/Phone to the hotspot "R48xx"
12345678
once connected to the hotspot open your browser and go to
http://192.168.4.1
You will see the web-app.
connect the CAN-H to CAN-H and CAN-L to CAN-L , plug in your R48xx rectifier to AC power tap the SETUP button on the web-app...
and happy charging :)
This release should be compatible with most Huawei R48xx rectifier boards, it supports a single board. It is still OTA updatable, so once it's on the ESP32 you can update the firmware using your phone's webbrowser. Your move zombies!
Screenshot:
r48xxgx-can-web.factory095.bin
This is a Web surface to control R48xxxx modules via CAN BUS. It does not do MQTT or Homeassistant. (if you want that please compile your own from the published YAML examples)
New in this release:
"One Click" SETUP button
Just download the .bin file r48xxgx-can-web.factory095.bin and upload it to an ESP32 WROOM32 dev board using this link:
https://web.esphome.io/
Make sure you have the following connected:
tx_pin: GPIO19==tx of the CAN tranceiver board
rx_pin: GPIO21==rx of the CAN tranceiver board
Once the firmware is on the ESP32, it will reboot and after 3 minutes it will
create a hotspot, now connect your PC/Phone to the hotspot "R4875G1 Fallback Hotspot"
12345678
once connected to the hotspot open your browser and go to
192.168.4.1
enter you wifi credentials, the esp reboots, the hotspot dissapears and stays gone if it can connect to your wifi, now you can find the web interface at:
http://r48xxgx-can-web.local/
connect the CAN-H to CAN-H and CAN-L to CAN-L , plug in your R48xxGx rectifier and happy charging :)
This release should be compatible with most Huawei R48xxxxx rectifier boards, it supports a single board.
r48xxgx-can-web.factory.bin
This is a Web surface to control R48xxGx modules via CAN BUS. It does not do MQTT or Homeassistant. (if you want that please compile your own from the published YAML examples)
New in this release:
Dropdown select model:
R4875G
R4850G
R4830G
Just download the .bin file (r48xxgx-can-web.factory.bin) and upload it to an ESP32 WROOM32 dev board using this link:
https://web.esphome.io/
Make sure you have the following connected:
tx_pin: GPIO19==tx of the CAN tranceiver board
rx_pin: GPIO21==rx of the CAN tranceiver board
Once the firmware is on the ESP32, it will reboot and after 3 minutes it will
create a hotspot, now connect your PC/Phone to the hotspot "R4875G1 Fallback Hotspot"
12345678
once connected to the hotspot open your browser and go to
192.168.4.1
enter you wifi credentials, the esp reboots, the hotspot dissapears and stays gone if it can connect to your wifi, now you can find the web interface at:
http://r48xxgx-can-web.local/
connect the CAN-H to CAN-H and CAN-L to CAN-L , plug in your R48xxGx rectifier and happy charging :)
For this release also make sure pins 9 and 10 are connected to each other on the board edge of the R4875G1, if they are open use R4850G2 profile.
ESP32 web only binary 0.9.3
This is a Web surface to control R4875G modules via CAN BUS. It does not do MQTT or Homeassistant. (if you want that please compile your own from the published YAML examples)
New in this release:
kWh meters for AC and DC Energy
Timezone is automatically set
Just download the .bin file (r4875g1-can-web.factory-093.bin) and upload it to an ESP32 WROOM32 dev board using this link:
https://web.esphome.io/
Make sure you have the following connected:
tx_pin: GPIO19==tx of the CAN tranceiver board
rx_pin: GPIO21==rx of the CAN tranceiver board
Once the firmware is on the ESP32, it will reboot and after 3 minutes it will
create a hotspot, now connect your PC/Phone to the hotspot "R4875G1 Fallback Hotspot"
12345678
once connected to the hotspot open your browser and go to
192.168.4.1
enter you wifi credentials, the esp reboots, the hotspot dissapears and stays gone if it can connect to your wifi, now you can find the web interface at:
http://r4875g1-can-web.local/
connect the CAN-H to CAN-H and CAN-L to CAN-L , plug in your R4875G1 and happy charging :)
For this release also make sure pins 9 and 10 are connected to each other on the board edge of the R4875G1.
ESP32 web only binary 0.9.2
This is a simple Web surface to control R4875G modules via CAN BUS. It does not do MQTT or Homeassistant. (if you want that please compile your own from the published YAML examples)
Just download the .bin file (r4875g1-can-web.factory 092.bin) and upload it to an ESP32 WROOM32 dev board using this link:
https://web.esphome.io/
Make sure you have the following connected:
tx_pin: GPIO19==tx of the CAN tranceiver board
rx_pin: GPIO21==rx of the CAN tranceiver board
Once the firmware is on the ESP32, it will reboot and after 3 minutes it will
create a hotspot, connect to the hotspot "R4875G1 Fallback Hotspot"
12345678
once connected to the hotspot open your browser and go to
192.168.4.1
enter you wifi credentials, the esp reboots, the hotspot dissapears and stays gone if it can connect to your wifi, now you can find the web interface at:
http://r4875g1-can-web.local/
connect the CAN-H to CAN-H and CAN-L to CAN-L , plug in your R4875G and happy charging :)
The timezone is set to EUROPE/London if you need the charge timer and need to change that, please do so in the latest YAML and compile with ESPHome.
https://github.com/mjpalmowski/CAN-BUS-control-R4875G1-with-ESPHome-and-MQTT/blob/main/r4875g1-can-web.latest.YAML
esp_web_only_binary_0.9.1
This is a simple Web surface to control R4875G modules via CAN BUS. It does not do MQTT or Homeassistant. (if you want that please compile your own from the published YAML examples)
Just download the .bin file (r4875g1-can-web.factory 091.bin) and upload it to an ESP32 WROOM32 dev board using this link:
https://web.esphome.io/
Make sure you have the following connected:
tx_pin: GPIO19==tx of the CAN tranceiver board
rx_pin: GPIO21==rx of the CAN tranceiver board
Once the firmware is on the ESP32, it will reboot and after 3 minutes it will
create a hotspot, connect to the hotspot "R4875G1 Fallback Hotspot"
12345678
once connected to the hotspot open your browser and go to
192.168.4.1
enter you wifi credentials, the esp reboots, the hotspot dissapears and stays gone if it can connect to your wifi, now you can find the web interface at:
http://r4875g1-can-web.local/
connect the CAN-H to CAN-H and CAN-L to CAN-L , plug in your R4875G and happy charging :)
ESP32 NodeMCU binary 0.9
This Binary can be uploaded to your ESP32 via
you need to use the following GPIOs: to connect your tranceiver module
RX---GPIO 21
TX---GPIO 19
the other details how to make it work are provided in
r4875g1-can-web.0.9 bin release info.txt