Hey all,
Currently combining all my parts to test a first motor spin. Previously I tested communication between the Zombie and my Outlander motor, inverter and charger, this all went well for as far as i could test them. After that I calibrated a throttle pedal which i picked up. When testing the motor, inverter and charger I also tested the BMW S-BOX to see if the contactors worked like they should, by setting UDCSW to 0 volt the contactors happily clicked away at the moment they needed to.
Recently I did a Zombie update to 2.20. Now I'm at the point where I want test the motor, but before that, I wanted to make sure that all component were connected and functioning well, so I fired up de Zombie webpage and saw that UDCSW had a value of -20 (negative). I have tired to change this value many times but it keeps reverting back to -20 after I hit refresh. Other parameters gave no problem changing them. I Have tried to change the UDCSW value with and without my components connected. I tried flashing the 2.20 software again this didn't result in what I hoped for.
Even when the UDCSW value is at -20 the Zombie goes into RUN mode when pushing the start button, but at that point I hear no clicking of the contactors (double checked the wiring).
Any one has an idea how to be able to change the value?
Many thanks!
Sander
Zombie UDCSW negative value
Re: Zombie UDCSW negative value
In the Zombie SBOX code, UDCSW is set to the (Battery Voltage - 20) Volts, So no need to set it via the params.
From the GIT history, seems to have been added going into v2.20
https://github.com/damienmaguire/Stm32- ... a44317R300
From the GIT history, seems to have been added going into v2.20
https://github.com/damienmaguire/Stm32- ... a44317R300
- tom91
- Posts: 2390
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 206 times
- Been thanked: 562 times
Re: Zombie UDCSW negative value
Yes the UDCsw is now based on your reported battery voltage -20V. Next step would be to have hv or any voltage/number of modules (over 20V) into the Sbox check you UDC values populate and your udcsw updates accordingly.
- Sjanders
- Posts: 37
- Joined: Thu Jan 28, 2021 10:12 pm
- Location: Netherlands
- Has thanked: 9 times
- Been thanked: 11 times
Re: Zombie UDCSW negative value
Hi Tom and Mitchy,
Ok, great! Thanks for your ultra fast response
I'll connect some power to the S-BOX and proceed testing. I'll report my findings here.
Cheers
Ok, great! Thanks for your ultra fast response

I'll connect some power to the S-BOX and proceed testing. I'll report my findings here.
Cheers
- Sjanders
- Posts: 37
- Joined: Thu Jan 28, 2021 10:12 pm
- Location: Netherlands
- Has thanked: 9 times
- Been thanked: 11 times
Re: Zombie UDCSW negative value
Hey,
I've tested everything again, after connecting the S-BOX to CAN 1 instead of CAN 2 and connecting a 30V power supply, UDCSW did show a positive value. At that point it was possible to close the contactors, UDC and UDC2 both show comparable values.
So that all worked out nicely. I have to admit that this new way of setting the UDCSW voltage is a good safety addition!
Cheers and thanks again!
Sander
I've tested everything again, after connecting the S-BOX to CAN 1 instead of CAN 2 and connecting a 30V power supply, UDCSW did show a positive value. At that point it was possible to close the contactors, UDC and UDC2 both show comparable values.
So that all worked out nicely. I have to admit that this new way of setting the UDCSW voltage is a good safety addition!
Cheers and thanks again!
Sander
- tom91
- Posts: 2390
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 206 times
- Been thanked: 562 times
Re: Zombie UDCSW negative value
This only works with compatible Shunts. So its a more "clean" way of doing UDCsw makes it nice and dynamic