Nissan 370Z Forum  

LCD Gauge Update #3: 35 Data Items on 16 Pages!

Originally Posted by SLOPOS Very familiar with that platform, granted when I was using them they were mostly used for WiFi gpio to control relays and the like, but not

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


Like Tree30Likes

 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 03-16-2022, 07:01 AM   #9 (permalink)
Base Member
 
Join Date: Nov 2016
Location: Toronto
Posts: 232
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 SLOPOS View Post
Very familiar with that platform, granted when I was using them they were mostly used for WiFi gpio to control relays and the like, but not much else. Im guessing then you're using i2c for the screen output which wouldn't even require going to a pi as there are plenty of larger i2c screens available and the resolution and refresh rates seem to be adequate. More and more impressed with this project the more I learn about it, thanks for sharing!
I think you meant SPI, not I2C... I2C is too slow for a full colour display.

A 320 x 240 display has 76,800 pixels, and each pixel has 16 bits (RGB565) of colour information, for a total of 1,226,800 pixels or 153,600 bytes per LCD screen/page.

The LCD controller I use supports a max SPI clock of 40 Mhz resulting in taking 0.180 seconds to draw each page. By only "drawing" the parts of the screen that change, the display updates around 30 times per second.

To make the best use of all clock cycles, I use a RTOS (real time operating system) which allows pre-emptive multitasking. This allows me to run multiple tasks at the same time.

The tasks I have set up are: reading the CAN bus, receiving Bluetooth data, and drawing the display. They all run independently and at full speed. Nice!

Also, since the ESP32 has 2 cores, core 0 is dedicated to handling all Bluetooth communications, and core 1 handles reading the CAN bus and rendering the display.

Anyways, I'm glad to share the details...
JARblue and Uxi like this.
MotorvateDIY is offline   Reply With Quote
 

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
UPDATE: Popular Items Back In Stock, Some Items Still OOS Nick@Adams Adam's Polishes 0 10-29-2013 08:55 AM
We have reached 370 pages in General Discussions! Look Up! /\/\/\ NissanUSA Nissan 370Z General Discussions 8 01-27-2012 03:13 PM
Any Takers????...Import Tuner Power Pages...??? TSE North East Region 9 05-09-2010 07:49 PM
What happened to the tire pressure gauge and speedo in the middle gauge cluster? rbratton Nissan 370Z General Discussions 33 01-24-2009 10:28 PM


All times are GMT -5. The time now is 06:03 AM.


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