ZombieVerter VCU: Difference between revisions
Jason arnold (talk | contribs) (→Supported OEM Hardware: updated BMW supported CAN platforms) |
m (Updated 'Kindly Note' to announce V1a boards now avaialble) |
||
Line 1: | Line 1: | ||
{| class="wikitable" style="background-color:#ffffcc;" cellpadding="10" | {| class="wikitable" style="background-color:#ffffcc;" cellpadding="10" | ||
|'''KINDLY NOTE:''' | |'''KINDLY NOTE:''' | ||
*A | *A fully tested V1a kit is now available for general sale [https://www.evbmw.com/index.php/evbmw-webshop/vcu-boards/zombie-vcu here]. The boards are now shipping with the Wemos wifi module and all parts will be included in the kit. The Olimex header is still there for those who may prefer that option. | ||
*''Unless you have a specific reason not to, end users should use a software release from https://github.com/damienmaguire/Stm32-vcu/releases<nowiki/>.'' | *''Unless you have a specific reason not to, end users should use a software release from https://github.com/damienmaguire/Stm32-vcu/releases<nowiki/>.'' |
Revision as of 19:26, 8 November 2022
KINDLY NOTE:
|
Development continues and you can follow and contribute along with the development here on the forum
Support is available via a separate thread on the forum
Introduction
Rather than crack open inverters and swap components about to drive them, what if we simply send them the messages they're expecting? This has been the case with a couple of existing designs (Nissan leaf inverter and GS450h) and thanks to the SAM3X8E microcontroller no longer being stocked by JLCPCB this project looks to take it further.
So rather than driving an inverter powerstage this version sends CAN for the Leaf inverter or Sync serial for the GS450h and of course can be expanded to any number of others. This will be the default firmware for all VCU products from now on and future hardware will support future fun packed stuff like FLEXRAY!!!
It's basically an rip off homage and builds on other people's hard work in the shape of the following projects
- STM32-CAR project
- Openinverter
- ISA library
- Leaf inverter driver by Celeron55
What we have as of now is the openinverter wrapper with things like :
- Throttle cal and mapping,
- Precharge and contactor control,
- Temp derating,
- BMS limits,
- for/rev/neutral control,
- Graphing and monitoring,
- Firmware updates via the web interface,
- Cruise control,
- Fuel gauge driver,
- etc
Hardware
So you've ordered your kit, first things first, watch the following two videos to assemble it.
Due to chip shortages (written summer 2021) the board isn't fully assembled so you will need to do some soldering, or take it to a local phone repair shop (or similar) who'll find soldering at this scale like playing with Duplo (Legos to you Yanks).
Name | Part Numer | Alternative Part Number |
---|---|---|
CONN1 | ||
IC10 | MCP25625T | |
IC14 | TJA1020 | MCP2004 |
IC19 | NCV7356 | |
IC20 | TJA1055T | |
IC21, IC22 | AD5160 | |
IC27, IC28, IC29 | FAN3122 |
The enclosure kit links
You only need one, but below are two options - one with just the connector, and the other prewired with 3M long leads.
- Enclosure Kit with Header, connector and pins: Link to Aliexpress
- Prewired connector with 3M leads (limited colors which will not match standard wire colouring conventions): Link to Aliexpress
The kits do not come with M3 screws needed to secure the board to the enclosure (2 need to be slightly longer), and to secure the lid. Nor a gasket for the lid.
Note that in addition to the VCU, the inverter and transmission, you will require a specific CANBUS connected shunt: Isabellenhütte Heusler
Build and Configuration Videos
ZombieVerter VCU V1 Build Part 1
Video | Highlights |
---|---|
00:33 Warning and suggestion to go watch cat videos instead |
06:00 IC10 - SPI CAN controller and transceiver (MCP25625T) |
ZombieVerter VCU V1 Build Part 2
Video | Highlights |
---|---|
00:34 Health warning and suggestion to go watch cat videos instead |
11:00 Pins 25,26,27,28 - 3 CAN bus interfaces. CAN EXT is for vehicle/body communication, |
ZombieVerter VCU V1 Part 3
Video | Highlights |
---|---|
00:38 Intro/Recap of part 2 18:13 V1 ISA shunt connection to PDM after the contactors/precharge system to monitor high voltage applied to the drivetrain |
21:55 Leaf PDM Internals, starting with high voltage connections |
Installation
Pin Out Diagram
Further information for a GS450 system can be found here: Lexus GS450h Drivetrain
Note: In the software port 0 = EXT2 and port 1 = EXT
Initial start-up and testing
Wifi Setup
The VCU is configured by connecting to its wifi access point. For existing units this is something like SSID: ESP-03xxxx, no password. For future units (shipped after 20/10/21) this will be SSID: inverter (or zom_vcu) PASSWORD: inverter123
NOTE: Recent units have a new wifi module that isn't automatically assigning an IP via DHCP. See this thread for details, and if you can help resolve the issue. Until then, you need to manually assign an IP of 192.168.4.2 (anything other than 192.168.14.1 on the 192.168.4.0/24 subnet) to your device.
Then navigate to 192.168.4.1 to see the huebner inverter dashboard.
Configuration Setup
Get familiar with the interface and check that all of the parameters make sense. If in doubt, make sure the default value is set. At each stage the current state of the system and any error can be seen on the interface, for example opmode and lasterr. Press refresh at the top of the screen to update the values.
You will need the HV supply connected, which can be a lower voltage (50-100V), current limited power supply for test purposes. Set udcmin to some value below that (e.g. 50V for a 100V supply) and udcsw to 10V lower than the supply.
- Apply the Ignition T15 in 12V signal. The relay supplying 12V to the inverter should now be on.
- Check the accelerator by applying it gradually and watching / refreshing the interface. You should see values at pot change as the pedal is pressed. potmin should be set just above where your off-throttle position is, and potmax just below the value seen at maximum travel. Same for pot2min and pot2max, if they are electrically connected. The resulting value as a 0-100 value can be seen at potnom.
If it does not show up, check for errors and check that throtmax is not set to zero! Check that tmpm is less than tmpmmax, as it can derate the potnom value down as far as zero!
- Apply the Start 12V signal for a short time. The pre-charge relay should turn on, and the voltage available at the inverter and the U1 input of the ISA shunt should quickly rise. If the udc reading goes above udcsw within 5 seconds then the main contactor(s) should close. If all is well, invstat should now be "on", opmode should be "run".
If you do not see a good value at udc, it may be that your external shunt is not connected properly or is not initialised.
If you do not see a good value at Invudc, it may be that the inverter is not powered, or the communication signals are not correctly wired.
if the status stays at "PRECHARGE" then you possibly didn't hold the start signal on for long enough!
- Once the contactors are on, select forwards direction. For example if dirmode is set to "Switch" then a 12V signal applied to the Forward input will work.
- Carefully apply the accelerator and the motor should begin to turn. Do not spin the motor up to any speed if you are using a test power supply.
- Note: Leaf VCU requires minimum of 180v to operate, it is also sensible to test with rev limit set to 1000 RPM.
Software
Github for the project: https://github.com/damienmaguire/Stm32-vcu
Various binaries can be found in the support thread, here, however, unless you have a specific reason not to, end users should use a released version from https://github.com/damienmaguire/Stm32-vcu/releases.
GD variant:
Status as of November 20 2021
Early boards fitted with the GigaDevices GD32F107 aka "GD chip" require different firmware routines than STM32F107 equipped boards. See this Zombieverter VCU Support Thread forum post
The GigaDevices `GD32F107 was chosen as an alternative to the ST equivalent due to microchip shortages during the COVID-19 pandemic. A specific branch of firmware code for the GD32F107 variant is found here: https://github.com/damienmaguire/Stm32-vcu/tree/GD_Zombie However development of this variant was abandoned shortly after it's release.
As of this writing , The GD_Zombie branch has fallen behind and substantially diverged from the primary code base. It has been suggested that work needs to be done to make the present firmware chip agnostic via detection routines. See this Zombieverter Development Thread forum post. As of this writing that work has yet to be undertaken and remains to be organized and completed. And issue has be devoted to tracking this progress here: Issue #21
Here is a link to a post with a pre compiled bin and hex for the GD_Zombie created by Damien on the 23/11/21; ZombieVerter VCU Support - Page 9 - openinverter forum This is based on the 16/6/21 code it is not an update. Ensure you rename the binaries to stm32_vcu.xxx to ensure no wifi issues.
UPDATE November 23 2021
Updated information about the necessary edits to make to the STM32 based firmware have been posted in a forum post here. In order to get the firmware to compile and run on the GD32F107 you must make the following changes:
In the file "anain.cpp" @ line 68:
68 - // adc_start_conversion_regular(ADC1); // Comment out for GD MCU
In the file "stm32_can.cpp" @ starting at line 305 modify as follows :
305 - gpio_set_mode(GPIO_BANK_CAN2_RE_RX, GPIO_MODE_INPUT, GPIO_CNF_INPUT_PULL_UPDOWN, GPIO_CAN2_RE_RX);
306 - gpio_set(GPIO_BANK_CAN2_RE_RX, GPIO_CAN2_RE_RX);
307 - // Configure CAN pin: TX.-
308 - gpio_set_mode(GPIO_BANK_CAN2_RE_TX, GPIO_MODE_OUTPUT_50_MHZ, GPIO_CNF_OUTPUT_ALTFN_PUSHPULL, GPIO_CAN2_RE_TX);
If you properly clone the repository with git on the command line that looks like this;
git clone --recurse-submodules git@github.com:damienmaguire/Stm32-vcu.git
That recursively pulls in copies of libopeninv, etc and tracks them... Hence your file-path should look like
./Stm32-vcu/libopeninv/src/
within the libopeninv src (source) directory you will find anain.cpp and stm32_can.cpp
Make the above changes to these files for the GigaDevices GD32F107.
Software update
As supplied, both the ESP8266 (the wifi plug-in board) and the STM32 (main MPU) are pre-loaded.
The "UART Update" field on the GUI can be given a stm32_vcu.bin file to update the firmware. Note that at this time, loading via Windows 10 is suspect and may lock you out of the board. Ubuntu works best.
If you are unable to build your own, use the stm32_vcu.bin that Damien posted on 10/30/2021 in the ZombieVerter VCU Support thread.
By using the ST-Link V2 in-circuit loader, .hex files can be sent to the board to initialize a fresh STM32 MCU, or if it can't be loaded via the bootloader.
If you are unable to build your own, use the stm32_vcu.hex that Damien posted on 10/30/2021 in the ZombieVerter VCU Support thread.
The connections needed to use the ST-Link loader are shown below:
Initializing an ISA Shunt
Under Comms in the web interface, there is now an ISAMode option. By default its in "Normal". If you want to initialize a new shunt, connect it up, power on the shunt and vcu, select "Init", hit save parameters to flash. Power cycle the vcu and shunt at same time (they should be on same 12v feed anyway). The shunt will initialize. Select ISAMode "normal", save to flash again and reboot again. The shunt should now be up and running.
Supported OEM Hardware
- Nissan Leaf Gen1/2/3 inverter via CAN
- Nissan Leaf Gen2 PDM (Charger and DCDC)
- CCS DC fast charge via BMW i3 LIM - currently type 2 only, type 1 under development
- Lexus GS450h inverter / gearbox via sync serial
- Toyota Prius/Yaris/Auris Gen 3 inverters via sync serial
- 1998-2005 BMW 3-series (E46) CAN support
- 1996-2003 BMW 5-series (E39) CAN support
- 2001-2008 BMW 7-series (E65) CAN Support
- Mid-2000s VAG CAN support
- Opel Ampera / Chevy Volt 6.5kw cabin heater
Troubleshooting
Serial Connection
If you're having trouble connecting using the serial interface, note that the parameters are 115200 8-N-2, which is different from the conventional 115200 8-N-1.