View Single Post
Old 06-05-2011, 08:14 PM   #306 (permalink)
Freyguy
EV Builder
 
Freyguy's Avatar
 
Join Date: Nov 2010
Location: Macungie, PA
Posts: 157
Thanks: 15
Thanked 64 Times in 40 Posts
Quote:
Originally Posted by mora View Post
Hurray, it works. Fuel gauge reads about 70% full when LCD reads 50% SOC when using default value for max PWM.
Mora,
Use value of R20 or PWM_Max to set fuel gauge needle to full when SOC=100%. For SOC values under 100%, the position of VR2 comes into play. At 20%VR2 has most significant impact and is used to set empty. Think of PWM_MAX as your offset and VR2 as setting the range of duty cycle values required from full to empty.
Quote:
124% SOC was something that went away when switching between 100% and 20% SOC. One minute at 100% SOC and proper value was saved.
The capacity value in EEPROM by default after programming is 115Ahrs(my batteries). If your capacity is larger then this, then yes it will initially show >100%. After programming, you should do an SOC reset. This will reset to 100% and use your capacity values to overwrite mine in EEPROM
  Reply With Quote
The Following User Says Thank You to Freyguy For This Useful Post:
mora (06-06-2011)