|
I have a number of ESP32-C3 devices and happy to test and confirm support for espectre. Looking at the code what would I need to change to test? Thanks |
Replies: 7 comments 7 replies
|
Hi @aptonline, Thanks for offering to test! ESP32-C3 support should work with minimal changes since it uses the same legacy CSI API as ESP32-S3. For ESPHome (ESPectre 2.0):
esphome:
name: espectre-c3
esp32:
variant: ESP32C3
partitions: partitions.csv
framework:
type: esp-idf
version: 5.5.1
sdkconfig_options:
CONFIG_PM_ENABLE: n
CONFIG_ESP_WIFI_STA_DISCONNECTED_PM_ENABLE: n
CONFIG_ESP_WIFI_CSI_ENABLED: y
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
api:
ota:
- platform: esphome
logger:
level: INFO
external_components:
- source:
type: local
path: components
components: [ espectre ]
# ESPectre - WiFi CSI Motion Detection
espectre:
traffic_generator_rate: 100
segmentation_threshold: 1.0
segmentation_window_size: 50
hampel_enabled: true
esphome run espectre-c3.yamlWhat to watch for:
If you can test and report back, I'd be happy to add official C3 support. Let me know if you run into any issues! |
|
Hi @aptonline! I just added experimental support for the ESP32-C3 (and other ESP32 variants). How to test
curl -O https://raw.githubusercontent.com/francescopace/espectre/main/examples/espectre-c3.yaml
esphome run espectre-c3.yamlWhat was changedThe code now properly detects the ESP32-C3 and uses the legacy CSI API (same structure as ESP32-S3): #elif CONFIG_IDF_TARGET_ESP32C3
// ESP32-C3 configuration (RISC-V, similar structure to S3)
wifi_csi_config_t csi_config = {
.lltf_en = false,
.htltf_en = true,
.stbc_htltf2_en = false,
.ltf_merge_en = false,
.channel_filter_en = false,
.manu_scale = true,
.shift = 4,
};Please report back!Since you have multiple ESP32-C3 devices, your testing would be super valuable. Please let us know:
Looking forward to your feedback! 🙏 |
|
Hi, just seen the comments. Happy to test and report back in the next few days. Thanks. |
|
Thanks @francescopace 🎉 !
|
|
Sorry for the delay in testing and getting back to you, yes I can also confirm everything working as expected from my brief testing. Many thanks for implementing support :) |
|
@francescopace It also works with the C3 super mini if you set the traffic generator rate to less than or equal 94. If you put 95 or more, it takes an hour and 30 minutes to calibrate and then it doesn’t work properly. I’ve tested on three different AliExpress and Temu boards. As long as you put the limit on the traffic generator rate, it works flawlessly. Some cheaper clones may not support QIO so you’d have to set the platformio build mode to DIO |
|
Flashing on all my Shelly Mini1 Gen3's. (also C3's?) They also run bluetooth_proxy for bermuda. All seems to work 👍 |


Thanks @francescopace 🎉 !
on my board<airm2m_core_esp32c3>