SOC via PWM

Topics relating to the ZombieVerter VCU
Post Reply
alucas
Posts: 11
Joined: Tue Jan 21, 2025 3:37 am
Has thanked: 1 time

SOC via PWM

Post by alucas »

Hello
I have been looking at how to I get the SOC out of the Zombieverter. I would like to have it drive my old fuel gauge. The gauge goes from 0-10 V.
My plan was to use a PWM to drive this but I don't see that as an option.
Have other people tried different solutions?
Thanks

Side note:
Old triumphs run the temp and fuel gauges on 10V and had a voltage regulator. Its fun to look at how voltage regulators from the 1970's worked as they didn't use a transistor. If I remember correctly it was a wire round around a bimetallic strip. The strip drove a switch and oscillated at the frequency required.
User avatar
tom91
Posts: 2293
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 199 times
Been thanked: 524 times

Re: SOC via PWM

Post by tom91 »

alucas wrote: Mon Mar 03, 2025 1:13 am but I don't see that as an option.
I have added this in the testing branch of the Zombie on github. We are waiting for testing before releasing an update.
https://github.com/damienmaguire/Stm32-vcu/issues/154
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
alucas
Posts: 11
Joined: Tue Jan 21, 2025 3:37 am
Has thanked: 1 time

Re: SOC via PWM

Post by alucas »

This is great I should have some time soon to check out that release.
alucas
Posts: 11
Joined: Tue Jan 21, 2025 3:37 am
Has thanked: 1 time

Re: SOC via PWM

Post by alucas »

I got this working for both a SOC and temp gauge. Note I used a motor driver with a optoisolator. I also have a voltage regulator that runs at 10V. I tested on a leaf setup that is not yet in the car.
The frequency of modulation seemed high for my use so I modified the code to be able to adjust timer3 prescale and frequency via the web interface. I can share that change if anyone wants it.

thanks
Aaron
Attachments
20250322_093551.jpg
User avatar
tom91
Posts: 2293
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 199 times
Been thanked: 524 times

Re: SOC via PWM

Post by tom91 »

alucas wrote: Sat Mar 22, 2025 4:53 pm code to be able to adjust timer3 prescale and frequency via the web interface.
Might be good to look at adding that option. Only thing that would need to be coded in is to keep this from being allowed when the Control Pilot or GS450h pump is used on a pwm output.
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
Post Reply