LiBSU - Redesigning the "Battery Support Unit" to Support Lithium

Discussion in 'Gen 3 Prius Technical Discussion' started by mudder, Jun 7, 2024.

  1. ASRDogman

    ASRDogman Senior Member

    Joined:
    May 29, 2018
    7,490
    3,882
    0
    Location:
    Florida
    Vehicle:
    2010 Prius
    Model:
    Two
    You want the Sodium battery....

     
  2. black_jmyntrn

    black_jmyntrn Senior Member

    Joined:
    Oct 23, 2020
    1,721
    404
    4
    Location:
    Los Angeles, CA
    Vehicle:
    2013 Prius Plug-in
    Model:
    Plug-in Advanced
    Agreed! Anything else you try will be met with a brick wall stopping your forward progress...

    Well.... Unless you have a PHEV like me then... you can get well over 70kWh like I am about to... :)
     
  3. Brian1954

    Brian1954 Senior Member

    Joined:
    Jan 31, 2021
    2,069
    806
    0
    Location:
    South Central PA, USA
    Vehicle:
    2011 Prius
    Model:
    III
  4. Grit

    Grit Senior Member

    Joined:
    Aug 22, 2017
    6,573
    4,225
    1
    Location:
    Wilkes Land
    Vehicle:
    2012 Prius
    Model:
    Four
    Great post referral. Do I want a salty battery? Two thumbs down fart noise!!!
     
  5. hurricos

    hurricos Junior Member

    Joined:
    Aug 20, 2023
    52
    13
    0
    Location:
    Burlington, Vermont
    Vehicle:
    2008 Prius
    Model:
    One
    A few questions RE: LiBSU - share what you're willing:

    - Will any parts be mechanically interchangeable between the Gen2 (XW20) and NiMH Gen3 (XW30) Prius? I have gotten two Gen2 Prii back on the road after battery issues in the last year, and own a third one (it's part of why I'm less active on InsightCentral). I had the good experience of tearing down a MY2016 Prius V NiMH battery and installing it in an '07 Prius, so I really appreciate the mechanical interchangeability.

    - How much of the battery enclosure do you expect to reuse in your design?

    - Are you still in the selection process for cells?

    - Note: I'm happy to contribute however I can to support expansion to cover the Gen2 Prius, assuming I can distribute my work under an open license.
     
  6. mudder

    mudder Active Member

    Joined:
    Mar 13, 2024
    235
    307
    0
    Location:
    Chattanooga, TN
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    I'm designing LiBSU to be battery agnostic. It'll have several serial buses (USB, isoSPI, SPI, UART, CAN, etc), and will support pretty much any lithium battery with an onboard BMS (or a breakout BMS node that I will also offer, for the DIY crew).

    My initial focus is Gen3 Prius (including Prius V), but Gen2 Prius is very similar mechanically from my product's PoV.

    This will depend on the battery you use:
    First offering is a complete drop-in unit that uses OEM Toyota cells, including Toyota's onboard lithium BMS.
    Mechanically it will fit in the Gen2/3/V Prius and all similar.

    Later offering is a blade-like daisy-chained isoSPI solution using what I call a '4xBlade' (because it's four OEM blades wide). There will be a single '2xBlade' for those cars whose OEM blade count isn't wholly divisible by four. 4xBlade considerably reduces cost, because a properly designed BMS has a fixed price per node (i.e. there's very little price difference between QTY4 & QTY8 cells... the cost is in the node, not the cell count). Mechanically it will fit in any Toyota vehicle that uses blades.

    Not for the above products, but again LiBSU is battery agnostic (just like LiBCM).

    I'm doing Gen3 Prius first, followed by Gen2.
    I'm working on showing a working prototype soon.
     
  7. mudder

    mudder Active Member

    Joined:
    Mar 13, 2024
    235
    307
    0
    Location:
    Chattanooga, TN
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    FYI: Here's a color-coded preview of the Gen3's serial protocol:
    [​IMG]

    ...it's a little more complicated than the Honda Insight's BATTSCI frames, but still not too difficult to figure out if you know what you're doing. Fun problem to reverse engineer. For reference, the Honda system packs all this data into 16x fewer bytes (24 vs. 384). Not saying Toyota's method is bad... just very verbose.

    I'm still trying to figure out what a couple bytes do, but the other QTY382 are fully deciphered. I believe one of the two unknown bytes is actually an error in Toyota's official serial data stream (0x37B10 is always identical to 0x37B11). For now I intend to just duplicate the as-found behavior, although for academic purposes I'd like to figure that out eventually.

    Overall I think Toyota made some odd design decisions on the BSU. I prefer Honda's system of having separate battery and motor control computers (BCM & MCM, respectively). Toyota does things differently, which means the BSU ends up passing a bunch of pack-specific information to the main computer. It's less modular, but obviously it works.
     
    #27 mudder, Aug 22, 2025
    Last edited: Aug 22, 2025
  8. Tideland Prius

    Tideland Prius Moderator of the North
    Staff Member

    Joined:
    Oct 2, 2004
    45,284
    16,532
    41
    Location:
    Canada
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    @ChapmanF Well, it's much easier to clean it up :D.
     
    Brian1954 and mudder like this.
  9. hurricos

    hurricos Junior Member

    Joined:
    Aug 20, 2023
    52
    13
    0
    Location:
    Burlington, Vermont
    Vehicle:
    2008 Prius
    Model:
    One
    Heads up: I now own a 2012 Prius by pure chance (bought cheap due to P0AA7 due to a blown-up BSU trace; was an easy fix, (edit) just swapped in a spare BSU).

    PXL_20250930_041100614.MP.jpg

    I will continue to have access to this Gen3 Prius for at least 2 years.

    The OEM battery module is fine, but I'd be happy to pay for and test any one LiBSU product you release.
     
    #29 hurricos, Oct 2, 2025
    Last edited: Oct 2, 2025
    mudder likes this.
  10. ASRDogman

    ASRDogman Senior Member

    Joined:
    May 29, 2018
    7,490
    3,882
    0
    Location:
    Florida
    Vehicle:
    2010 Prius
    Model:
    Two
  11. mudder

    mudder Active Member

    Joined:
    Mar 13, 2024
    235
    307
    0
    Location:
    Chattanooga, TN
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    The Gen3 Prius I just bought has/had a functional NiMH battery, too... yoinked it out day one to make space for this project.

    You now have the #1 spot on my open beta list. You weren't the first person to join the list, but I've enjoyed working with you in the past.

    ¿que?
     
  12. mudder

    mudder Active Member

    Joined:
    Mar 13, 2024
    235
    307
    0
    Location:
    Chattanooga, TN
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    Just finished the LiBSU proof of concept:


    This project is finally in full swing!
    Excited to start the RevA schematic tomorrow!
     
    hurricos and Brian1954 like this.
  13. mudder

    mudder Active Member

    Joined:
    Mar 13, 2024
    235
    307
    0
    Location:
    Chattanooga, TN
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    Here's all the data the Gen3 Prius' OEM BSU sends the main hybrid computer:
    -QTY14 blade Voltages, and;
    -QTY3 battery temps, and;
    -QTY1 intake temp, and;
    -Pack current sensor, and;
    -Battery fan RPM (but not control), and;
    -HVDC isolation voltage, and;
    -12V battery voltage, and;
    -BSU version number, and;
    -Pack fault flags.

    In total, there are QTY384 bytes sent via QTY24 different 16 byte packets. Generating this serial data stream on LiBSU takes ~QTY620 lines of code, which is bolted onto my existing Honda Insight firmware (~QTY9200 lines of code). So it takes ~QTY10000 lines of code to generate this proof of concept. The final code will probably be closer to QTY5000 lines once I remove all the Honda-specific features the Toyota LiBSU product won't have.

    Based on my analysis, I suspect the same serial data architecture is used on all modern NiMH Toyota vehicles. There's 'room' in the existing data structure for up to QTY20 blade voltages (i.e. QTY40 NiMH blades), and up to QTY6 total temperature sensors. I believe this covers all NiMH Toyota vehicles. Older (Gen2 and previous) vehicles use a different PHY (CAN), but the serial data stream is similar (once you abstract CAN's peculiarities).

    First LiBSU product focus is the Gen3 Prius and equivalent (e.g. Prius V, CT 200H, etc).
     
    #33 mudder, Oct 27, 2025 at 12:08 AM
    Last edited: Oct 27, 2025 at 12:24 AM
    hurricos likes this.
  14. hurricos

    hurricos Junior Member

    Joined:
    Aug 20, 2023
    52
    13
    0
    Location:
    Burlington, Vermont
    Vehicle:
    2008 Prius
    Model:
    One
    Nicely done.

    Two questions, and a comment:

    Q1) Will you be releasing your Honda_Insight_LiBCM.git fork under a copyleft license? You are the originator of the Honda_Insight_LiBCM codebase, so you can license it as you wish, but I am itching to see-and-poke.

    Q2) At this time, can you confirm that your intent right now is to create a replacement pack with similar capacity (0.5-1 kWh usable) as the OEM NiMH (not a plug-in depletion mode product)? The 60S FoMoCo pack in your video has about 8kWh usable capacity, but I'm sure you only used it here because the mounting and voltage ranges were convenient. From your post about what data the BSU sends the HV ECU, it seems there's no usable control interface (other than the gimmicky "EV Mode" button in the C, V, Gen3 and CT200h) for you to encourage depletion from software, and even with extra hardware (as with LiBCM's "spoofing" to the VCM/IGBT and MCM), we see no proof yet that tricks can be played (though I have seen some documented "plug-in" builds for the Gen2 that force depletion by suggesting overcharge and rely on chemistries which yield a higher VBAT bus).

    To be clear, plopping a well-controlled same-sized lithium pack in place of NiMH is VERY beneficial as-is. My 2008 (216kmi with its original battery) really limps in comparison to a friend's 2007 with a much newer (junkyard) pack.
     
    #34 hurricos, Oct 27, 2025 at 11:20 AM
    Last edited: Oct 27, 2025 at 11:26 AM
  15. Ivoh95

    Ivoh95 New Member

    Joined:
    Yesterday
    3
    2
    0
    Location:
    Nashville
    Vehicle:
    Other Hybrid
    Model:
    N/A
    Great work, had to join Priuschat just to tell you this. It's exciting to see some new developments for the gen3 Toyota hybrids!

    Looking forward to the next update.

    I'm also interested in any beta testing if/when available. But it seems as a new member I am unable to PM until I have a few posts.
     
  16. mudder

    mudder Active Member

    Joined:
    Mar 13, 2024
    235
    307
    0
    Location:
    Chattanooga, TN
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    Great questions!

    The Honda Insight LiBCM project is already open source.

    The Toyota LiBSU project will have both open source and closed source components:
    -The LiBSU computer itself will be closed source, and reasonably priced. It's too soon to guess at the price, but I'm shooting for $300, which is an absolute bargain.
    -The battery-side PCB reference design will be open source, with a permissive license. 3rd party battery manufacturers can use the reference design on their own closed source battery modules. Their modules – with my reference design inside – will then work with my closed source LiBSU computer. In case it's unclear, there will be zero licensing fees for using my reference design inside 3rd party lithium modules.
    -I even intend to design and sell an open source "blade style" PCB that plugs into a standardized 0.1" header on top of each 1x/2x/4x blade (3rd party battery designer's choice). For example, a 2xBlade (i.e. twice the width of OEM) will have QTY5 pins that connect to my PCB (with no wire harness, it'll be a b2b connector with sufficient mechanical stackup relief).

    Unlike the niche G1 Honda Insight community, the aftermarket Toyota community is too large and competitive for me to give my work away... there would be a race to the bottom that I just can't stomach. LiBCM for the Honda Insight is a passion project; LiBSU for the Toyota ecosystem isn't... it's just work, and a lot of it at that.

    Team Jack might attack my position.
    I'll remind them that NexPower has shared the same position from day one.

    Correct, the initial focus is on a similarly sized pack (between 1 & 2 kWh).

    Correct: The hardware you see in my proof on concept is literally a 47Ah LiBCM Kit kludged into the Prius. I literally grabbed a complete LiBCM Kit off the shelf and stuffed it into the Prius.

    I haven't shown the proof you're looking for yet, but for now I'll just say there is a mechanism to encourage the car to deplete the battery. It's nowhere near as good as the various manual IMA controllers developed for the G1 Honda Insight, but there is a mechanism to encourage the Toyota hybrid computer to consume more than just the stock pack energy.

    Maybe someone should start working on a manual IMA controller for the Prius? I can't imagine it's too difficult.

    At this point I'm sure you're aware that you're first on the beta list... once those kits exist. No ETA... I'm retired. It'll be ready when it's ready. However, I will say I'm very excited, and my work schedule is 100% based on excitement.
     
    #36 mudder, Oct 27, 2025 at 6:07 PM
    Last edited: Oct 27, 2025 at 6:15 PM
    hurricos likes this.
  17. ASRDogman

    ASRDogman Senior Member

    Joined:
    May 29, 2018
    7,490
    3,882
    0
    Location:
    Florida
    Vehicle:
    2010 Prius
    Model:
    Two
    Just remember, this is old batteries, that is being replaced with sodium batteries.
    It's like trying to updating your old 486 computer to work instead of updating with the
    newer technology. It's may be nice to play with it, but it is extremely limited.

    Llithium has more or less replaced the NiMH batteries because they hold voltage better
    and longer and are much lighter, but subject to catching on fire when getting wet or the
    packs are punctured. That's why the move is on the Sodium, not just for cars, but for
    other products, because they are lighter, hold storage better and longer, cost less,
    and it's much safer.

    Yes, I will be attacked for this, it's sop for some people, because that's what they like to do.


     
  18. Ivoh95

    Ivoh95 New Member

    Joined:
    Yesterday
    3
    2
    0
    Location:
    Nashville
    Vehicle:
    Other Hybrid
    Model:
    N/A
    with this new BSU, it will actually be possible to safely use other chemistries such as sodium ion safely. Although second hand, low mileage, low cost, high quality lithium OEM packs are available in junkyards almost anywhere, such as the ford cells in the demo video.

    Otherwise there is definitely no safe way to replace the stock nimh with another chemistry, the charging limits, discharging limits, temperature derating, voltage ranges, cell monitoring , SOC calculation, all need to be correct for the chemistry. Which this BSU would allow because it has control over all the data, instead of relying on the stock nimh algorithms.
     
    mudder and hurricos like this.
  19. hurricos

    hurricos Junior Member

    Joined:
    Aug 20, 2023
    52
    13
    0
    Location:
    Burlington, Vermont
    Vehicle:
    2008 Prius
    Model:
    One
    I kind of chuckled at this. They're easy to get used, but I wanted to note that new from Toyota, the module you're replacing costs $364.48. :giggle:


    Yeah. I'll be here. Given your hints about encouraging the hybrid system to deplete, sounds like I'll be keeping my Gen3 Prius for a while.
     
  20. ASRDogman

    ASRDogman Senior Member

    Joined:
    May 29, 2018
    7,490
    3,882
    0
    Location:
    Florida
    Vehicle:
    2010 Prius
    Model:
    Two
    Yes, there has been a safe way.....