gueei / DShot-Arduino

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

Not working with Bluejay ESC #5

Open fcladera opened 2 years ago

fcladera commented 2 years ago

Hi,

Thanks a lot for implementing this! I am trying to test the code with a bluejay ESC. I am able to make the ESC work using betaflight, but when I try with this implementation I cannot make it work. Do you have any hints?

Thank you again!

gueei commented 2 years ago

There is chances that the "clock" on arduino and the ESC is not "match" (both have chances to be inaccurate, normally about +-1%), and since arduino clock is relatively slow (only 8M) the slight inaccuracy renders the output not acceptable by the ESC.

Two things you can try: 1) try different arduino on the said ESC or/ 2) use a slower DShot protocol (DShot 150), the higher frequency the more likely the accuracy will be an issue

Of course if you have access to a good oscilloscope you can check the wave output from arduino