lincomatic
Posts: 316
Joined: Fri Jun 10, 2011 10:01 am
Delivery Date: 06 Apr 2011
Leaf Number: 3819

Re: SOC-LCD-Meter "LeafCAN" with 2x16 Display

Sat Jun 02, 2012 11:41 pm

Coincidentally, I tried to fit in a V*A kW number today, but didn't like the way it would affect the readout.
Basically, to fit it into 16 characters, I have to do, for instance,

393.5V273.5A-75.
298.0V256.0A-3.2

285.5 -75.5 -.45

It's either no spaces, or no units. Note the varying decimal precision in the KW number.
which is better? I don't like either style, partly because the decimal point needs to move around in the kw value while it's fluctuating wildly. Maybe I'll try it today, anyway, to see how it looks.

In the KWh remaining value, I also implemented the variable decimal places, but it changes slowly, so it's not so noticeable.

BTW, I have considered using Tony's GIDs * 75 factor instead, but I like 281 to display as 22.5 rather than 21.1.
In the end, it doesn't really matter which factor you use, once you get used to it, and it's rather easy to change.
Here is the relevant line from the code:

#define KW_FACTOR 80.0F // 80 is from phil, tonywilliams prefers 75

lincomatic
Posts: 316
Joined: Fri Jun 10, 2011 10:01 am
Delivery Date: 06 Apr 2011
Leaf Number: 3819

LeafCAN v1.2 Released

Sun Jun 03, 2012 6:00 pm

I decided to play around with adding the KW (VxA/1000) display to the second line today, it looks better
than I expected. The KW number matches up nicely to the sum of the 3 types of current draw displayed in
the onboard energy display.

More info and screen shot here: http://blog.lincomatic.com/?p=639

GlennD
Posts: 1493
Joined: Sun Dec 18, 2011 7:14 pm
Delivery Date: 20 May 2013
Leaf Number: 410357
Location: Anaheim

Re: SOC-LCD-Meter "LeafCAN" with 2x16 Display

Sun Jun 03, 2012 6:08 pm

I have been EMAILING Lincomatic but he suggested it would be better here. I do not like the contrast of my white on blue display. It is hard to read in sunlight. I also suggested Adafruit's VFD display if he needs more space since it is a 2X20 Display.

Personally I am happy with the current display items. Slower updates would be nice.

I have ordered an Ebay China display that claims larger disits with a black on yellowish green. I hope it is an improvement.
Image
:
2013 Pearl White SL Premium
Traded for a Cirrus White 2014 Mercedes B (totaled)
2016 Urano Gray eGolf SEL w/ drive assist
Loved the VW but it sat too low for my old body
Back to a Cirrus White 2017 B250e
White Ioniq limited.It sits just fine

GlennD
Posts: 1493
Joined: Sun Dec 18, 2011 7:14 pm
Delivery Date: 20 May 2013
Leaf Number: 410357
Location: Anaheim

Re: SOC-LCD-Meter "LeafCAN" with 2x16 Display by lincomatic

Tue Jun 05, 2012 8:03 pm

I just flashed your ver 1.2 to my board. I left the top line alone but enabled the second line. The first effort was just fine but the smoothing really makes a difference. Good job!
:
2013 Pearl White SL Premium
Traded for a Cirrus White 2014 Mercedes B (totaled)
2016 Urano Gray eGolf SEL w/ drive assist
Loved the VW but it sat too low for my old body
Back to a Cirrus White 2017 B250e
White Ioniq limited.It sits just fine

User avatar
garygid
Gold Member
Posts: 12469
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: SOC-LCD-Meter "LeafCAN" with 2x16 Display by lincomatic

Tue Jun 05, 2012 8:33 pm

The Voltage (and Amps) come in 0.5 resolution, and come Fast.

I add 20 together which gives me Voltage * 10 to display with one decimal point.

Same with Amps, to get Amps * 10.

The GID values are "infreuent", so I get % and truncate the hundredths rather than round to tenths, not wanting to show a too-large value.
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

lincomatic
Posts: 316
Joined: Fri Jun 10, 2011 10:01 am
Delivery Date: 06 Apr 2011
Leaf Number: 3819

Re: SOC-LCD-Meter "LeafCAN" with 2x16 Display by lincomatic

Tue Jun 05, 2012 9:40 pm

I originally had code to average 25 samples, but for the purpose, I decided that was overkill, since the numbers change so rapidly.
Now, I just update the display with the current values, but limit the frequency of update to >= 250ms

GlennD
Posts: 1493
Joined: Sun Dec 18, 2011 7:14 pm
Delivery Date: 20 May 2013
Leaf Number: 410357
Location: Anaheim

Re: SOC-LCD-Meter "LeafCAN" with 2x16 Display by lincomatic

Wed Jun 06, 2012 6:36 pm

Well I have spent a day with the new options. I find the display too busy. When I got home I flashed Ver 1.2 with the new options disabled.

Truth to be told I would be happy with only the top display but the second line is useful.

I do not see any need to display the used capacity with a decimal point. Whole digits are more than adequate.

I really like the smoothing.
:
2013 Pearl White SL Premium
Traded for a Cirrus White 2014 Mercedes B (totaled)
2016 Urano Gray eGolf SEL w/ drive assist
Loved the VW but it sat too low for my old body
Back to a Cirrus White 2017 B250e
White Ioniq limited.It sits just fine

GlennD
Posts: 1493
Joined: Sun Dec 18, 2011 7:14 pm
Delivery Date: 20 May 2013
Leaf Number: 410357
Location: Anaheim

Re: SOC-LCD-Meter "LeafCAN" with 2x16 Display by lincomatic

Sat Jun 16, 2012 10:15 am

For now I am finished with my CAN reader. It gives me just enough information without the screen being cluttered.
Image
:
2013 Pearl White SL Premium
Traded for a Cirrus White 2014 Mercedes B (totaled)
2016 Urano Gray eGolf SEL w/ drive assist
Loved the VW but it sat too low for my old body
Back to a Cirrus White 2017 B250e
White Ioniq limited.It sits just fine

User avatar
garygid
Gold Member
Posts: 12469
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: SOC-LCD-Meter "LeafCAN" with 2x16 Display by lincomatic

Mon Jun 18, 2012 11:07 am

Yes, Tony Williams has with him a prototype 2x16 LCD SOC-Meter,
packaged in my black Box, on his BC2BC adventure.

No buttons or switches, it just shows the GIDs, %Gids, Fuel Bars,
Battery Pack Voltage and Curent (Amps) on one "screen".
There is no provision for switcing screens, but it still might
be entirely sufficient for some folks.

I wired this one to be Auto-ON (Off when the car is Off).

I have been asked: "Is that available?"

No, not yet, but I think ChrisH will be making/getting some
new prototype boards "soon".

It is not yet clear to me what will be included on the board.
These boards will require slightly modified firmware, I believe.

I will post here when something is available, even prototypes.

There will be very limited availability until we
get a "production" board to use.
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

EdmondLeaf
Posts: 1500
Joined: Tue Jan 18, 2011 2:18 pm
Location: Edmond, OK

Re: SOC-LCD-Meter "LeafCAN" with 2x16 Display by lincomatic

Mon Jun 18, 2012 11:14 am

one of them to OK

Return to “LEAF CANBus”