OpenEVSE / openevse_esp32_firmware

OpenEVSE V4 WiFi gateway using ESP32
170 stars 112 forks source link

Add esp32-c3-devkitc-02 #766

Closed CapnBry closed 10 months ago

CapnBry commented 10 months ago

As I tried to foist this off in #713, this adds support for the ESP32-C3 devkit that seems to be working just fine after a month of use. I am using a more recent espressif32 release (6.4.0) though, as the C3 isn't supported on 6.0.1.

I chose GPIO6 for RAPI TX and GPIO7 for RAPI RX somewhat arbitrarily, just because they aren't ADC pins or the USB DP/DN pins, JTAG pin, or UART0 TX/RX.

Pin Function
GPIO0 WiFi Button / BOOT
GPIO6 RAPI TX
GPIO7 RAPI RX
GPIO8 RGB LED
GPIO21 USB Serial TX (cp2102)
GPIO20 USB Serial RX (cp2102)

Log messages come out the USB port, the RGB LED color cycles on boot, and my OpenEVSE works just fine with 8.2.2. I believe my OpenEVSE is a v2.5? (2014 it was listed as "OpenEVSE 50A Deluxe Charge Station Combo - Quick Kit with RGB LCD/RTC / OpenEVSE Artwork")

The ESP Info on the firmware page shows "UNKOWNr3 1 core WiFi BLE" due to ESPAL not supporting anything except the basic ESP32

jeremypoulter commented 10 months ago

Thanks for the contribution, could I just ask you add this to the build workflow, eg https://github.com/OpenEVSE/openevse_esp32_firmware/pull/743/files#diff-d0777657fa3fd81d23aaf7273e58aee453b04e67882517900c56daeef9b3e4c1

jeremypoulter commented 10 months ago

Looks to work well