In this video you can see that I have added the voltage indicator lines. I have also made the graph display scalable to maximise use of the display space. What is not evident is the bar-graphs now no longer need to redraw the entire bar each time one is updated. This saves heaps of cycles and gives a much smother image. I’ll have a demo of that in the next video.
Still to do:
Feed in real data for a more impressive demo
A low tide mark, this might be a bit later on as I will need “active” data ie. data that is changing to test and develop.
Alright folks what do we think of this type of layout? I finally got this LCD to work and I have been playing around with how I want the graphics to look. Things I still need to add are:
A low tide mark for each battery to show how low it has gone when you pressed down hard on the accelerator.
Some lines going across the screen to act as a visual aid for determining voltage.
Fix the line drawing routine to only redraw the part of the graph that needs to change. This should result in a much smother image and should take a lot less of the PIC’s CPU time.
Make the graph scalable to allow up to 24 batteries. 24 enough?
Any suggestions? Leave a comment
Image 1: FIRST LIGHT! It works! It’s a bit of a rats nest but I cleaned everything up after I got here.
Image 2: Single bar not much to it.
Image 3: 12 bars! Even tho it only says 10
Image 4: That’s better. Now I just need to add those extra features…
I still need to determine how to layout the raw data version where it simply shows each battery as a voltage. I think though I will finish the graph first since that is more fun (=