rstrouse / ESPSomfy-RTS

A controller for Somfy RTS shades and blinds
The Unlicense
429 stars 32 forks source link

ESP32 C3 GPIO List #367

Closed HeinKlocktein closed 1 month ago

HeinKlocktein commented 1 month ago

Hardware

ESP32-C3

Firmware version

v2.4.3

Application version

v2.4.3

What happened? What did you expect to happen?

Ther are not all gpios visible. Hope that these picture are helpfull: image image image It would be helpfull to get an GPIO recommendation like you did for the WROOM32 I have tried several GPIOS without success.

How to reproduce it (step by step)

Radio menu, open the transiver tab. 
Open the SCLK dropdown and compare it with the other dropdown for the GPIO configuration .
Compare it with wroom32 and the attached C3 Pinout

Logs

No response

rstrouse commented 1 month ago

I do not have this board layout my C3 mini is from Seeed Studios. So lets start with those pins you cannot use as they are dedicated to other things. It is very odd that nearly half of the pins on this board are dedicated to power and ground.

Pins that I would avoid: Strapping pins: GPIO2, GPIO10, GPIO9, GPIO10 USB pins: GPIO18, GPIO19 External clock pins: GPIO0, GPIO1 -- These I really don't know the implication of using them for anything other than an external clock.

SCK = GPIO6 CSN = GPIO7 MOSI = GPIO3 MISO = GPIO5 RX/TX = GPIO4 -- I would only hook up the GDO0 pin on the transceiver and let ESPSomfy RTS multiplex on this pin. I see this board has a CH340 chip on it and I suspect that they wired that to GPIO20 and GPIO21,

Really I am a bit puzzled by the strange design of this board. For my Seeed board there are actually more usable pins with only 14 pins exposed on a smaller platform. Clearly this was made for some specific purpose.

For the Seeed I used SCK = GPIO5 CSN = GPIO6 MOSI = GPIO10 MISO = GPIO9 RX = GPIO6 TX = GPIO7

HeinKlocktein commented 1 month ago

Your recommendation works well:
SCK = GPIO6 CSN = GPIO7 MOSI = GPIO3 MISO = GPIO5 RX/TX = GPIO4 Thank you very much!