gueei / DShot-Arduino

DShot implementation for Arduino using bit-banging method
68 stars 25 forks source link

receiving DShot #1

Closed maciek252 closed 4 years ago

maciek252 commented 4 years ago

I've asked this question on Stack Overflow, but it has been deleted and I doubt if it will survive the next attempt

https://arduino.stackexchange.com/questions/43851/dshot-implementation-on-arduino-esc-protocol

so asking also here:

Is it possible to use/adapt the library for receiving DShot as well? The motivation is that some (all?) ESCs fall back to PWM if they get no DShot input. So there is a possibility that the flight controller generates PWM despite being programmed for DShot output, the ESCs read it, the drone flies but it's still PWM and not DShot... So the idea is to test using Arduino if there is actually DShot emitted.

gueei commented 4 years ago

For those 8-bit AVR, (Arduino UNO for instance), I don't think it is possible to receive DShot as the technique I am using is bit banging while pushing the limit of the processor to single clock cycle.

But if you simply wants to tell if the input is PWM or DShot, I know some BLHeli will sound differently when armed, to distinguish different types of control signal.