I’m looking to make my own home-made dashboard (like a DaveGa but using e-paper) and I was hoping that extracting serial data from the Unity would be as simple as attaching to TX and GND pins on the COMM connector and all the data I ever wanted would just start streaming out.
Unfortunately that didn’t happen.
Is it possible to generate a data stream on that port? Or am I not understanding its intended use?
Not without continuously requesting data. But the can bus will continually send status data. If you got a can converter is possible to read all the data this way.
I actually had plans myself to do a DAVEGA with an e-ink display but I abandoned the project. There are several issues:
refresh rate is slow; I was able to do to ~2 Hz (2 refreshes per second) with some hacks – using partial refresh; the problem is it produces ghosting after some time
no backlight; can’t be used in the dark
I haven’t found a suitable e-ink display (too small, too big, awkward aspect ratio, doesn’t support partial refresh)
e-ink displays are rather expensive
These are some things to consider before you go down the rabbit hole.
No, but if you send any throttle commands over UART while a PWM/PPM signal input is active they will conflict. UART telemetry requests + ppm for throttle input = good to go.
Thanks for the heads up. I’m only going to query once every second or two.
I’m using a Teensy 3.2, which is my go-to processor. It’s a bit power hungry for this job - I’ll slow the clock down and see if I can get some semi-sleep in between reads.
Eink has very poor refresh rates. 2hz is amazing. Two refreshes a second you got from the eink display? I’d love to see a video that sounds really cool.
I did a quick test, doing a full screen refresh I get about 2.4 seconds.
This brings up the idea of displaying average and instantaneous, like within a 5 second interval display both the average and peak current, average and peaks speed, etc.
Some character spacing issues but I want to get it on the board and do a road test to make sure something obvious isn’t missing before I spend a lot of time calculating positioning.
And under the heading of feature creep
Because batteries aren’t linear in their discharge curve I want to use a table lookup to more accurately represent the % figure. so from 40v to 39v maybe that’s 8 % whereas from 33v to 32v that might be 15%. I’m sure someone’s already figured this out I just need to find the table or formula (pointers welcome!)
Distance to Empty. I’d love to calculate the number of miles I have left before the battery is exhausted, using the above formula for more accuracy.
The basic shape is roughly similar between different Li-Ion cells but the voltages can vary by a lot depending on how much current you will be drawing and whether you are interested in the voltage-under-load (when being used, with voltage “sag”) or the resting voltage (when not being used).