PCM Diagnostics & Tuning HP Tuners | Holley | Diablo

DIY e85 sensor display

Thread Tools
 
Search this Thread
 
Old Dec 18, 2021 | 09:10 AM
  #1  
aknovaman's Avatar
Thread Starter
TECH Addict
15 Year Member
Liked
iTrader: (7)
 
Joined: Apr 2007
Posts: 2,012
Likes: 111
From: Hog Back, KS
Cool DIY e85 sensor display

Functional but fuel temp code needs work. I can post the arduino code once I get temp numbers working accurately. Total cost is under $10 excluding sensor. Wanna be really cheap and you can get sensors for $10 at a salvage yards. My description of how the code math works in vid was incorrect.


Last edited by aknovaman; Dec 18, 2021 at 09:50 AM.
Reply
Old Dec 18, 2021 | 09:46 AM
  #2  
aknovaman's Avatar
Thread Starter
TECH Addict
15 Year Member
Liked
iTrader: (7)
 
Joined: Apr 2007
Posts: 2,012
Likes: 111
From: Hog Back, KS
Default

Code is a work in progress and will edit as I improve it. I prefer to keep my code simple as possible.

Code:

#include <Adafruit_ST7735.h> // Hardware-specific library

#define cs 10
#define dc 9
#define rst 8

#define BLACK 0x0000
#define BLUE 0x001F
#define RED 0xF800
#define GREEN 0x07E0
#define CYAN 0x07FF
#define MAGENTA 0xF81F
#define YELLOW 0xFFE0
#define WHITE 0xFFFF

Adafruit_ST7735 tft = Adafruit_ST7735(cs, dc, rst);

const int pulsePin = 7; // Input signal connected to Pin 8 of Arduino

int pulseHigh; // Integer variable to capture High time of the incoming pulse
int pulseLow; // Integer variable to capture Low time of the incoming pulse
float pulseTotal; // Float variable to capture Total time of the incoming pulse
float frequency; // Calculated Frequency

void setup()
{
pinMode(pulsePin, INPUT);
tft.initR(INITR_BLACKTAB);
tft.fillScreen(ST7735_BLACK);
tft.setRotation(1); // rotate 90 degrees

tft.setCursor(5, 0);
tft.setTextColor(CYAN);
tft.setTextSize(3);
tft.print("E85%:");

tft.setCursor(5, 70);
tft.setTextColor(MAGENTA);
// tft.setTextSize(2);
tft.print("Temp:");
}
void loop()
{
pulseHigh = pulseIn(pulsePin, HIGH);
pulseLow = pulseIn(pulsePin, LOW);

pulseTotal = pulseHigh + pulseLow; // Time period of the pulse in microseconds
frequency = 1000000 / pulseTotal; // Frequency in Hertz (Hz)
tft.setCursor(10, 25);
tft.setTextColor(YELLOW, BLACK);
tft.setTextSize(5);
tft.print(frequency - 51.1, 1);

tft.setCursor(5, 100);
tft.setTextColor(GREEN, BLACK);
tft.setTextSize(2);
// tft.print((((pulseLow) / 1000) * 40.25) - 81.25); //display fuel temp in C
tft.println((pulseLow / 1000 * 74.25) - 114.25,1); //display fuel temp in F

}

Last edited by aknovaman; Dec 23, 2021 at 08:37 PM.
Reply
Old Dec 23, 2021 | 08:13 PM
  #3  
nocooler's Avatar
11 Second Club
15 Year Member
Photogenic
Liked
Loved
iTrader: (5)
 
Joined: Apr 2007
Posts: 607
Likes: 62
From: Mid Michigan
Default

Nice - I built one a few years ago, but never ended up using it.
Reply
Old Dec 24, 2021 | 12:48 PM
  #4  
rpturbo's Avatar
TECH Addict
15 Year Member
Photogenic
Liked
Loved
iTrader: (47)
 
Joined: Nov 2008
Posts: 2,423
Likes: 223
From: A-Town, Ill side
Default

This has always looked interesting to me. I've never done anything with Arduino. Not sure I have the patience for it, but I love seeing the creativity guys have.
Reply
Old Dec 28, 2021 | 01:12 PM
  #5  
MaxKreee's Avatar
Teching In
 
Joined: Dec 2021
Posts: 17
Likes: 2
From: Lino Lakes, MN
Default

Damn I think this is the first custom gauge I've ever seen. Cool set up.
Reply
Old Dec 28, 2021 | 06:37 PM
  #6  
aknovaman's Avatar
Thread Starter
TECH Addict
15 Year Member
Liked
iTrader: (7)
 
Joined: Apr 2007
Posts: 2,012
Likes: 111
From: Hog Back, KS
Default

Another example. I can change the font to make it more smooth.


Reply
Old Jan 6, 2022 | 11:18 AM
  #7  
AwesomeAuto's Avatar
TECH Fanatic
5 Year Member
Photogenic
Photoriffic
Liked
 
Joined: Dec 2019
Posts: 1,129
Likes: 478
Default

I wish I had more time to dedicate to my old Arduino projects.
I ended up selling my arduino powered engine dyno, fuel injector flow bench, and wideband AFR visual grapher (for carbed engines) last year when my youngest was born.

Good work though, this is really some quality stuff.
Reply




All times are GMT -5. The time now is 06:41 PM.

story-0
Amazing '71 Camaro Restomod Is Modern Muscle Car Under the Skin

Slideshow: This heavily modified 1971 Camaro mixes classic muscle car styling with a fifth-generation Camaro interior and modern LS3 power.

By Verdad Gallardo | 2026-05-12 18:06:42


VIEW MORE
story-1
6 Common C5 Corvette Failures and What's Involved In Repairing Them

Slideshow: From wobbling harmonic balancers to failed EBCMs, these are the issues that define long-term C5 ownership and what repairs typically involve.

By Pouria Savadkouei | 2026-05-07 18:44:57


VIEW MORE
story-2
Retro Modern Bandit Pontiac Trans AM Comes With Burt Reynolds' Autograph

Slideshow: A modern Camaro transformed into a retro icon, this limited-run "Bandit" build blends nostalgia with brute force in a way few revivals manage.

By Verdad Gallardo | 2026-04-21 13:57:02


VIEW MORE
story-3
Top 10 Greatest Cadillac V Series Performance Models Ever, Ranked

Slideshow: Cadillac didn't just crash the high-performance luxury vehicle party, it showed up loud, supercharged, and occasionally a little unhinged...

By Pouria Savadkouei | 2026-04-16 10:05:15


VIEW MORE
story-4
Top 10 Most Powerful Chevy Trucks Ever Made!

Slideshow: Top ten most powerful Chevy trucks ever made

By | 2026-03-25 09:22:26


VIEW MORE
story-5
Hennessey's New Supercharged Silverado ZR2 Has 700 HP

Slideshow: Hennessey has turned the Silverado ZR2 into a 700-hp off-road monster with supercharged V8 power and a limited production run.

By Verdad Gallardo | 2026-03-24 18:57:52


VIEW MORE
story-6
Coachbuilt N2A Anteros Is an LS2-Powered C6 Corvette In Italian Clothes

Slideshow: A one-off sports car that looks like a vintage Italian exotic-but hides a C6 Corvette underneath-just sold for the price of a new mid-engine Corvette.

By Verdad Gallardo | 2026-03-23 18:53:41


VIEW MORE
story-7
Awesome K5 Blazer Restomod Comes With C7 Corvette Power

Slideshow: A heavily reworked 1972 K5 Blazer swaps its off-road roots for a low-slung street-focused build with modern V8 power.

By Verdad Gallardo | 2026-03-09 18:08:45


VIEW MORE
story-8
10 Camaros You Should Never Buy

Slideshow: There are thousands of used Camaros on the market but we think you should avoid these 10

By | 2026-02-17 17:09:30


VIEW MORE
story-9
10 LS Engine Myths That Refuse to Die

Slideshows: Which one of these myths do you believe?

By Verdad Gallardo | 2026-01-28 18:10:11


VIEW MORE