EFeru / hoverboard-firmware-hack-FOC

With Field Oriented Control (FOC)
GNU General Public License v3.0
1.09k stars 915 forks source link

Could you add PWM of possible remote? #28

Closed BorgStefan closed 4 years ago

BorgStefan commented 4 years ago

Hi Emanuel,

I have taken 4 ten inch wheels and mainboard from 2 Hoverboards. Constructed my own skatebord and using Benjaf repository to make and build a software which uses PWM as remote. Hence I have a 4 wheel drive and it does around 20 km/h. https://github.com/benjaf/hoverboard-firmware-hack-esk8 I would be really happy if you could add PWM control to your sw. I would like to try it with my skateboard. My skateboard makes 12 km with 4 Hoverboard batteries. Many thx for your great effort so far! IMG_9044

BR Stefan

pinguinpfleger commented 4 years ago

Hi Stefan,

PPM is already implemented. It is serialized PWM, means all channels goes over one wire. You'll have to convert PWM to PPM using an arduino / esp / teensy ... Code you'll find here on github.

PS: interesting eboard :-)

BorgStefan commented 4 years ago

Hi, I am using hoverboard hack made by Niclas Fausth which Benjalf has modified to work with a PWM remote. I managed to flash to mainboards and use 2 receivers to one PWM based remote. I will try and modify feru sw to include benjalf modifications. A Video of my first tries with Benjalf sow.

pinguinpfleger commented 4 years ago

I see, https://github.com/benjaf/hoverboard-firmware-hack-esk8/commit/aa910a9b9a90580f96629c2652b98f8cfc7fce3b

Thats nice and would be cool when you do this as new VARIANT_PWM

EFeru commented 4 years ago

That would be nice to add, however is up to you to perform the testing since I don't have the remote and receiver. I agree with Kai to add a new VARIANT_PWM to keep all the rest unaffected. If you do the changes make a Pull Request and I will review.

BorgStefan commented 4 years ago

Hi,

Well it has been almost 11 years since I made some coding... I am not using my skateboard for testing. I have a testbed where I try my new sw changes. Benjaf code works and the setup I made with his code is reliable but would like to try new sw. Br Stefan

4 mars 2020 kl. 21:47 skrev EmanuelFeru notifications@github.com:



That would be nice to add, however is up to you to perform the testing since I don't have the HW. I agree with Kai to add a new VARIANT_PWM to keep all the rest unaffected. If you do the changes make a Pull Request and I will review.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/issues/28?email_source=notifications&email_token=ALPFD3X4NPWV23X5VLZUIDLRF246VA5CNFSM4LANTIHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN2FZMQ#issuecomment-594828466, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALPFD3SWVPZQRE3H2WTFY2TRF246VANCNFSM4LANTIHA.

EFeru commented 4 years ago

Done.

BorgStefan commented 4 years ago

Oh you have done it?! Thank you very much. I have started on my own but then how fun it will be to try it!!! Br Stefan

24 mars 2020 kl. 20:47 skrev EmanuelFeru notifications@github.com:



Done.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/issues/28#issuecomment-603468729, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALPFD3X3AM4BLLDTJYO5CV3RJEE3XANCNFSM4LANTIHA.