Page 1 of 1

SOC via PWM

Posted: Mon Mar 03, 2025 1:13 am
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.

Re: SOC via PWM

Posted: Mon Mar 03, 2025 9:16 am
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

Re: SOC via PWM

Posted: Wed Mar 05, 2025 3:53 pm
by alucas
This is great I should have some time soon to check out that release.

Re: SOC via PWM

Posted: Sat Mar 22, 2025 4:53 pm
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

Re: SOC via PWM

Posted: Sat Mar 22, 2025 4:57 pm
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.