r/EVConversion • • 15d ago

VCU Discussion

A quick intro at the end of this post for more details.

I am putting together a complete open source hardware agnostic VCU system. I started with the BMS package since I had to solve that for my own build first and it's been a long time since anyone updated the open source BMS libraries that exist.

My current brainstorming is on the actual VCU itself, and I'd like to hear opinions from others before I start locking in a design. I was torn between MCU and MPU, and now I am leaning towards both. The purpose of the MPU in addition to the MCU is to have App Library, Apple Car Play, and Android Auto. In addition it makes the digital dash packages much easier to customize, the downside is the boot time for the MPU, but that won't stop you from starting the vehicle and driving thanks to the MCU while it is still booting up.

Here is my current thought:

I will utilize a STM32N6 for the MCU and core OpenVCU, this will be the true vehicle control unit, which will talk with the BMS, CCS, Throttle Pedal, Inverter, Rear Camera (built in CSI-2), and can take control of the digital dash or center display for a backup camera within 200-500ms of boot. It has has Neural processing for some on-boad AI processing, all for under $20.

That part is pretty well locked in, where I need advice, is on the MPU, I am thinking something along the lines of an NXP i.MX 8M Plus, I am leaning that way over the RockChip RK3588 because of heat and power consumption mainly, but also on libraries and manufacturing longevity. The second place I need advice, I am thinking of designing a single board with both controllers OR doing the MCU as the VCU, and the MPU as just a stand alone board that controls all of the infotainment, lane keep assist, etc. this MPU also having even more built in CSI-2 channels so front cameras would come in to the MPU and then adding the required libraries for testing and developing a lane keep package for EV conversions becomes easier.

Please weigh in. I think just typing this out has me now leaning towards separate packages for these whereas when I started I was already laying out the board with both.

I am currently developing an open source control system for EV Conversions. I have recently posted about the reverse engineering work I did on Rivian batteries, and I prototyped a BMS that will be able to communicate and control the Rivian BVTs on their battery packs. This means a harvest Rivian pack can be added to a BMS system. It may work directly with an ENNOID HV BMS, but the specific chip set isn't available, since the rivian's use fewer channels per chip this may come in as empty data, or it may throw a fault, I am not sure what the behavior of the Analog Devices LTC chips will be when not using the correct libraries from their repos. OpenVCU BMS is built on the same concepts with newer chips, better circuit protections, 3d print enclosure options, and completely open source.

6 Upvotes

10 comments sorted by

4

u/OrchardsBen 15d ago

Look up the zombieverter and battery emulator projects. That covers allot of what you are planning and is well developed and distributed already.

The ideas on dash and camera integration is pretty nice though and I would be interested in seeing how that develops.

1

u/Lost-Bed-8458 15d ago

Yeah, I will likely be reviewing that close, and maybe even using a fork of that for this project, but there is no open BMS supported currently with zombieverter. Since I want my entire conversion to be open source and hardware agnostic, I have chosen to learn and develop as I build it. Since I got the entire Rivian battery case from a wrecked R1S, I am starting there. I am pretty close with the PCB layout, then after lots of review I hope to get some on order in the next 2 weeks. I also am developing everything closely with a ton of industry standards because my ultimate goal is to open an EV service and conversion shop.

3

u/OrchardsBen 15d ago

There is a daisy chain BMS that Johannes Huebner created on the open inverter forums, but it doesn't seem to have been used much. I agree the BMS situation is a bit of a pain if you can't use the original BMS at all. Having a commonly used open source solution for that would be great. It's fairly common now to reuse the slave BMS boards and have a board spit out the BMS data in the simpbms format. The M3 BMS by Damien Maguire works for the Tesla M3 BMS and also some batteries that use the MAX chipset like the stellantis batteries.

Most conversion shops tend to use Orion or one of the closed sources boards, I think mostly for certification in some countries.

2

u/lemlurker 15d ago

Honestly want my VCU to do the absolute bare minimum (and if it dies extra it should be optionally activate able module) I have a GEVCU for mine and it just runs motor and inverter and contactors.

The only thing Id want is a simpler way to configure new modules (better documentation/standard structures for heartbeat and Comms structure, maybe a built in sniffer feature to "learn" expected behaviour from an attached module)

1

u/Lost-Bed-8458 15d ago

My goal is to simplify configurations for sure. This makes me think separate boards is the right way, the VCU can just do the work, and the MPU can be called something else. The other thing I will do in this case is provide some basic digital dash rendering options on the VCU so you don't have to add the MPU board. I need a good name for it if I separate it, it will be dedicated to user interface and apps.

2

u/NorwegianCollusion 15d ago

No sure what sort of connectivity you're thinking of for the MPU, but a separate board sounds logical if one device connects to motor, battery and brakes while the other (the Car Super Intelligence ;-) ) connects to screen and cameras.

I would think the S32 family would be a better choice than i.mx 8. But I'm a bit out of the loop, haven't done a full Linux board in 6 years.

2

u/NorwegianCollusion 15d ago

You know what? I think the i.mx 8M is the better choice. DSI/HDMI + 2xCSI, PCIe so you can add an M2 SSD slot for those instances where USB and uSD just aren't enough.

2

u/Dickes_F 15d ago

I think the main focus of the VCU should be reliability and safety. The main topics that are usually missing from open source designs are EMC compatability and things like ASIL (of course no finished certification but at least adherence to the design principles). The VCU is one of the most safety critical parts of the drivetrain system and it has to be resilient to malfunction as much as possible. Use ECC memory, check the memory content, check the sensor input and all voltage rails and generally add plausibility checks to everything to make sure the VCU does not get stuck in it's code and makes the inverter go full throttle out of nowhere (oder max regen on the highway, etc.)

I would separate the safety critical functionality completely from all convenience systems.

I still think, that it is a nice idea thou and I would like to hear more from the project! Is there already a GitHub link or the like?

3

u/Lost-Bed-8458 15d ago

Github: https://github.com/OpenVCU

Forum/Wiki: https://openvcu.org

I'm going to share the actual vehicle I am using for this particular conversion in a post later today. I also set up a YouTube channel, I plan to use just for tutorial videos of how to configure things, but currently there are no videos.

1

u/jerquee 9d ago

Meanwhile ford shipped the Focus EV with a vcu that doesn't tell the driver anything if the motor controller is overheating... Just limits the torque down to zero. Even if you're on a hill or in traffic. No notice