Hello all,
Im trying to setup an ESP32 super mini with CC1101
ESP super mini: https://lastminuteengineers.com/esp32-pinout-reference/
CC1101: purchases here - https://www.aliexpress.com/item/1005006427924521.html?spm=a2g0o.order_list.order_list_main.76.50f718024pcWMd
I am trying to setup basic thing. - receiver only that will just read the codes it receives and prints them to the console possibly send them to HA as text sensor.
I believe connected it together i think correct (see the yaml file with pins numbers)
i read this post Esphome-cc1101 - unable to transmit or receive
and installed the cc1101 project from github GitHub - dbuezas/esphome-cc1101 which contains an example of receiver/transmitter yaml i took.
when i load this code to my ESP, it gets endless reboots , in the logs it says wacthdog timeout
maybe this ESP mini is to weak for this purpose?
or is there simpler configuration to achieve the above ( read RF codes and print them to console )
any help or direction to look appreciated
yaml iused
esphome:
name: esp32c-super-mini3
friendly_name: esp32c-super-mini3
includes:
- cc1101.h
libraries:
- SPI
- "SmartRC-CC1101-Driver-Lib"
esp32:
board: esp32-c3-devkitm-1
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "j*******************************"
ota:
- platform: esphome
password: "*******************"
wifi:
ssid: KEDEM7
password: !secret wifi_password
manual_ip:
static_ip: 192.168.0.103
gateway: 192.168.0.1
subnet: 255.255.255.0
reboot_timeout: 5min
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "KEDEMESP3"
password: "*********"
captive_portal:
# Example configuration entry
web_server:
port: 80
light:
- platform: status_led
name: "Status LED"
id: esp3_status_led
icon: "mdi:alarm-light"
pin:
number: GPIO8
inverted: true
restore_mode: ALWAYS_OFF
sensor:
- platform: custom
lambda: |-
auto my_sensor = new CC1101(
// esp8266 example
// D5, // SCK
// D6, // MISO
// D7, // MOSI
// D3, // CSN
// D1, // GDO0
// ESP32 Super Mini
8, // SCK
9, // MISO
10, // MOSI
2, // CSN
20, // GDO0
// esp32 example
// 18, // SCK
// 19, // MISO
// 23, // MOSI
// 5, // CSN
// 32, // GDO0
200, // bandwidth_in_khz
433.92, // freq_in_mhz
id(transmitter) // id of remote_transmitter
);
App.register_component(my_sensor);
return {my_sensor};
sensors:
id: transciver
internal: true
remote_transmitter:
- id: transmitter
pin:
number: GPIO20 # This is GDO0
allow_other_uses: true
carrier_duty_percent: 100%
remote_receiver:
- id: receiver
pin:
number: GPIO20 # This is GDO0
allow_other_uses: true
# on the esp8266 use any of D1,D2,D5,D6,D7,Rx
# Don't use D3,D4,D8,TX, boot often fails.
# Can't be D0 or GPIO17 b/c no interrupts
dump:
- raw
binary_sensor:
- platform: remote_receiver
name: Garage
raw:
# prettier-ignore
code: [990,-330,330,-990,990,-330,330,-990,330,-990,330,-990,330,-990,330,-990,330,-990,990,-330,330,-990,990,-330,330,-990,330,-990,330,-990,330,-990,330,-990,330,-990,990,-330,990,-330,330,-990,330,-990,990,-330,330,-990,330]
button:
- platform: template
name: Garage
on_press:
- lambda: get_cc1101(transciver).beginTransmission();
- remote_transmitter.transmit_raw:
# prettier-ignore
code: [990,-330,330,-990,990,-330,330,-990,330,-990,330,-990,330,-990,330,-990,330,-990,990,-330,330,-990,990,-330,330,-990,330,-990,330,-990,330,-990,330,-990,330,-990,990,-330,990,-330,330,-990,330,-990,990,-330,330,-990,330]
repeat:
times: 3
wait_time: 4.733ms
- lambda: get_cc1101(transciver).endTransmission();