Nissan 370Z Forum  

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

Go Back   Nissan 370Z Forum > Nissan 370Z Tech Area > Engine & Drivetrain


Like Tree22Likes

Reply
 
LinkBack Thread Tools Display Modes
Old 02-16-2022, 08:55 PM   #1 (permalink)
Base Member
 
Join Date: Nov 2016
Location: Toronto
Posts: 216
Drives: G37 Sport
Rep Power: 6789
MotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond repute
Default 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
cv129, Rusty, Optimiser and 5 others like this.
MotorvateDIY is offline   Reply With Quote
Old 02-16-2022, 09:01 PM   #2 (permalink)
Track Member
 
SeeThruHead's Avatar
 
Join Date: Jun 2020
Location: Toronto
Posts: 716
Drives: Red '18 Sport Manual
Rep Power: 23498
SeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond repute
Default

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 likes this.
__________________
My Build thread STH Build Plan Thread
Images too big fix here
SeeThruHead is offline   Reply With Quote
Old 02-16-2022, 09:56 PM   #3 (permalink)
Base Member
 
Join Date: Nov 2016
Location: Toronto
Posts: 216
Drives: G37 Sport
Rep Power: 6789
MotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond repute
Default

Quote:
Originally Posted by SeeThruHead View Post
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
Rusty likes this.

Last edited by MotorvateDIY; 02-16-2022 at 09:58 PM.
MotorvateDIY is offline   Reply With Quote
Old 02-16-2022, 10:17 PM   #4 (permalink)
Track Member
 
SeeThruHead's Avatar
 
Join Date: Jun 2020
Location: Toronto
Posts: 716
Drives: Red '18 Sport Manual
Rep Power: 23498
SeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond repute
Default

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 likes this.
__________________
My Build thread STH Build Plan Thread
Images too big fix here
SeeThruHead is offline   Reply With Quote
Old 02-16-2022, 10:40 PM   #5 (permalink)
Base Member
 
Join Date: Nov 2016
Location: Toronto
Posts: 216
Drives: G37 Sport
Rep Power: 6789
MotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond repute
Default

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?
Rusty likes this.
MotorvateDIY is offline   Reply With Quote
Old 02-16-2022, 11:02 PM   #6 (permalink)
Track Member
 
SeeThruHead's Avatar
 
Join Date: Jun 2020
Location: Toronto
Posts: 716
Drives: Red '18 Sport Manual
Rep Power: 23498
SeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond reputeSeeThruHead has a reputation beyond repute
Default

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.
__________________
My Build thread STH Build Plan Thread
Images too big fix here

Last edited by SeeThruHead; 02-16-2022 at 11:04 PM.
SeeThruHead is offline   Reply With Quote
Old 02-21-2022, 11:38 AM   #7 (permalink)
A True Z Fanatic
 
Tractionless's Avatar
 
Join Date: Jan 2016
Location: Atlantic SE
Posts: 1,326
Drives: '10 K23 ST 7AT
Rep Power: 30525
Tractionless has a reputation beyond reputeTractionless has a reputation beyond reputeTractionless has a reputation beyond reputeTractionless has a reputation beyond reputeTractionless has a reputation beyond reputeTractionless has a reputation beyond reputeTractionless has a reputation beyond reputeTractionless has a reputation beyond reputeTractionless has a reputation beyond reputeTractionless has a reputation beyond reputeTractionless has a reputation beyond repute
Default

What's the dimensions of the unit?
__________________
Toys Not Tots
Tractionless is offline   Reply With Quote
Old 02-22-2022, 10:48 AM   #8 (permalink)
Base Member
 
Join Date: Nov 2016
Location: Toronto
Posts: 216
Drives: G37 Sport
Rep Power: 6789
MotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond repute
Default

Quote:
Originally Posted by SeeThruHead View Post
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 is offline   Reply With Quote
Old 02-22-2022, 11:09 AM   #9 (permalink)
Base Member
 
Join Date: Nov 2016
Location: Toronto
Posts: 216
Drives: G37 Sport
Rep Power: 6789
MotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond repute
Default

Quote:
Originally Posted by Tractionless View Post
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.
MotorvateDIY is offline   Reply With Quote
Old 03-05-2022, 07:50 AM   #10 (permalink)
A True Z Fanatic
 
Tractionless's Avatar
 
Join Date: Jan 2016
Location: Atlantic SE
Posts: 1,326
Drives: '10 K23 ST 7AT
Rep Power: 30525
Tractionless has a reputation beyond reputeTractionless has a reputation beyond reputeTractionless has a reputation beyond reputeTractionless has a reputation beyond reputeTractionless has a reputation beyond reputeTractionless has a reputation beyond reputeTractionless has a reputation beyond reputeTractionless has a reputation beyond reputeTractionless has a reputation beyond reputeTractionless has a reputation beyond reputeTractionless has a reputation beyond repute
Default

Quote:
Originally Posted by MotorvateDIY View Post
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.
__________________
Toys Not Tots
Tractionless is offline   Reply With Quote
Old 03-05-2022, 11:22 AM   #11 (permalink)
Base Member
 
Join Date: Nov 2016
Location: Toronto
Posts: 216
Drives: G37 Sport
Rep Power: 6789
MotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond repute
Default

Quote:
Originally Posted by Tractionless View Post
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!
JARblue and redondoaveb like this.
MotorvateDIY is offline   Reply With Quote
Old 03-05-2022, 11:42 AM   #12 (permalink)
A True Z Fanatic
 
redondoaveb's Avatar
 
Join Date: Apr 2017
Location: So. Commiefornia
Posts: 6,366
Drives: 2014 Nismo Gunmetal
Rep Power: 2684374
redondoaveb has a reputation beyond reputeredondoaveb has a reputation beyond reputeredondoaveb has a reputation beyond reputeredondoaveb has a reputation beyond reputeredondoaveb has a reputation beyond reputeredondoaveb has a reputation beyond reputeredondoaveb has a reputation beyond reputeredondoaveb has a reputation beyond reputeredondoaveb has a reputation beyond reputeredondoaveb has a reputation beyond reputeredondoaveb has a reputation beyond repute
Default

[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

Good luck!
__________________
Fast Intentions "Stage Seb" twin turbo #098- Specialty Z/Tial-Xonarotor/CJM/Ecutek/HKS/KW/SPL/Hotchkis/Rohana/Toyo
700+whp
redondoaveb is offline   Reply With Quote
Old 03-05-2022, 01:05 PM   #13 (permalink)
Base Member
 
Join Date: Nov 2016
Location: Toronto
Posts: 216
Drives: G37 Sport
Rep Power: 6789
MotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond repute
Default

Quote:
Originally Posted by redondoaveb View Post
Large enough so us old guys with bad eye's don't need reading glasses to read the display
Good luck!
Agreed... I'm not going to make a display my 50+ year old eyes can't read
redondoaveb likes this.
MotorvateDIY is offline   Reply With Quote
Old 03-08-2022, 09:01 AM   #14 (permalink)
Base Member
 
Join Date: May 2021
Location: washington
Posts: 58
Drives: 14 Q60 awd SPORT
Rep Power: 3359
14Q60awdSPORT has a reputation beyond repute14Q60awdSPORT has a reputation beyond repute14Q60awdSPORT has a reputation beyond repute14Q60awdSPORT has a reputation beyond repute14Q60awdSPORT has a reputation beyond repute14Q60awdSPORT has a reputation beyond repute14Q60awdSPORT has a reputation beyond repute14Q60awdSPORT has a reputation beyond repute14Q60awdSPORT has a reputation beyond repute14Q60awdSPORT has a reputation beyond repute14Q60awdSPORT has a reputation beyond repute
Default

those that have flex fuel / ethanol sensors wired in and read E% with ecutek, can you display % through can bus / OBD?
14Q60awdSPORT is offline   Reply With Quote
Old 03-08-2022, 11:40 PM   #15 (permalink)
Base Member
 
Join Date: Nov 2016
Location: Toronto
Posts: 216
Drives: G37 Sport
Rep Power: 6789
MotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond reputeMotorvateDIY has a reputation beyond repute
Default

Quote:
Originally Posted by 14Q60awdSPORT View Post
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.
14Q60awdSPORT likes this.
MotorvateDIY is offline   Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DIY Mini-Dash LCD Gauges Update MotorvateDIY Engine & Drivetrain 23 02-02-2022 05:27 PM
How i remove the triple gauges in dash ? superZ34 Exterior & Interior 21 05-06-2020 05:23 AM
[FOR SALE] iPad Mini Dash Kit Itzjavi Parts for sale (Private Classifieds) 12 08-23-2018 06:40 AM
Dash gauges delete takjak2 Exterior & Interior 1 10-03-2015 10:41 AM
[WTB] 3 dash mounted oem gauges pitbull1981 Parts for sale (Private Classifieds) 6 02-04-2015 02:30 PM


All times are GMT -5. The time now is 09:16 PM.


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