Nissan 370Z Forum

Nissan 370Z Forum (http://www.the370z.com/)
-   Engine & Drivetrain (http://www.the370z.com/engine-drivetrain/)
-   -   DIY Mini-Dash LCD Gauges Update #2 - New Layout & Multiple Screens! (http://www.the370z.com/engine-drivetrain/137375-diy-mini-dash-lcd-gauges-update-2-new-layout-multiple-screens.html)

MotorvateDIY 02-16-2022 07:55 PM

DIY Mini-Dash LCD Gauges Update #2 - New Layout & Multiple Screens!
 
Hey everyone!
I just wanted to share some of the progress on the Bluetooth and CAN bus gauges we are woking on...

We have updated the design/layout for a more modern look AND can now use a steering wheel button to change what the LCD display shows!

Now that we press a button on the steering wheel and change what is shown on the display, we can now show items like:

• Engine boost / intake manifold pressure
• All four tire pressures in real time. (many have asked for this!)
• Drive torque split between front and rear axle (G37X only)
• Intake air temperature
• Automatic transmission fluid temperature
• Engine Torque & Horsepower
• Lateral acceleration in g's
• Battery voltage
• and 50+ additional items... we just need to find space for them!!

With the ability to show multiple screens of data, we now need to use a "Real time operating system" (RTOS). This will allow us to multi-task and get the quickest responding gauges possible. Remember, we have data coming in via bluetooth, CAN bus and OBD and we need to crunch numbers, update the display and look for button presses to display the next page.

If all goes as expected, the next update should be VERY good :)

http://www.youtube.com/watch?v=94KQ5Zs0fU4

SeeThruHead 02-16-2022 08:01 PM

That is hugely exciting!

Can you share more about what kind of RTOS you're going to use and what benefits you're going to get from it?

MotorvateDIY 02-16-2022 08:56 PM

Quote:

Originally Posted by SeeThruHead (Post 4020097)
That is hugely exciting!
Can you share more about what kind of RTOS you're going to use and what benefits you're going to get from it?

Sure... Since I am using an ESP32, it comes with its own version of Free RTOS.
The ESP32 has 2 cores. Core 0 will be doing all the Bluetooth work. Core 1 will be managing the CAN bus, OBD requests, display update and general logic.

In the beginning, I was only planning on displaying 4 items, so the structure was designed around that. BUT now that I can change pages, I need to manage the ESP32 cycles more efficiently.

With the RTOS, I will split the tasks on core 1 to run "at the same time" (not really, but any dead time is given to a task that can do something)
The plan for tomorrow is to have the CAN bus data as its own task, the OBD requests as its own task and see how well that works as I add additional data items.

I am no expert on this... but I have a plan and will try it and see what happens :)

PS Thanks for your excitement!
If you are up for it, I love to meet up in the spring and chat more about this AND if I could record your car's CAN bus, that would be VERY helpful :)

SeeThruHead 02-16-2022 09:17 PM

RTOS is cool. I've never really done any work with microcontrollers so hadn't encountered it before. Seems like a priority task scheduler is pretty useful for this. Now that you've added the button listener for changing pages. I don't know that you need to assign specific functions to a specific core tho... wouldn't the scheduler balanced tasks on the cores for you? Either way, interested to see the results.


Happy to help with can scanning too!

MotorvateDIY 02-16-2022 09:40 PM

When dealing with a micro-controller like the ESP32 you need to specify what task is running on which core. It doesn't want to use any resources to figure out "what is best" PLUS with the wireless communications being on core 0, if a task was moved there it may have unintended consequences.

Thanks for the help on getting CAN bus data!
Do you drive the Z in winter?

SeeThruHead 02-16-2022 10:02 PM

I don't drive much in winter but I don't store it away.

I was looking here
https://docs.espressif.com/projects/....html#task-api

i guess in your case you have long running tasks that need to lock down a single core anyway. you wouldn't want a task being put onto the wireless core because it would pause execution of the wireless task.
Makes we want to start a can bus project of my own.

Tractionless 02-21-2022 10:38 AM

What's the dimensions of the unit?

MotorvateDIY 02-22-2022 09:48 AM

Quote:

Originally Posted by SeeThruHead (Post 4020105)
I don't drive much in winter but I don't store it away.

I was looking here
https://docs.espressif.com/projects/....html#task-api

i guess in your case you have long running tasks that need to lock down a single core anyway. you wouldn't want a task being put onto the wireless core because it would pause execution of the wireless task.
Makes we want to start a can bus project of my own.

Correct. Core 0 is going to be left alone for Bluetooth.
As of yesterday, Core 1 now has 3 tasks running: Reading CAN bus, updating display and sending OBD requests.

You should start a CAN bus project...I have found it to be very interesting and a lot of fun.

MotorvateDIY 02-22-2022 10:09 AM

Quote:

Originally Posted by Tractionless (Post 4020496)
What's the dimensions of the unit?

The video shows the current "test mule" and has a 2.2" LCD screen (diagonal measurement)

The hardware is designed to work with 1.5", 2", 2.4", 2.8" and 3.5" LCDs and a few 1" OLED displays for a "slim line" ~1"x 3" version.
The first version will be for the G37, just because that is what I drive and can easily test functionality and fitment.

In the spring, I will be meeting up with a few local 370 folks (Toronto) and see what the options are for gauge placement and start to design the enclosure for the LCDs.

Tractionless 03-05-2022 06:50 AM

Quote:

Originally Posted by MotorvateDIY (Post 4020576)
The video shows the current "test mule" and has a 2.2" LCD screen (diagonal measurement)

In the spring, I will be meeting up with a few local 370 folks (Toronto) and see what the options are for gauge placement and start to design the enclosure for the LCDs.

Ok thank, most interested in what the gross (enclosure) size winds up being.

MotorvateDIY 03-05-2022 10:22 AM

Quote:

Originally Posted by Tractionless (Post 4021292)
Ok thank, most interested in what the gross (enclosure) size winds up being.

What screen size are you most interested in?

The current version now has 8 pages of data and by the end of today I will have a total of 14 pages of CAN bus, Bluetooth and OBD live data.

I want to make sure the hardware can receive and process all this data AND continue to re-draw the LCD screen of 30 times per second, for smooth gauge animation.

Tomorrow I am meeting up with a G37x owner to test displaying the current AT7 gear (even when in drive) live TPMS pressures, torque converter lockup, AT7 input/output shaft speed and the GT-R like % front axle torque.

Wish me luck!

redondoaveb 03-05-2022 10:42 AM

[QUOTE=MotorvateDIY;4021299]What screen size are you most interested in?

The current version now has 8 pages of data and by the end of today I will have a total of 14 pages of CAN bus, Bluetooth and OBD live data.

I want to make sure the hardware can receive and process all this data AND continue to re-draw the LCD screen of 30 times per second, for smooth gauge animation.

Tomorrow I am meeting up with a G37x owner to test displaying the current AT7 gear (even when in drive) live TPMS pressures, torque converter lockup, AT7 input/output shaft speed and the GT-R like % front axle torque.

Wish me luck![/QUOTE

Large enough so us old guys with bad eye's don't need reading glasses to read the display :tup:

Good luck!

MotorvateDIY 03-05-2022 12:05 PM

Quote:

Originally Posted by redondoaveb (Post 4021302)
Large enough so us old guys with bad eye's don't need reading glasses to read the display :tup:
Good luck!

Agreed... I'm not going to make a display my 50+ year old eyes can't read :)

14Q60awdSPORT 03-08-2022 08:01 AM

those that have flex fuel / ethanol sensors wired in and read E% with ecutek, can you display % through can bus / OBD?

MotorvateDIY 03-08-2022 10:40 PM

Quote:

Originally Posted by 14Q60awdSPORT (Post 4021439)
those that have flex fuel / ethanol sensors wired in and read E% with ecutek, can you display % through can bus / OBD?

With the "Bluetooth Sensor Server" any sensor can be displayed on a gauge... temperature or pressure or anything else. It could tap into the E sensor and provide the fuel temp and ethanol % (typical data that is available)

I don't think EcuTek would send the ethanol % on the CAN bus as there is no need.... no other module needs to know the ethanol %.

Questions:
• What ethanol sensor do you have?
• Does the ethanol % show on the app?

I will start to look into this... I think a small ethanol % gauge would be useful.


All times are GMT -5. The time now is 05:43 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 PL2