View Single Post
Old 06-30-2011, 01:21 PM   #344 (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
Thanks a lot for your help. I think everything works now. SOC and KTE are spot on using peukert 1.00. Fuel gauge doesn't seem to be linear as it shows a bit over halfway when SOC is 50% and something like 7/8 full when 75% SOC. But it shows exactly full when 100% SOC and empty when 20% SOC. Doesn't matter me as LCD shows correct readings along all the other useful info.
Great Mora! Then I'll assume the fix for PWM duty below 20% SOC worked? I'll add that to version 1.4.
I suspect the orignal sender resistance wasn't linear over the full~empty range. Not sure if this is due to gas tank shape? or if original sender float arm moved in an arc? Wouldn't be surprised if this nonlinearity is the norm.
I suppose the 0~100% SOC values could be used as offsets to a 100 deep lookup table containing 8-bit PWM duty values. One would need to first set SOC to 20% and adjust VR2 while monitoring fuel gauge needle position and Q1 duty cycle. Measured duty would then be used to construct the table....very user specific but accurate.
So far running the display in automode works for me A few seconds after my foot is off the throttle, the SOC screen pops up. Most of my driving is stop & start so I get to see this often.
  Reply With Quote