Skip to content

More DShot channels for ESP32-C3 - #3140

Merged
pkendall64 merged 10 commits into
ExpressLRS:masterfrom
frank26080115:feat-dshot-more-channels
Nov 13, 2025
Merged

pkendall64 merged 10 commits into
ExpressLRS:masterfrom
frank26080115:feat-dshot-more-channels

Conversation

@frank26080115

Copy link
Copy Markdown
Contributor

DShot is sent by the DShotRMT library. The problem is: ESP32-C3 only has two RMT channels that are capable of transmission.

In contrast, the Xtensa ESP32 has 8 RMT channels and is capable of outputting 8 DShot channels.

In order to add more DShot channels to ESP32-C3, I rewrote DShotRMT to use only one RMT channel, but change the pin that the RMT is connected to in a round robin fashion. This means one RMT channel can be used to output nearly unlimited number of DShot channels.

(the code is still hard coded with a 8 channel limit)

@pkendall64
pkendall64 force-pushed the feat-dshot-more-channels branch 2 times, most recently from 29eb518 to 68b2660 Compare October 18, 2025 18:23
@pkendall64
pkendall64 force-pushed the feat-dshot-more-channels branch from 68b2660 to d7565f0 Compare October 18, 2025 18:36
@pkendall64 pkendall64 added enhancement 🪄 New feature or request V4.0 🍔 labels Oct 19, 2025
@ExpressLRS ExpressLRS deleted a comment from sonarqubecloud Bot Oct 27, 2025
@CapnBry

CapnBry commented Nov 11, 2025

Copy link
Copy Markdown
Member

I'm really not a fan of us now having a separate fork of DShotRMT that has completely different changes in it. This would be better applied as an upstream change that we could pull back into ExpressLRS instead of having a new project to maintain and extend. I'd love for our next step to be bidirectional DSHOT with EDT for telemetry but instead of just merging upstream back here, we're going to be on a copy-paste journey which is just a mess.

I'll review this once the other is merged

Comment thread src/lib/ServoOutput/DShotRMT.cpp Resolved
@pkendall64
pkendall64 merged commit 9c4a8f1 into ExpressLRS:master Nov 13, 2025
CapnBry added a commit to CapnBry/ExpressLRS that referenced this pull request Dec 1, 2025
CapnBry added a commit that referenced this pull request Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement 🪄 New feature or request V4.0 🍔

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants