lucysrausch / hoverboard-firmware-hack

New Hoverboard Firmware Hack. Now written from scratch and generally much better.
GNU General Public License v3.0
695 stars 405 forks source link

PWM RC with 2 canals #111

Open franck24300 opened 5 years ago

franck24300 commented 5 years ago

Apparently this Russian has managed to operate the direction using a RC PWM receiver, but he does not say how he did: https://youtu.be/wz8GJdSAYwM

benjaf commented 5 years ago

I might revisit full RC PWM control at some point, but at the moment I am awaiting a pull request on the bipropellant fork before moving any further. Anyone wanting to implement PWM control can look at my fork for inspiration. I suspect that the timer I used for the steering channel was also being used elsewhere, but I did not investigate further.

snowkingcro commented 5 years ago

That would be genious... And very generous from you too 😎

virus81-pro commented 5 years ago

That would be genious... And very generous from you too

benjaf commented 5 years ago

All right - I have created a new branch on my fork, which has full control via RC PWM. Having the channels share a single timer made all the difference, so there it is!

verial commented 5 years ago

where can I see?

benjaf commented 5 years ago

@verial Here: RC Steering

verial commented 5 years ago

@verial здесь: рулевое управление RC

works only forward and right

snowkingcro commented 5 years ago

@benjaf Just to report that it's finaly working! Smooth and precisely! Thank you for your time and will for us noobs...

verial commented 5 years ago

https://www.youtube.com/watch?v=Xee27lz3rug&feature=youtu.be

lukis01 commented 3 years ago

Sorry to bother you but I tried several attempts to wire and pair RC transmitter and receiver from AliExpress but it doesn't work. I used benjaf's forked files and got working pwm on flysky gt2b (ch2-ground,positive,signal and ch1-only signal). Everything worked,until I decided to change to different RC kit-after connecting both wheels act like crazy (spinning without control both ways). Could someone help me please? That flysky kit works fine,but I'd prefer much smaller transmitter for my project..

Candas1 commented 3 years ago

Are you sure this RC kit is doing PWM ? PWM protocol is so poor that it will pick anything as a signal. For example if you send PPM or serial/USART it can go crazy.

lukis01 commented 3 years ago

well...before you replied, I thought that all RC kits are using PWM :D I "just" flashed PWM version from benjaf's repo using some custom changes in config file, connected flysky et voila...everything worked .... Now, after some google diggin I am not so sure, that this little piece s is using the same type of signal...thank you for pointing me to a possible solution.. I guess I could try an PPM version...

benjaf commented 3 years ago

That small RC kit looks just like the one I'm using, so it definitely should work. Do you have any servos around to check that the receiver actually outputs a valid PWM signal?

lukis01 commented 3 years ago

yes, I bought some SG90 servos just to be sure that kit is OK and they both worked perfectly (I wasn't sure if kit is paired properly). Yesterday I found some additional information about the kit - it isn't supposed to work under FOC. Couldn't be a problem here? I am using FOC, control mode 2 (SPEED) with reduced values (speed+steer coefficient)..

benjaf commented 3 years ago

I honestly have no idea why it wouldn't work if the receiver is connected correctly and outputs a proper PWM signal. The protocol is very simple, and doesn't really leave much room for interpretation!

lukis01 commented 3 years ago

![Uploading IMG_20210429_1016053.jpg…]()

lukis01 commented 3 years ago

I am using FOC mode in config file (value 2) together with this receiver wiring (ch2 for throttle and ch1 for steering).same wiring and adjustment I use for flysky that works properly...could you please check your mode settings just to be sure please?

Candas1 commented 3 years ago

So you are not using Niklas firmware but Emanuel's firmware?

snowkingcro commented 3 years ago

The proof that benjafs firmware works is here: https://youtu.be/d5Pv82Sy5zc

I flashed my board with his repo /steering and use a common 3ch RC car receiver/transmitter.

Candas1 commented 3 years ago

Yeah but I am not sure what firmware we are talking about anymore... I assume people raise issues in the repository they are using.

benjaf commented 3 years ago

It looks like we are taking about Emanuels firmware, possibly my fork of it (which is way behind the main branch and should not be used!). If that is the case, any issues should not be discussed here but rather on the appropriate repos.

Candas1 commented 3 years ago

On Emanuel's fork pwm variant is using the right sensor cable by default because it's shorter, and the left one for debug usart. But lukis01 didn't mention if he used different forks

mrlunk commented 3 years ago

Works fine for me here's the proof:

https://www.youtube.com/watch?v=P9L5MrHEN-k

I'm using left sensorcable (shortened). Emanuel's version.

PL.

birdemirleblebi commented 1 year ago

Hello, I have the same problem as above. (spinning without control both ways)

The software I use: https://github.com/benjaf/hoverboard-firmware-hack-esk8/tree/RC-Steering

Here is the controller I use: https://i.hizliresim.com/ackcrkb.jpg

Do you have a suggestion?

Candas1 commented 1 year ago

I suggest you read this thread... It says use Emanuel Feru's firmware and post your question in the right repository...