firmware: fix I2C pins and clock for XIAO ESP32C6 - #4
firmware: fix I2C pins and clock for XIAO ESP32C6#4watarufujiwara-zeals wants to merge 2 commits into
Conversation
- I2C clock: 400kHz → 100kHz (AS5601 stability fix) - SDA/SCL pins: 21/22 → 20/19 (match ESP32C6 hardware wiring) - Remove duplicate Wire.begin()/setClock() before encoder.begin() - DEVICE_ID: "CHANGE HERE" → "R003" Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
DEVICE_ID should remain "CHANGE HERE" as a per-device placeholder to be set at flash time. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Confirming this fix. Same issue on XIAO ESP32C6 + AS5601 wired per the yubi-hw table (SCL=D8, SDA=D9): "No magnet detected", stream stuck at 0.0. The leading argument-less |
|
Thank you for your PR and the additional verification. Also, regarding the observation that a baudrate of 100kHz is more stable, we suspect this mismatch may be the cause. Currently, AIRoA uses the D4/D5 pins together with 400kHz, so switching to these pins might allow 400kHz to work without issues as well. |
|
After investigating internally, it appears that an incorrect pin assignment was written in as a result of the modifications made during the open-sourcing process. |
|
We apologize for the issue with the wrong PIN assignment. We have fixed it now. You can see the PR about it at the following link. |
Description
Bug fixes for the AS5601 encoder firmware targeting the Seeed XIAO ESP32C6.
Wire.begin()/Wire.setClock()insetup()—encoder.begin()handles this internallyType of Change
How Has This Been Tested?
Flashed onto a Seeed XIAO ESP32C6 + AS5601 and verified encoder values stream correctly via Serial monitor.