ESPHome-Konfigs für CC1101-Funksender/-empfänger inkl. Flash-Anleitung
- Sender (ESP32-C3 Super Mini) und Empfänger (ESP32-S3), beide mit CC1101 433 MHz - README dokumentiert USB-TTL-Anschluss, da der interne USB-Serial/JTAG nach Zadig unter Windows 11 nicht mehr nutzbar ist - Verdrahtungsschema CC1101 als SVG
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
substitutions:
|
||||
geraet: auto-sender-01 # <- pro Fahrzeug ändern: 01, 02, 03 ...
|
||||
fahrzeug_id: "0x01" # <- pro Fahrzeug ändern: 0x01, 0x02, 0x03 ...
|
||||
|
||||
esphome:
|
||||
name: ${geraet}
|
||||
friendly_name: Auto Sender 01
|
||||
|
||||
esp32:
|
||||
board: esp32-c3-devkitm-1
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
logger:
|
||||
|
||||
api:
|
||||
encryption:
|
||||
key: !secret api_key
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: !secret ota_password
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
# Wichtig: im Auto ist kein WLAN in Reichweite.
|
||||
# Ohne diese Zeile würde der ESP alle 15 Min neu starten.
|
||||
reboot_timeout: 0s
|
||||
|
||||
# --- SPI zum CC1101 ---
|
||||
spi:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
miso_pin: GPIO5
|
||||
|
||||
# --- CC1101 im Paketmodus ---
|
||||
cc1101:
|
||||
cs_pin: GPIO4
|
||||
gdo0_pin: GPIO3
|
||||
frequency: 433.92MHz
|
||||
modulation_type: GFSK
|
||||
symbol_rate: 4800
|
||||
output_power: 10 # volle Leistung, Reichweite regelt der Empfänger per RSSI
|
||||
packet_mode: true
|
||||
packet_length: 4
|
||||
crc_enable: true
|
||||
sync0: 0x91
|
||||
sync1: 0xD3
|
||||
|
||||
# --- alle 2 Sekunden die Fahrzeug-Kennung senden ---
|
||||
# Paketaufbau: [Magic, Magic, Fahrzeug-ID, Reserve]
|
||||
interval:
|
||||
- interval: 2s
|
||||
then:
|
||||
- cc1101.send_packet:
|
||||
data: [0xA7, 0x3C, ${fahrzeug_id}, 0x00]
|
||||
|
||||
# Onboard-LED des Super Mini (invertiert)
|
||||
light:
|
||||
- platform: status_led
|
||||
name: Status
|
||||
pin:
|
||||
number: GPIO8
|
||||
inverted: true
|
||||
Reference in New Issue
Block a user