View Single Post
Old 10-22-2008, 12:53 AM   #5 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location:
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 267 Times in 210 Posts
Unless I'm missing something, I'd say make the atmega do all the work. It can read the shunt and battery pack (and half pack?) voltages directly on the analog pins. external circuitry is still a couple resistors and some zeners.

EV definitely merits some personal attention.

It will take a little more care in resistor selection though, you want to wind up with a voltage divider that peaks at close to 5 volts at the atmega for the battery pack monitors and the motor shunt (maybe just trim pots). Might be nice if it has an onboard charger to monitor the 120 input also, and vss of course.

analog connections so far:
1 battery discharge shunt
1 battery pack
1 onboard charger input shunt
1 *battery half pack (to detect gross battery problems)
1 *aux battery

digital connections:
1 vss
3 buttons
8 LCD

And, well, I think that takes up all the available pins except one analog and serial rx/tx
__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 10-22-2008 at 08:06 AM..
  Reply With Quote