JKM Performance



Go Back   SEAT Cupra.net - SEAT Forum » SEAT Model Specific Discussion Forum includes Members Projects » Leon » Leon Mk1

Leon Mk1 Use this forum for Leon specific topics, for 2000-2005 models only

Reply
 
Thread Tools Rating: Thread Rating: 23 votes, 5.00 average. Display Modes
Old 26-03-2012, 09:41   #1
Muzza1742
Daily Driver
 
Join Date: Dec 2011
Location: Stoke
Posts: 156
Muzza1742 has 10 points
DIY Sub £50 Digital LCD Arduino boost gauge

so i got a little bored and decided i needed a new project. I like the look of the zada-tech boost gauges but i didnt want to pay £95 just for a boost gauge when i reckon i can build it myself and learn some new stuff on the way

First off a couple of photo's of it on the breadboard:


Diy boost gauge by Muzza1742, on Flickr


Lcd by Muzza1742, on Flickr

I've changed the display a little, it reads boost now instead of map and the psi is displayed to 1 decimal place.
the bottom line is a re-settable peak boost display that i'm eventually gonna change over to either and oil temp or something else gauge.


Its a piece of piss to build if you've got any kind of electronics knowledge at all.
I built mine following this blog: http://blog.nsfabrication.com/2009/0...ble-peak-hold/
but i made some changes to his code to show the pressure in PSI instead of KPa and adjusted for 1 bar of atmospheric pressure.
Ive got the arduino mega adk instead of the uno in the parts list because the chimp in maplins got my online reservation wrong and put a £60 board in instead of the cheaper one i ordered

Parts list:
http://www.coolcomponents.co.uk/cata...ion-p-583.html Main board £18.50
http://www.coolcomponents.co.uk/cata...ack-p-472.html 16x2 Serial LCD £15.99
http://www.coolcomponents.co.uk/cata...25w-p-339.html 10k resistor £0.10
http://www.coolcomponents.co.uk/cata...ear-p-920.html 10k Pot to simulate the map sensor until i put it on the car £0.45
http://www.coolcomponents.co.uk/cata...ile-p-202.html momentary switch for the peak reset £0.28
http://uk.farnell.com/jsp/search/pro...S|p|9695405829 MPX4250AP manifold absolute pressure sensor £8.74

for a total of £44.06 and a couple of hours tinkering. I've enjoyed building it and if anyone wants to have a go hopefully this post makes things a bit easier for anyone else


And now the important part: the code for the Arduino
Code:
// NSFabrication.com Arduino boost gauge project
// Uses Freescale MPX4250AP MAP sensor on Analog port 0 and SparkFun 16×2 Serial LCD display
// Push button on D2 pulled to 5V, ground to reset peak memory
// 06-29-2009 Nick Salyer nick@nsfabrication.com

int mapsen = 0; // Set MAP sensor input on Analog port 0
float boost = 0; // Set boost value to 0
float mapval = 0; // Set raw map value to 0
volatile float peakboost = 0; // Set peak memory to 0

void setup()
{
attachInterrupt (0, preset, LOW); // defines reset interrupt on D2
Serial.begin(9600); // Open serial port
Serial.write(254); // SerLCD instruction
Serial.write(01); // Clear display
Serial.write(254); // SerLCD instruction
Serial.write(128); // “Powered by:” on first line, left align
Serial.print("Seat Leon");
Serial.write(254); // SerLCD instruction
Serial.write(197); // “NSFabrication” on second line, left align
Serial.print("Cupra 1.8T");
delay (4000); // Display splash screen for 2 seconds
Serial.write(254); // SerLCD instruction
Serial.write(01); // Clear display
Serial.write(254); // SerLCD instruction
Serial.write(128); // “MAP:” at top right of display
Serial.print("BOOST");
Serial.write(254); // SerLCD instruction
Serial.write(140); // “PSI” three digits to the right of “MAP:”
Serial.print("PSI");
Serial.write(254); // SerLCD instruction
Serial.write(192); // “Peak:” at bottom right of display
Serial.print("PEAK");
Serial.write(254); // SerLCD instruction
Serial.write(204); // “PSI” left of peakboost
Serial.print("PSI");
}

void loop()
{
mapval= analogRead(mapsen); //Reads the MAP sensor raw value on analog port 0
boost = (mapval*(.00488)/(.022)*(0.145)-14.5); //Converts raw MAP value to PSI and accounts for atomospheric pressure

if (boost > peakboost) // If current boost is higher than peak, store in peak memory
{
peakboost = boost ;  // Store current boost in peak memory
}

if (peakboost <= 0) // Shifts peak value 1 character to the right if < 10PSI
{
Serial.write(254); // SerLCD instruction
Serial.write(197); // Peak display after “Peak:”
Serial.print(peakboost,1); //peak to 1 decimal
}
else
{
Serial.write(254); // SerLCD instruction
Serial.write(197); // Go to position 22
Serial.write(32); // Load clear bit at position 22
Serial.write(254); // SerLCD instruction
Serial.write(198); // Go to position 22
Serial.write(32); // Load clear bit at position 23
Serial.write(254); // SerLCD instruction
Serial.write(199); // Go to position 22
Serial.write(32); // Load clear bit at position 24
Serial.write(254); // SerLCD instruction
Serial.write(200); // Go to position 22
Serial.write(32); // Load clear bit at position 25
Serial.write(254); // SerLCD instruction
Serial.write(201); // Go to position 22
Serial.write(32); // Load clear bit at position 26
Serial.write(254); // SerLCD instruction
Serial.write(202); // Go to position 22
Serial.write(32); // Load clear bit at position 26
Serial.write(254); // SerLCD instruction
Serial.write(198); // Peak display after “Peak:”
Serial.print(peakboost,1); //peak to 1 decimal
}
if (boost <= 0) //Shifts the MAP value 1 character to the right if < 10PSI
{
Serial.write(254); // SerLCD instruction
Serial.write(133); // boost after “MAP:”
Serial.print(boost,1); //boost to 1 decimal
}
else
{
Serial.write(254); // SerLCD instruction
Serial.write(133); // Go to position 6
Serial.write(32); // Load clear bit at position 4
Serial.write(254); // SerLCD instruction
Serial.write(134); // Go to position 7
Serial.write(32); // Load clear bit at position 4
Serial.write(254); // SerLCD instruction
Serial.write(135); // Go to position 8
Serial.write(32); // Load clear bit at position 4
Serial.write(254); // SerLCD instruction
Serial.write(136); // Go to position 9
Serial.write(32); // Load clear bit at position 4
Serial.write(254); // SerLCD instruction
Serial.write(137); // Go to position 10
Serial.write(32); // Load clear bit at position 4
Serial.write(254); // SerLCD instruction
Serial.write(138); // Go to position 11
Serial.write(32); // Load clear bit at position 4
Serial.write(254); // SerLCD instruction
Serial.write(134); // boost after “MAP:”
Serial.print(boost,1); // boost to one decimal
}
delay(100); // prevents LCD display from ghosting. Lower number refreshes faster, higher number has less ghosting on slow LCD’s
}

void preset() //peak reset if D2 goes low
{
peakboost = boost; //sets peakboost to current boost reading, resetting the peak memory
}
__________________

2002 Leon Cupra 180 | L.E.D Sidelights | 6000k Hids | Sony Bluetooth H/U | Re-sealed doors | No more leaks | LCD Boost gauge
Muzza1742 is offline   Reply With Quote
Old 26-03-2012, 14:36   #2
LEE69
Stage 2 Revo'd
 
LEE69's Avatar
 
Join Date: Dec 2004
Location: C\UK\Devon\Torquay
Posts: 21,303
LEE69 has far too many pointsLEE69 has far too many pointsLEE69 has far too many points
I agree lol

Nice bit of kit
LEE69 is offline   Reply With Quote
Old 26-03-2012, 14:52   #3
gdjohny
Crazy Mechanical Engineer
 
gdjohny's Avatar
 
Join Date: Dec 2010
Location: Kettering
Posts: 819
gdjohny has 10 points
Nice
Once I sell some bits from my garage I will build one and fit it to my speedo
gdjohny is offline   Reply With Quote
Old 26-03-2012, 16:30   #4
JamesL
Senior Member
 
JamesL's Avatar
 
Join Date: Dec 2007
Location: Reading
Posts: 1,566
JamesL has 40 points
Would be great if you could do a full write up once you've completed the install mate. Good work!
__________________
Alfa Romeo Giulietta - 2.0 JDTM Lusso
Was - Seat Leon Cupra 1.9 tdi
JamesL is offline   Reply With Quote
Old 26-03-2012, 16:33   #5
Klone
Senior Member
 
Klone's Avatar
 
Join Date: Aug 2010
Location: Clacton On Sea
Posts: 1,543
Klone has 10 points
looks SO cool mate. keep up and let us see it.

im absolutely tempted myself for the drivers vent!
__________________
Stage One REVO, Coilovers, Decatted Custom System, RS6 Reps, HIDs, Split R
Reader's Ride//Forge Split-R Tuning Guide
Klone is offline   Reply With Quote
Old 27-03-2012, 18:31   #6
Muzza1742
Daily Driver
 
Join Date: Dec 2011
Location: Stoke
Posts: 156
Muzza1742 has 10 points
quick check of the lcd size for the drivers door vent:

Test fit of boost gauge by Muzza1742, on Flickr

and then onto butchering the vent to fit it in (and one slightly slashed thumb from being a dickhead with a stanley knife)


Test fit with cover by Muzza1742, on Flickr

Just need to make it abit neater now
__________________

2002 Leon Cupra 180 | L.E.D Sidelights | 6000k Hids | Sony Bluetooth H/U | Re-sealed doors | No more leaks | LCD Boost gauge
Muzza1742 is offline   Reply With Quote
Old 27-03-2012, 20:37   #7
cupra_r_ick
Senior Member
 
cupra_r_ick's Avatar
 
Join Date: Jan 2011
Posts: 1,119
cupra_r_ick has 10 points
make me one, now !
cupra_r_ick is offline   Reply With Quote
Old 27-03-2012, 21:27   #8
Allan_84
Senior Member
 
Allan_84's Avatar
 
Join Date: Apr 2010
Location: Denmark
Posts: 854
Allan_84 has 10 points
great project

im on something similar, but not with an arduino, i use an Amicus board, its the same just PIC micro chip instead of the atmel microcontroller.

when/if its done il post picture of it also.
__________________
Seat Leon 1,8 20VT, 210bhp and 262 lbs/ft (355nm), 3" DP, 2,76" Milltek Resonated Exhaust, stage 1 software, Cupra-R look. And more stuff in my Readers ride thread
Allan_84 is offline   Reply With Quote
Old 27-03-2012, 21:32   #9
Muzza1742
Daily Driver
 
Join Date: Dec 2011
Location: Stoke
Posts: 156
Muzza1742 has 10 points
I'd like to see that when hour done mate
__________________

2002 Leon Cupra 180 | L.E.D Sidelights | 6000k Hids | Sony Bluetooth H/U | Re-sealed doors | No more leaks | LCD Boost gauge
Muzza1742 is offline   Reply With Quote
Old 27-03-2012, 22:32   #10
JamesL
Senior Member
 
JamesL's Avatar
 
Join Date: Dec 2007
Location: Reading
Posts: 1,566
JamesL has 40 points
I have a parrot partially blocking the drivers vent, so I try to kee the vent closed. I've noticed that the blowers are noisier when the drivers vent is closed though, which is a bit frustrating!
__________________
Alfa Romeo Giulietta - 2.0 JDTM Lusso
Was - Seat Leon Cupra 1.9 tdi
JamesL is offline   Reply With Quote
Old 29-03-2012, 22:07   #11
Muzza1742
Daily Driver
 
Join Date: Dec 2011
Location: Stoke
Posts: 156
Muzza1742 has 10 points
ive removed the vent and sealed it shut now so it shouldnt blow to much. i know what you mean about the noise though.
managed to pick up the map sensor for $6 by saying im prototyping a new product to bring to market with my "company"
i figured out how to take a voltage off a two wire temp sensor using another resistor so all i need now is to find a decent temp sensor and thats one more thing down.
also picked up a LDR (light dependent resistor) to put into the modded vent so all ive got to do now is to write some code and make it dim at night and full brightness during the day.
__________________

2002 Leon Cupra 180 | L.E.D Sidelights | 6000k Hids | Sony Bluetooth H/U | Re-sealed doors | No more leaks | LCD Boost gauge
Muzza1742 is offline   Reply With Quote
Old 29-03-2012, 23:18   #12
JamesL
Senior Member
 
JamesL's Avatar
 
Join Date: Dec 2007
Location: Reading
Posts: 1,566
JamesL has 40 points
PLEASE do a full write up for this, I would love to make one of these!
__________________
Alfa Romeo Giulietta - 2.0 JDTM Lusso
Was - Seat Leon Cupra 1.9 tdi
JamesL is offline   Reply With Quote
Old 03-04-2012, 18:21   #13
Muzza1742
Daily Driver
 
Join Date: Dec 2011
Location: Stoke
Posts: 156
Muzza1742 has 10 points
my map sensor showed up today but in typical fashion i wasn't paying attention to what i ordered. ended up with a mpx4250gp instead of a mpx4250ap.
The difference being that the ap is an absolute pressure sensor and the gp is gauge pressure. the gp wont show a negative pressure reading when it on vac because it only shows pressure above current atmospheric pressure. the ap is absolute pressure and would show -14.5 psi to 21.4 psi.

But seeing as the mrs lost her job yesterday all spending is cancelled and i'll fit the gauge with the gp map this weekend.
__________________

2002 Leon Cupra 180 | L.E.D Sidelights | 6000k Hids | Sony Bluetooth H/U | Re-sealed doors | No more leaks | LCD Boost gauge
Muzza1742 is offline   Reply With Quote
Old 03-04-2012, 22:31   #14
MarkWales
Senior Member
 
MarkWales's Avatar
 
Join Date: Feb 2009
Location: South Wales
Posts: 3,744
MarkWales has 10 points
following this one to see the progress
__________________
my 200 BHP LEON CUPRA TDI Thread Shells SHARAN TDI Thread Wales Thread
"Like a Golf, but not a Golf, BETTER"
MarkWales is offline   Reply With Quote
Old 04-04-2012, 13:58   #15
hpoolsteve
Full Member
 
hpoolsteve's Avatar
 
Join Date: Mar 2012
Posts: 134
hpoolsteve has 10 points
subscribed
hpoolsteve is offline   Reply With Quote
Old 04-04-2012, 14:17   #16
seat_cr
Full Member
 
Join Date: Apr 2011
Posts: 43
seat_cr has 10 points
^ same here ;-)
__________________
Leon Cupra R
AMK - K&N Filter - Forge 007 DV - Stage 1
seat_cr is offline   Reply With Quote
Old 07-04-2012, 09:31   #17
Muzza1742
Daily Driver
 
Join Date: Dec 2011
Location: Stoke
Posts: 156
Muzza1742 has 10 points
did a bit of fiddling with it yesterday.
Got the gauge fitted but because it was threatening to rain all day i was rushing and didnt take many pictures.

Here's the three i did take:


Untitled by Muzza1742, on Flickr


Untitled by Muzza1742, on Flickr


Untitled by Muzza1742, on Flickr

So far everything works as intended, i need to do some adjusting on the code to slow the refresh and put a capacitor into the map sensor circuit to even out the readings.

I've changed the peak reading display to a temp sensor (taking readings from a forklift truck oil sensor going spare at work) but because im skint now its not wired up until i can get an adapter for the sump plug.

Another thing im not 100% happy with is the readability of the lcd in daylight so i need to do some more testing and i might change it over to an OLED once the mrs finds a new job
__________________

2002 Leon Cupra 180 | L.E.D Sidelights | 6000k Hids | Sony Bluetooth H/U | Re-sealed doors | No more leaks | LCD Boost gauge
Muzza1742 is offline   Reply With Quote
Old 11-04-2012, 17:47   #18
Muzza1742
Daily Driver
 
Join Date: Dec 2011
Location: Stoke
Posts: 156
Muzza1742 has 10 points
decided to strip out the clocks and fit the lcd in there instead cause im not happy with the way the light shines onto it when its sat in the vent. just means i need to buy some new vent internals now
__________________

2002 Leon Cupra 180 | L.E.D Sidelights | 6000k Hids | Sony Bluetooth H/U | Re-sealed doors | No more leaks | LCD Boost gauge
Muzza1742 is offline   Reply With Quote
Old 11-04-2012, 17:51   #19
LEE69
Stage 2 Revo'd
 
LEE69's Avatar
 
Join Date: Dec 2004
Location: C\UK\Devon\Torquay
Posts: 21,303
LEE69 has far too many pointsLEE69 has far too many pointsLEE69 has far too many points
Like the sound of that pics when you get a mo.
LEE69 is offline   Reply With Quote
Old 11-04-2012, 20:32   #20
JamesL
Senior Member
 
JamesL's Avatar
 
Join Date: Dec 2007
Location: Reading
Posts: 1,566
JamesL has 40 points
Sorry to hear about the missus losing her job mate . Hopefully she'll find something soon!

Good work on the board as it is though! Where abouts are you going to put it in the clocks?

Btw - What are you going to do with the old vent? I've been after one that I want to pull apart anyway, pm me if you want rid of it! I've got a paypal account sat doing nothing!
__________________
Alfa Romeo Giulietta - 2.0 JDTM Lusso
Was - Seat Leon Cupra 1.9 tdi
JamesL is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

(View-All Members who have read this thread : 409
06hirons, 1975jcbg, 1986brandon1, 51mo, 747_727, 8bit, 932matthew, aaronipswich, abs111, acmeye, adamb87, AdamRoutley, adamstreeter, Adman77, admasiv, al20v, alcarp, AlexIbizaSport, alionka, Allan_84, Al_cavturbo, Andre20VT, andy.morgan, andygrim, andypandypoos, andypower, angelday, ArcticCupra, AshFR, aussie, Azza_, a_lozynski, B3NZARMY, badboybunty, barry1988, basstard, Beaniesbcfc, belly91, ben450, Ben:, bendohhh, benfacer, ben_edwards30, big eck, Bigdemp15, billyhas, Blamester, bmg2012, bmknight, Bobbymk1, Bogwoppit, Bolland, BoostHard, Br!dges, Bret, Burnout, button_17, c170784, Cainey, CD, chapelhill, CharlieFR, Chefoo, Cheshire_Tom, chichee, chiefos, Chris4877, ChrisGTL, chris_200120vt, Chris_a_73, chriz1, Cjam, ClearAction, Cleg85, clutchitupson, cmc, co004, cocadave, cooky25, cordoba lad, crespo1987, csd_19, cstark, Cupra Grant, CupraCraig225, cupradan, cuprarG, cupraslayer, cuprastoffs, cupra_ahhh, cupra_r_ick, czaki, D.K, d1n93r, Damoegan, Dan1720v, dan7975, danarmstrong, danblowes, Dani_b19, Dannyh, dan_leon130, Darren7887, davidbattersby, dawson86, dday, DGF264, dino33, Dione J, dixonsa13, DMackie, Dmoe, DOLBY, domin8or, Donny9835, dougieboy, dringa, drka-drka, DrunkenDubber, Dudfield, ejeKutor, Ellisium, Engimaneer, Equalizer, evo2345, F3rAL, fahafiz, FASTER, fax571938, fipsy, fliksm, fmtrikala, fossie, Fozzy 89, fr 150 boy, frannyb, Fraz, gac, gadgetboy38, Garetht, gav525, Gav_Kara, gazR, gdjohny, georgemckee999, georgen, george_seamons, gezmeister, GJF47, Goacher65, Gokiwi64, Goo, GoogleBear, griffo 1, gti dan, Gti-Joe, Gubien, Gulfstream, Hamzilla, HarvySingh, Hb69, Henk80, herb2578, hiren, Holdup, hombre_paulo, hpoolsteve, Hut, hyphon12, iamseanyboy, ibiza_fr, IDan, IH786, ijmok, imfloflo, Invincible, Invisible242, irf, J12BDM, j976rna, J@mes W, Jabs1989, jaf2212, jake, Jake9119, james.l, james291, JamesL, james_cupra, jamfull, jamski, jase750, jeroencupraR, Jez_B, Jii, Jimski, jlocks90, joe-20vt-toledo, Joel_Lucketti, JohnnyyyM_, johnny_M, jok0212, jonathanp, joshbennett, juneau, Keithslippery, killerog, kinder, Kirky.aj, kirkyboy, klemenmico, Klone, kosymodo, kra_rz, kris1234, kriso, LCR 225, lcrb, lcrsammy, lc_allan, LEE69, Leechy360, leegriffiths, lee_fr, Leon1600s, leon_lee, living2xs, Lodey23, Lumby, M1C VX, M20FES, magaizeris, Mandip, manoj, ManOnTheMoor, marcus.l, markbrum, MarkWales, Mart, Marthamm, Masterkm, MatP, matt-drummer, Matt-V5-Duffy, matt88 lcr, MattSee, matt_s, matylad, MauriceRKK, MellowSage, micallef, Mick288, mickeyp88, mike.1981, mikebrennan, mikerowe, milner575, miscreant, MisterE, mk4 cupra, Mo Arif, moggytom, monk3y303, monty28, motty225, MPJ88, Mr Footlong, Mr OCD, mrbdrm, MrBen2k7, Mukkyman, mur@t, Murdered LCR, murv, Muzza1742, n5erd, nally270lb,TQE, Nam-uk, nd-photo.nl, NickCupraR, NickLCR, Number12, Nutta121, Oj 89, oldskoolzzz, OneGearAtATime, ovalpegs, ozzymyster, p-twirler, p888uld, Pablo225, patsyno1, Paul43, paul6316, PhilW, pickles, Pingu101, pistik1409, pjmdevo, powerdbycupra, powermad, prittchauhan, Priz91, Proff_86, psjunkie, psycho6285, ptycupra, QU4RESMA, R99AN H, RACK, Radeonuk, rainbird, Raj, RDS, RDS1972, ReDBull, RedFive, richyy, rk696, Rob Kelz, rob-d, robboz, Russler, ryno, S14M LO, S15YCE, s1mon, sambryant, sas 99, Scam, Seal_LCR, SeanH., Seatmann, seat_cr, Seat_FR, sebby225R, Segger, sexynips, Shaz_CupraT, shidoshi, Shrek1802, sidennis28, Silentnight*, sjec, SLeonTim, slickman, Slimy, Smoki333, soche, sonnex22, speedinsaxo, Spirit Furtive, spudboy6, staffyspen, Steely, SteveRyan, stezie, stonechip1, subby28, SubZero, sunilbass, suzsv650, Sxanth, T20 CEJ, TALBOTL, TatoTDI, tedvagas, thefangio, thefunkygibbon, tom t, tommycx, tonipieleanu, tony323ci, tonycane, Tr1ck, Trials27, trickycupra, tunes, turboboy111, useyourname, usp, VT86, vw-aj, vwdom, W11TTX, wanna_cupra, WaspyJoe, wayne lcr, Welby88, WEZ1963, wezy0, Wiggy20, wild willy, will130787, Will89lcr, wilz1234, wisesmurf, Wolven, Wolvo-Oleg, worzel, x24sevenbikerx, Yaboy, yellonvi-R, YellowLCR, Yohan87, zippy88, zorro
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 06:06.




Website © 2014 SEATCupra.net

Disclaimer: SEATCupra.net is not an official SEAT site and is not affiliated to SEAT in any way. Visit the Official SEAT Website.

SEATCupra.net are not directly responsible for information which maybe posted in this forum.
All content is viewed and used at your own risk. We do not warrant the accuracy or reliability of any of the information.
The views expressed herein are those of the individual contributors and not necessarily those of SEATCupra.net or SEAT
All trademarks and copyrights remain property of their respective owners.