View Single Post
Old 03-26-2011, 11:33 AM   #127 (permalink)
jackbauer
Master EcoModder
 
jackbauer's Avatar
 
Join Date: Sep 2009
Location: Ireland
Posts: 734
Thanks: 26
Thanked 304 Times in 171 Posts
Have the board up and running on the bench. First , for anyone looking to use a lem hass 300 here is a little routine to add to the code to do the multiplication by 1.8 as described by Freyguy above. Insert it at line 1167 :

;************************************************* ******
;Routine here to multiply battery amps by 1.8125 (multiply by 29 , divide by 16) to use lem hass 300s

movff bAmpH, Arg2H ; setup to use fracmult routine
movff bAmpL, Arg2L ;
movlw .29 ;multiply by 29
call Fracmult ;call multiplication routine
movff RES0, bAmpL ;move new result back into battery amp reg
movff RES1, bAmpH ;move new result back into battery amp reg
;************************************************* ******

Last pic assembler i wrote was for a 16f877 almost a decade ago

I replaced the 2.5k precision resistor in the voltage sensing circuit with a 5k 10 turn trimpot. This allowed me to use a cheap 5% 100k resistor and just tweak the pot to give the correct voltage on screen. Seems to be working well.

Next mod will be to use degrees centigrade for temp but miles for distance. I'm a bit of a hybrid guy! This is a really neat piece of kit. I like it a lot. One thing I might look at doing is to cause a reset to 100% soc on detection of absorbtion voltage for a lead pack or cv phase for lithium.
__________________
Now, Cole, when you shift the gear and that little needle on the ammeter goes into the red and reads 2000 Amps, that's bad.
www.evbmw.com
  Reply With Quote
The Following User Says Thank You to jackbauer For This Useful Post:
mrbigh (03-26-2011)