Skip to content

Pins to cc1101 #172

@Gnitset

Description

@Gnitset

Found your blog post about this that is very old. See that you have kept the repo uptodate.
I'm a bit confused though over how to connect the cc1101.

I have the 8pin version that should have the following pinout (according to a quick google image search):
Pin 1 = GND
Pin 2 = VDD
Pin 3 = GDO0
Pin 4 = CSN/SS
Pin 5 = SCLK
Pin 6 = MOSI
Pin 7 = MISO/GD01
Pin 8 = GDO2

spi:
  clk_pin: GPIO18
  mosi_pin: GPIO23
  miso_pin: GPIO19

cc1101:
  id: cc
  cs_pin: GPIO5
  frequency: 433.42MHz

cover:
  - platform: somfy
...
    cc1101: cc
    pin:
      number: GPIO13

I have connected:
cc1101 - esp32
pin1 - gnd
pin2- 3.3v
pin3 - D13
pin4 - D5
pin5 - D18
pin6 - D23
pin7 - D19
pin8 - D12

the logs say:

...
[D][spi_device:393]: mode 0, data_rate 1000kHz
[D][cc1101:122]: CC1101 found! Chip ID: 0x0014
[C][component:208]: Setup cc1101 took 13ms
...

Where is gdo2/gpio12 used/configured?

When pressing the button that runs id(...)->program(); nothing seems to happen.

What am I missing? Maybe an updated blog post or some more examples in the repo?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions