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

Using 12V lead acid battery

Open js333031 opened this issue 2 years ago • 25 comments

Variant

No response

Control type

No response

Control mode

No response

Description

I don't have the 36V Li Ion batteries but do have the mainboard and motors/wheels. Is it possible to:

  1. Flash new firmware w/o power source connected to the XT60 connector? The firmware flashing instructions seem to allow so but older documentation I believe required ">36V" power connected to XT60
  2. Run the firmware and motors w/12V lead acid battery?

I happen to have the Pb battery and wanted to check before I purchase Li battery.

js333031 avatar Jul 07 '22 18:07 js333031

Hi,

You can power the chip with 3.3v from stlink, but it's not recommended, it seems few people ended up bricking the board. I am not sure running on 12v is a good idea, the power button will for sure not work with that low voltage.

Candas1 avatar Jul 20 '22 08:07 Candas1

The mosfet gate drivers run on 14V. but technically they should already work at 12V.

RoboDurden avatar Jul 29 '22 18:07 RoboDurden

Is there a way to enable the board without the power button? just turning on when plugging power? Want to try to run the board on a 4S lipo

derFrickler avatar Jan 21 '23 14:01 derFrickler

Shorting the first TIP127 TO220 transistor will always power the board. This happens when that transistor blows. These boards then will always turn on once the battery is connected. Have a look at the schematic.pdf ..

You should uncomment

  if (inactivity_timeout_counter > (INACTIVITY_TIMEOUT * 60 * 1000) / (DELAY_IN_MAIN_LOOP + 1)) {  // rest of main loop needs maybe 1ms
      poweroff();
    }

in main.c because the power down melody might hang at the last tone :-(

RoboDurden avatar Jan 21 '23 14:01 RoboDurden

Great, thanks a lot, I will try that

derFrickler avatar Jan 21 '23 15:01 derFrickler

Seems its not an TIP127 on my board (the 2nd on is), first one is an IRF9530N. But bridging source and drain did the Job ;_)

Thanks a lot! Finally my tracked rover project moves on. Tried different BL-controller boards before, but they all do some kind of ramping on the speed which makes skid-steering impossible.

derFrickler avatar Jan 21 '23 17:01 derFrickler

Yes, some boards have a mosfet instead of a to220 transistor. Not really neccessary. Don't forget to post a youtube video when you have something nice to show :-)

RoboDurden avatar Jan 21 '23 17:01 RoboDurden

does it work for u derfrickler?

abyy28y avatar Feb 01 '23 20:02 abyy28y

YES, works great, i will do a video soon.

derFrickler avatar Feb 01 '23 20:02 derFrickler

works on 12 volt?

abyy28y avatar Feb 01 '23 20:02 abyy28y

Shorting the first TIP127 TO220 transistor will always power the board. This happens when that transistor blows. These boards then will always turn on once the battery is connected. Have a look at the schematic.pdf ..

You should uncomment

  if (inactivity_timeout_counter > (INACTIVITY_TIMEOUT * 60 * 1000) / (DELAY_IN_MAIN_LOOP + 1)) {  // rest of main loop needs maybe 1ms
      poweroff();
    }

in main.c because the power down melody might hang at the last tone :-(

excuse me is there is any way or tip127 substitute to make the board powered on 12 volt using the power button?

abyy28y avatar Feb 01 '23 20:02 abyy28y

excuse me is there is any way or tip127 substitute to make the board powered on 12 volt using the power button?

The power button triggers the littler transistor Q1 which will activate that first TIP127. You might need to decrease the resistance of R1 from 30 kOhm to maybe 20k or 10k in order to trigger Q1 when V_bat is only 12V instead of 36V. See the schematics pages 5 and 6 of https://raw.githubusercontent.com/EFeru/hoverboard-firmware-hack-FOC/main/docs/20150722_hoverboard_sch.pdf

You could try to feed in the 12V with a 10k Ohm resistor directly into the On_Switch Jumper J1 pin 1.. Just a quick idea..

I am currently working on the Gen2 boards: https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x

RoboDurden avatar Feb 01 '23 20:02 RoboDurden

Thank u so much RoboDurden and good luck, I will try it.

abyy28y avatar Feb 01 '23 21:02 abyy28y

Hi, any news on using a 12V battery ?

ash25mi avatar Mar 19 '23 14:03 ash25mi

Its working on 4s Lipo, so it should be fine at 12V aswell, just need to set the batery low levels in the code.

derFrickler avatar Mar 21 '23 07:03 derFrickler

BTW, i promised a video, heres one of the first test-drives: https://www.youtube.com/watch?v=epiRJ1xkm4k

derFrickler avatar Mar 21 '23 07:03 derFrickler

Is there a way to enable the board without the power button? just turning on when plugging power? Want to try to run the board on a 4S lipo

I forgot to tell you that I auto-power-on my solar camper with a 10 uF Capacitor and a ? KOhm discharge resistor. When powering the board, the capacitor is discharged and simulates a short button push :-) That way you eliminate the big spark when plugging in the battery. Even 10A Power switches do not last long because of the big capacitors of the hoverboard controller that I only use to generate up to 2 amps pedal assist.

That tank you built looks like a great utility platform for a mini gardening or farming tractor. The direct drive however will only allow for less then 100 Watt power output at acceptable low speeds ?

The tank tracks might be expensive. But maybe you found a cheap solution :-)

RoboDurden avatar Mar 21 '23 08:03 RoboDurden

I bought the tracks years ago from Aliexpress for $40, but they are not available anymore (at least not from Europe). Power is fine like this as its only a fun vehicle and i am only using 4S right now. It was able to pull the Sled with my 2 small kids on the Snow...

derFrickler avatar Mar 21 '23 09:03 derFrickler

I don't like fun projects... Better make it a $200 12s suicide gps bomber tank to support Ukrainian soldiers :-/

RoboDurden avatar Mar 21 '23 16:03 RoboDurden

Its working on 4s Lipo, so it should be fine at 12V aswell, just need to set the batery low levels in the code.

Thanks for the feedback ! Nice build.

I forgot to tell you that I auto-power-on my solar camper with a 10 uF Capacitor and a ? KOhm discharge resistor. When powering the board, the capacitor is discharged and simulates a short button push :-) That way you eliminate the big spark when plugging in the battery. Even 10A Power switches do not last long because of the big capacitors of the hoverboard controller that I only use to generate up to 2 amps pedal assist.

Thanks it is a good addition !

I don't like fun projects... Better make it a $200 12s suicide gps bomber tank to support Ukrainian soldiers :-/

Small drones in Ukraine are also consumer grade, sometimes based on open-source projects, and also using hobby components. If you want to see it that way, the existence of hobbies enables people to learn skills and create projects, and an industry to exist.

ash25mi avatar Mar 21 '23 20:03 ash25mi

BE AWARE THE FOLLOWING MODIFICATION POTENTIALLY MAKES THE BOARD UNSAFE TO USE WITH HIGHER VOLTAGES, DONT DO THIS UNLESS YOU KNOW WHAT YOU ARE DOING

Just wanted to share an example for anyone looking how to quickly make the board turn on with lower voltage. For my setup I wanted it to run off 18v Ryobi batteries which wasn't letting it power. I added a 22k ohm resistor as shown in the image (as suggested by @RoboDurden). This drops the R1 resistance from 30k to 12.6k. (ignore the soldering job, hard to apply enough heat on the massive copper area) image It now powers up from 18v without issues. Remember to update the firmware as well to avoid it shutting down from under-voltage detection.

TinkerWorX avatar Dec 11 '23 11:12 TinkerWorX

Be aware that now attaching a fully loaded 36V battery might exceed the 3.3V/5V of the MCU input pin !

RoboDurden avatar Dec 11 '23 11:12 RoboDurden

Good point, I added a warning to my post to make sure people understand this.

TinkerWorX avatar Dec 11 '23 11:12 TinkerWorX