odya / esphome-powmr-hybrid-inverter

ESPHome config for various PowMr Hybrid Inverter models.
MIT License
67 stars 10 forks source link

Compiling for esp32c3 #27

Open bronzeblood opened 7 months ago

bronzeblood commented 7 months ago

What parameters need to be changed to use it with the advanced pcb that @davidebeatrici designed. I can get it to compile but the esp just boot loops.

bronzeblood commented 7 months ago

ok i got it to compile by replacing the old section in the project yaml with this..

esp32:
  variant: ESP32C3
  board: esp32-c3-devkitm-1
  framework:
    type: esp-idf

Also add these lines to the main.yaml file

esphome:
  platformio_options:
    board_build.flash_mode: dio

Seems like my boot loop was caused by low voltage from the usb uart i was using, when powered from the inverter its starting fine.

However i'm not getting any communication, can someone clarify the gpio pins used for tx/rx on the advanced design.

bronzeblood commented 7 months ago

Figured it out

  inverter_tx_pin: GPIO7
  inverter_rx_pin: GPIO6

When using the advanced pcb

All seems to be working fine, maybe this will help anyone that makes the advanced pcb in the future.

davidebeatrici commented 6 months ago

Thank you for using my advanced PCB!

For reference, it was added in #10. Please note that I've been using arduino as framework type without setting the flash mode, but it's probably more correct to use esp-idf since it's the official Expressif framework.

Would you like to create a pull request to add the instructions to https://github.com/odya/esphome-powmr-hybrid-inverter/blob/063f91e16edf12ee3f00fc5a1b3e03f57f2eb2c1/pcb/advanced/README.md?