lucysrausch / hoverboard-firmware-hack

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

Motor Command zero crossing causes disconnect #162

Open vamfun opened 3 years ago

vamfun commented 3 years ago

I have a strange problem with my HOVER - 1 H1 model motherboard. (See link pictures https://vamfun.wordpress.com/2020/12/23/flying-firehose-blog-1-hover-1-h1-hoverboard-tear-down/) Any command that transitions to reverse direction either + to - or vice versa causes a shutdown that requires a power on restart. If the board starts with a command you can adjust the motors with ADC but disconnects when command gets below 8. I’ve tried most Foc firmware and other firmware variants and all produce the same shutdown. Running a straight motor test download runs a one sided test...motors disconnect on the reverse transition.
Any thoughts?

RolandoQuintana commented 3 years ago

Hi @vamfun I'm having the same problem here. Have you found any solutions?

vamfun commented 3 years ago

Yes.... the board has six pins that are wired differently... the problem was the v_battery is not showing any voltage so the board disengages . Software interlocks keep it from shutting down until the command is low. That’s why it will allow a half cycle of test run. Fixing the GPIO cures the problem. The board is marked ROHS as described in the following photo. image

image See issue #126 of EmanualFeru-hoverboard-hack-FOC. “Charging enables motors on Alternate H1 motherboard ...”. It has the new pin outs. I am using the FOC firmware since I’m making the motors into servos and need good slow speed performance. I’ve got the board working using the low resolution hall sensors for position. Not bad..gets 4 deg resolution 😎

http://vamfun.wordpress.com Robot musing blog iPhone

On Jan 9, 2021, at 8:44 AM, DanielQuintana2 notifications@github.com wrote:

 Hi @vamfun I'm having the same problem here. Have you found any solutions?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

RolandoQuintana commented 3 years ago

Ah Thank you @vamfun I'm looking at issue #126 of EmanualFeru's and I don't see any pinouts...

Capture

Is there any way you could provide me with them or direct me to a diagram where I can see the configuration? Sorry to bother but thank you.

vamfun commented 3 years ago

I edited my first comment and added some pictures. Here are changes made to the EmanualFeru FOC fork by @Chaos99 for what he calls Gen3 board. These are the same changes I made.

image

image

Not sure what happened to #126 issue I posted..seems to be gone.

RolandoQuintana commented 3 years ago

Thank you so much @vamfun !!!