agranum
Posts: 3
Joined: Fri Feb 26, 2021 5:52 pm

Automotive GUI software sources

Fri Feb 26, 2021 6:04 pm

I'm trying to design a dashboard for a motorcycle which will include the usual gauges and other additional info.
I'm looking for some solutions to display this information. This software should be able to accept data from sources other than an OBD port. This is a custom build bike, there is none. I'm confident I can get the data there in other ways, as long as it supports other ways.

And I'm looking for gauges specifically with an automotive styling.

Has anyone seen or used anything like this?
Would really appreciate any pointers.

Thanks,

MotoGuzziGuy
Posts: 2
Joined: Sun Feb 28, 2021 4:12 pm

Re: Automotive GUI software sources

Sun Feb 28, 2021 4:28 pm

Check out realdash.net

I'm working on something similar. Still in concept phase.

agranum
Posts: 3
Joined: Fri Feb 26, 2021 5:52 pm

Re: Automotive GUI software sources

Sun Feb 28, 2021 10:31 pm

The only automotive themed gauge design software I've found so far is TunerStudio. Problem is, it's seems to be based around a specific set of hardware (aftermarket MegaSquirt fuel injector and standard OBD/CAN).

I have multiple sensors around the motorcycle that log data to an onboard MQTT broker. I just need a visual representation of this data with an automotive theme. I don't want to try to do a half-assed job myself if there is already a refined, automotive themed, solution out there.

I may end up using a display from Nextion. Their displays have their own processors on board to specifically drive the display GUI and the data you want to show on it. It's a really nice solution. Just not the exact shape/size I was wanting in a display. But the advantage here is that the boot time is much (MUCH) faster than a Raspberry Pi could ever hope to achieve. AND...they provide a GUI editor where you can drag/drop/resize all kinds of different data display representations. https://nextion.tech/

But I'd still like to find something for creating an automotive themed GUI via a Pi.

User avatar
Gavinmc42
Posts: 5690
Joined: Wed Aug 28, 2013 3:31 am

Re: Automotive GUI software sources

Wed Mar 03, 2021 3:27 am

Richard is using Ultibo based OS/graphics
https://www.youtube.com/watch?v=iH9lp-Nms-o

A daylight visible display is the hard part.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

agranum
Posts: 3
Joined: Fri Feb 26, 2021 5:52 pm

Re: Automotive GUI software sources

Wed Mar 03, 2021 4:08 am

Gavinmc42

Looks promising. Thanks for the lead.

User avatar
Gavinmc42
Posts: 5690
Joined: Wed Aug 28, 2013 3:31 am

Re: Automotive GUI software sources

Wed Mar 03, 2021 8:24 am

Ultibo only works on the VC4 Pi's at the moment.
OpenVG is used and Zero's can off load the graphics to the Videocore VPU's.
No support for OpenVG on Pi4's :(

I do most of my OpenVG testing with Zero's and USB booting.
HDMI LCDs are the easiest displays to use.
2 second booting times help.

PiCore is the Linux I use for power safe, net connected stuff.
About 12secs booting.

If you want to try OpenVG on Raspbian on a Pi3, this is a good place to start
https://github.com/ajstarks/openvg
It was the library/examples ported to Ultibo.

Have fun.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
Fcaro
Posts: 37
Joined: Tue Feb 18, 2020 7:04 pm
Location: Chile

Re: Automotive GUI software sources

Tue Apr 27, 2021 8:12 pm

If you want to try OpenVG on Raspbian on a Pi3, this is a good place to start
https://github.com/ajstarks/openvg
Thanks for the link, was looking for alternatives to Raylib, something else to try out on the Pi3
HDMI LCDs are the easiest displays to use.
I'm 100% with you on that statement. Yikes, made so many mistakes trying low res SPI connections, and even bigger mistakes with Parallel RGB connections. LOL, luckily didn't break things... just made things not work properly. But HDMI connected displays came to the rescue.
Gavinmc42 wrote:
Wed Mar 03, 2021 8:24 am
I do most of my OpenVG testing with Zero's and USB booting.
2 second booting times help.
Please explain how you achieved 2s booting times. Or please point me in the right direction.

20s with PiCore + 2s Raylib is the fastest bootup I could achieve . :)
Gavinmc42 wrote:
Wed Mar 03, 2021 8:24 am
https://github.com/ajstarks/openvg
It was the library/examples ported to Ultibo.
Is that the secret to 2s bootup time? Ultibo OS + OpenVG?

Thanks for the info :)

User avatar
Gavinmc42
Posts: 5690
Joined: Wed Aug 28, 2013 3:31 am

Re: Automotive GUI software sources

Tue Apr 27, 2021 9:41 pm

Paeyrn did an improved OpenVG version
https://github.com/paeryn/openvg
Not everything has been ported to the Ultibo version.

I did a GPS cluster for the media player in my car.
https://github.com/Gavinmc42?tab=repositories
Then I found out it won't play HDMI video while driving :(

Anyway the whole display is redrawn every time.
Ok for slow moving stuff, not for speedo needles.
The trick is to convert the stationary parts to a bitmap layer.
Then only the needles move.

Ric, for his TVR car used paint type software to make the background,
I am trying to figure out how to take a screenshot of the OpenVG generated background.
One of Paeryn's improvement ;)

Layers, background then needles.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
Fcaro
Posts: 37
Joined: Tue Feb 18, 2020 7:04 pm
Location: Chile

Re: Automotive GUI software sources

Wed Apr 28, 2021 1:25 pm

Gavinmc42 wrote:
Tue Apr 27, 2021 9:41 pm
Paeyrn did an improved OpenVG version
https://github.com/paeryn/openvg
Added to my bookmarks. Thanks G.
I did a GPS cluster for the media player in my car.
https://github.com/Gavinmc42?tab=repositories
So greatful that you've git'ted (yes, I made it into a verb - past tense :) ) your adventure into Ultibo. Gives me an exciting starting points... and shows me whats possible. Can't stay in tutorial-landia for ever :)
Then I found out it won't play HDMI video while driving :(
Guess with hardware/software dev, it follows murphy's law -- that what must be learned, has to be learned the "crash-into-the-wall-way".
Anyway the whole display is redrawn every time.
Ok for slow moving stuff, not for speedo needles.
The trick is to convert the stationary parts to a bitmap layer.
Then only the needles move.

Ric, for his TVR car used paint type software to make the background,
I am trying to figure out how to take a screenshot of the OpenVG generated background.
One of Paeryn's improvement ;)
Ahh, all that experience makes me see you with a beard of coding wisdom. Thanks for the tips!!
Layers, background then needles.
Gonna make a T-Shirt out of that saying --- gonna make millions!!!

Awesome GavinMC42. You've definitely pointed me in the right direction. :D

User avatar
Gavinmc42
Posts: 5690
Joined: Wed Aug 28, 2013 3:31 am

Re: Automotive GUI software sources

Thu Apr 29, 2021 12:08 am

More to this story
I started with Pygame when Pi's came out, boring but quick

These gauges inspired me to try Java, which was really only fast enough after Pi2.
https://harmoniccode.blogspot.com/2010/ ... brary.html

Gerrit has moved on from the steel series.
https://github.com/HanSolo/Medusa
Java was good when JavaFX was accelerated, I stopped using it when it went Open.
I started with the Stopwatch example.

Did some stationary exercise bikes running videos with a cluster over the top showing speed, voltage, current and watts generated.
They still work after 6 years ;) uSD file corruption in Raspbian kills them.
PiCore runs from ram and Ultibo is just one file, much more corruption proof.
Important when you have intermittent power like a car.

Processing is Java based and runs on Pi's. Hmm still not Pi4 yet?
https://pi.processing.org/get-started/
Anyway, if you stick with VC4 Pi's, Ultibo, OpenVG works and even a Zero has no problems.

AJ has GO interface to his OpenVG
https://github.com/ajstarks/openvg

C version of a complex OpenVG clock, tested this without X1 on Raspberry CLI.
Runs or PiCore Linux too.
https://github.com/simonhyde/PiClock

Was replaying with BBC Basic. now I am back on 32bit Pi's
http://bbcbasic.uk/
http://bbcbasic.uk/gnat/index.html
Notice the shadows on the hands :D
Must be using OpenGL?

OpenVG won't work on Pi4's.
OpenVG Lite 1.1 should be able to run on top of OpenGL on Pi4's but someone needs to write translation code.
Have not found any yet.

Did those latest GPS gits during a shutdown week ;)
After doing all those dials the last one only took a half hour and was the most complex.
Good practice ;)
All you need to do is keep track of translates and rotates.
Very weird if you lose one and everything get redrawn and starts spinning across the screen.
Nail that background layer down and only animate the needles was the lesson learned :oops:

HTML gauges are easy as the browser does the rendering for you.
Phone or tablet as display?
I used Python's SimpleHTTPServer and just drop these in, they just worked
http://perfectwidgets.com/Content/Demo/ ... index.html

This could be an embedded way to do it on the Pi.
https://webkit.org/wpe/
The important thing here is the DRM frameworks, it might/should work on other SoC/GPU boards too.
As long as they have a DRM driver.

Flightgear can use gauges on tablets etc, but they have their own format.

Now if only daylight LCDs were easy to get.
Ric used a special one in his TVR, costs more but car guys spend on their babies ;)
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

landyvlad
Posts: 21
Joined: Thu Oct 19, 2017 1:37 pm

Re: Automotive GUI software sources

Wed May 05, 2021 12:15 am

Thanks @Gavinmc42 for pointing me here.

My motorbike - while not having OBD2 does have a 'info' wire for each sensor - the ecu can give real-time readings of the voltage for these sensors - which correlates with the reading of the sensor - i.e. voltage is proportional to whatever the sensor measures.

I'd like to figure out a way of measuring these voltages with the pi and having a program which could the interpret and display the results on a screen.

I haven't been able to find anything on the net so far as everything seems to revolve around OBD2 data (well until this thread at any rate) .

I'm not so interested in displaying tacho and speedo info as I already have gauges for that. (though it'd be a nice to have option) my maian interest is in:
- sensor data - oil pressure, temperature engine and exhaust sensors etc
- error codes (a generic code is displayed on the gauge - the bike then needs to be put into 'dealer mode' (by bridging two wires) the actual code is then displayed on the gauge - which then has to be looked up in the manual. When bike is powered off, the code is lost it's not stored in any way.

Relevant threads on my bike forum (in case anyone cares) are

https://gsx1400owners.org/forum/index.php?topic=429.0

https://gsx1400owners.org/forum/index.php?topic=21.0

https://gsx1400owners.org/forum/index.php?topic=4288

User avatar
Gavinmc42
Posts: 5690
Joined: Wed Aug 28, 2013 3:31 am

Re: Automotive GUI software sources

Wed May 05, 2021 1:34 am

I use LTC2945 i2c chips for most of my Voltage and current measurements.
TMP112 for Temperature.
I made a pressure sensor from an analog sensor and PSoC micro controller to read it.

I2C chips are usually fast enough for these sorts of things.
Linux I2C-tools library for testing,
I use that so much I made an Ultibo version.
https://github.com/Gavinmc42/Ushell
Python and smbus is handy too.

Most of these gauges in my Github get data from i2c or uart sensors.
https://github.com/Gavinmc42/Barometric-gauge
https://github.com/Gavinmc42/GPS-cluster
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

landyvlad
Posts: 21
Joined: Thu Oct 19, 2017 1:37 pm

Re: Automotive GUI software sources

Thu May 06, 2021 12:15 am

Thanks... I wish I understood most of that.... :)

User avatar
Gavinmc42
Posts: 5690
Joined: Wed Aug 28, 2013 3:31 am

Re: Automotive GUI software sources

Thu May 06, 2021 1:41 am

Thanks... I wish I understood most of that.... :)
You will by the time you finish ;)

Short cut, just start here.
https://ultibo.org/
That's were I ended up after years of doing it the Linux way.

Or you could try Tizen etc
https://www.automotivelinux.org/
Learning that might land you a job were you work with dozens doing the same thing one person can do with Ultibo :lol:
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

landyvlad
Posts: 21
Joined: Thu Oct 19, 2017 1:37 pm

Re: Automotive GUI software sources

Tue May 11, 2021 1:44 am

Thanks :)

User avatar
Gavinmc42
Posts: 5690
Joined: Wed Aug 28, 2013 3:31 am

Re: Automotive GUI software sources

Tue May 11, 2021 4:26 am

Rumour Ultibo gets basic Pi4 support this week.

Accelerated graphics will take longer.
How fast just frame buffer graphics on Pi4 will be, we should know soon.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Return to “Graphics programming”