bastian2001 / Hardware-DShot-on-RP2040

1 stars 0 forks source link

Missing files 'pico/stdio_usb.h' and general questions #1

Open Just4Stan opened 2 months ago

Just4Stan commented 2 months ago

Hello! I am developing a nerf blaster than uses brushless motors as flywheels. I'd really like closed loop RPM control so that the motors spin up faster with PID and so that I can shoot as soon as the eRPM reads high enough. There are a few dshot on RP2040 github repo's but after some digging yours seemed the most promising. I am, however, not that great at coding. And I cannot get the code to compile. My platform is the Waveshare RP2040 Zero as that's one of the only RP2040's that'l fit in my design. I changed the platform.ini file accordingly.

I would really love to have a talk about this implementation, it shouldn't be too hard but again my code skills aren't up to par, have been at this for weeks now. Payment to make it worth your time is definetly possible. I'm not too familliar with GitHub either, you could add me on Discord if you'd like: juststan_

bastian2001 commented 2 months ago

Hey, this sounds like a really cool project! Two things about the state of this repo though: I have some newer implementations of bidirectional DShot that are more resilient towards clock deviations between RP2040 and ESC and that won't require manual clock adjustments. Secondly, I am using the wizio-pico core here, that was deprecated and put offline a month or so after I put this project live. That is probably the reason why it won't compile properly. I'd recommend that you check out the newer, much more complete and still maintained RP2040 Arduino Core by earlephilhower. Make sure that when you install it, you follow these instructions to enable long file paths on Windows and Git.

You can find the newer code in my Kolibri-FC repo, or more detailed:

I'll hit you up on Discord, to discuss implementation-specific details, cause you're right they're out of the scope of this repo.