LSatan / SmartRC-CC1101-Driver-Lib

This driver library can be used for many libraries that use a simple RF ASK module, with the advantages of the cc1101 module. It offers many direct setting options as in SmartRF Studio and calculates settings such as MHz directly.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to connect to ESP32-C3

Emilevanderlaan opened this issue · 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


commented

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

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?

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

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