hoverboard-firmware-hack icon indicating copy to clipboard operation
hoverboard-firmware-hack copied to clipboard

PWM RC with 2 canals

Open franck24300 opened this issue 5 years ago • 25 comments

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

franck24300 avatar Jun 25 '19 17:06 franck24300

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.

benjaf avatar Jun 25 '19 19:06 benjaf

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

snowkingcro avatar Jun 30 '19 18:06 snowkingcro

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

virus81-pro avatar Aug 05 '19 17:08 virus81-pro

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!

benjaf avatar Aug 23 '19 17:08 benjaf

where can I see?

verial avatar Aug 25 '19 03:08 verial

@verial Here: RC Steering

benjaf avatar Aug 25 '19 06:08 benjaf

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

works only forward and right

verial avatar Aug 28 '19 04:08 verial

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

snowkingcro avatar Sep 01 '19 19:09 snowkingcro

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

verial avatar Sep 02 '19 09:09 verial

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..

lukis01 avatar Apr 29 '21 13:04 lukis01

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.

Candas1 avatar Apr 29 '21 14:04 Candas1

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...

lukis01 avatar Apr 29 '21 18:04 lukis01

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?

benjaf avatar Apr 29 '21 19:04 benjaf

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)..

lukis01 avatar Apr 30 '21 05:04 lukis01

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!

benjaf avatar May 01 '21 06:05 benjaf

Uploading IMG_20210429_1016053.jpg…

lukis01 avatar May 01 '21 15:05 lukis01

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?

lukis01 avatar May 01 '21 15:05 lukis01

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

Candas1 avatar May 01 '21 15:05 Candas1

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.

snowkingcro avatar May 01 '21 17:05 snowkingcro

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

Candas1 avatar May 01 '21 17:05 Candas1

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.

benjaf avatar May 01 '21 19:05 benjaf

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

Candas1 avatar May 01 '21 20:05 Candas1

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.

mrlunk avatar May 09 '21 17:05 mrlunk

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?

birdemirleblebi avatar Mar 05 '23 22:03 birdemirleblebi

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

Candas1 avatar Mar 06 '23 07:03 Candas1