SmartRC-CC1101-Driver-Lib icon indicating copy to clipboard operation
SmartRC-CC1101-Driver-Lib copied to clipboard

how to connect to ESP32-C3

Open Emilevanderlaan opened this issue 1 year ago • 4 comments

How do I Connect the CC1101 to the ESP32-C3

To setup the CC1101 I cannot use the setSpiPin() as this will be reset by the init()->setSpi(). And there the ESP32 settings are SCK_PIN = 18; MISO_PIN = 19; MOSI_PIN = 23; SS_PIN = 5; will be set. But that is not the setup for the ESP32C3 or ESP32S2 support for the gpio_iomux_out / gpio_iomux_in is also missing. Please advice how to connect the CC1101

Wirering

CC1101   ESP32 ESP32-S2/S3 ESP32-C2/C3
MISO -- GPIO19 GPIO37 GPIO4
SCK -- GPIO18 GPIO36 GPIO3
MOSI -- GPIO23 GPIO35 GPIO2
CSN -- GPIO5 GPIO34 GPIO1
GDO0 -- GPIO15 GPIO33 GPIO0
GDO2 -- N/C N/C N/C
GND -- GND GND GND
VCC -- 3.3V 3.3V 3.3V


Emilevanderlaan avatar Feb 28 '23 16:02 Emilevanderlaan

if you run setspiPin before init then your setspi config will be used. init only loads the default values ​​if you don't define setspiPin. in the code is a query whether setSpiPin was set. This prevents init from taking the default values. it will use your set pins. Regards

LSatan avatar Mar 01 '23 12:03 LSatan

Hi do you know which pin can use for gdo2 currently I use pin 3 instead 4 but It doesnt work. I got shotcoming to get signal. Recently I vary the pin and it seem none of it can be use. (Or perhap I broke the chip). I am try Serial.prinln(digitalPinToInterrupt(A3)); the out put shows 3. It indicate this pin can be use for inteerupt am I right?

feyhong1112 avatar Mar 29 '24 21:03 feyhong1112

Feyhong Send me a Email (Fey [At] emsign [dot] nl) then i will send you what i have done, it is not fit to put on Github

Emilevanderlaan avatar Apr 01 '24 09:04 Emilevanderlaan

You can put your code on github by folk this lib. Thank for your supporative action!

feyhong1112 avatar Apr 04 '24 11:04 feyhong1112