View Single Post
Old 03-30-2012, 10:58 AM   #83 (permalink)
thingstodo
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 749
Thanked 565 Times in 447 Posts
First cut at the DASH, and a picture

Quote:
Originally Posted by thingstodo View Post
Square gauges - 50 ua to full scale. 181K - close as I got was 196K - can't quite get to 100% scale, but it's usable.

Small square meter - 50 ua to full scale, 192K use 196K
It turns out that 196K instead of 192K is workable - it's for STATUS anyway, which does not get to full scale. The scale of 0 - 98% works out to analog output of 220 - 4095

196K instead of 181K is not really workable. I need full scale on VOLTS and Temperature in C .. .likely not for the TACH ... Scale of 0% is 46. 90% or so is 4095 output. That's as high as the output goes. I need a different resistor ... or to combine a couple resistors to get closer to 181K (preferably lower than 181K so that I can limit the output but still reach 100% scale)

The WATT-HOURS gauge travels from -500 through 0 to 500 display with analog output values of 50, 2047, and 4070. It's not really great with reproducibility. 0 display is somewhere between 2040 and 2080 depending on whether it was displaying positive or negative before you go to 0.

The AMPERES gauge has much the same issue. 47, 2060, 4050 for the analog output.

The STATUS is used to show which parameter the gauges are displaying - voltage, current, and temperature the gauges. There are a maximum of 6 displays used for temp, volts and amps. So I set it up for 10 each to leave me some room for expansion. Status of 20 is the first value - battery, 40 is the second - motor, 60 is the third - charger status, 80 is the fourth - vfd status, 100 is the fifth value - ground sensing and ambient temperature, 120 is a bit miscellaneous - split pack voltage difference, secondary current sensor on the battery pack, and future coolant temperature. 140, 160, 1800 and 200 are 'spares' for the three gauges.

Displayed by gauge:

Voltage is planned for:
20 - the battery pack total
40 - the motor voltage (AC output from VFD)
60 - charger voltage
80 - voltage reference to the VFD - please send out this voltage (future)
100 - the ground leakage voltage
120 - the difference between the split pack(to show imbalance)

Current display is planned for
20 - the battery current
40 - motor current
60 - charger current
80 - current limit to the VFD - limit output current to this value (future)
100 - ground leakage current
120 - secondary current for battery

The temperature is planned for
20 - battery temperature
40 - motor temperature
60 - charger temperature
80 - VFD temperature
100 - ambient temperature
120 - coolant temperature (if I go liquid cooled)

The original plan - to cycle through these displays and have them calibrated so that green is 0 - 60%, yellow 60 - 80% and red above 80% - was going to be very different (too different) from what the real dash will be. I left it a bit plain for now ... after all, I'm supposed to be simulating what the dash looks like, not redesigning the dash to look like a cockpit. Real scale values are not on the gauges - I need to experiment a bit and see what I'd like it to look like.

Multiple scales are required on each gauge to show the different ranges. They will (hopefully) be scaled to allow the needles to be between 60% and 80% for 'normal' to keep me from being TOO confused.
Attached Thumbnails
Click image for larger version

Name:	Dash.JPG
Views:	20
Size:	22.0 KB
ID:	10590  
  Reply With Quote