Author Topic: Solstice Custom Boost Gauge - show and tell  (Read 20025 times)

0 Members and 1 Guest are viewing this topic.

Offline TomatoSoup

  • Premium Member
  • Gearhead
  • *
  • Posts: 3381
  • Karma: +19/-13
Solstice Custom Boost Gauge - show and tell
« on: June 02, 2012, 03:55:36 PM »
My custom boost gauge is finally FINISHED!  This has taken a looooong time, mostly due to me having little spare time to work on it, but also because it involved a LOT of fiddly work, including the PCB design and developing and testing the assembly language software for the Atmel microcontroller (ATtiny48). But I'm very happy with it (and myself :)) and it works perfectly! Anyway, as promised earlier, this thread is a word and picture description of the development and install process...

First, I should note here that although this circuit and code will work fine on a Sky, it's designed physically to (just!) fit in the available space behind the boomerang of a Solstice.  I have no idea if it would fit in the Sky's dash - but probably not. :(

From a feature perspective, this is the list of the requirements for what I was attempting:
  • Microcontroller-based LED Boost Gauge to fit in the same location as the existing (and much-hated) Passenger Seatbelt/Airbag Warning Light display, incorporating (but geographically compressing) those same warning lights.
  • Reusing the signal from one of the existing LNF MAP sensors, buffered via an OpAmp to ensure it won't affect regular ECM operation.  This avoids having to buy, plumb-in and install yet another boost sensor.  I did make sure to have pins available on the board for ground and 5V though, so I could add a third sensor later, in case I did have troubles piggybacking off the factory MAP.
  • Providing as many boost LEDs as I could within the limitations of the microcontroller pins, showing both negative AND positive pressures.  I ended up with -12 to +24 boost display (max available from GMPP tune) with 3 LEDs of negative = -4 PSI per LED, and 18 LEDs for positive = +1.33 PSI/LED.  These ranges could be easily changed in the software to be either higher or lower though.
  • Have a "Peak Hold" feature to keep the highest-boost LED lit for four seconds after a peak.  Selectable, on or off, by a jumper on the board.
  • Utilise the same Passenger Seatbelt/Airbag Warning Light connector to both power the device as well as light those warning LEDs
  • Utilise the dashboard backlight power to both illuminate the gauge backlights and also to trigger the micro to dim the boost gauge LED display at night (with adjustable levels via the dimmer knob).
  • Include an ISP (In-System Programming) jumper to allow future in-car re-programming of the micro, in case I had to change anything or modify parameters.

I wrote the software in assembly language using Atmel's AVR Studio software, and tested it on a development board that I have.  This allowed me to debug the majority of the code, but since the dev board was quite different from the final circuit, there was still a fair amount of risk when I went to the final board.  Fortunately it mostly worked on the final system with only two (mostly cosmetic) bugs that I had to fix in the final system.  I won't post the code here, but I can certainly supply it on request to anyone who thinks they want to take on the pain of building one of these for themselves!  Ditto the component list and hi-res PDFs to print for the circuit board traces/components and the display screen.  I will NOT, however, put together or supply 'kits' for this.  Sorry, I just don't have the time.

The software uses the micro's on-board analog-to-digital converter (ADC) to 'read' the voltage level from the MAP sensor, and then performs some math to convert that to a PSI value and hence determine what LEDs to light to show the pressure.  I based the math on the parameters I found online for the GMPP Bosch T-Map Sensor, which was given as a linear voltage rise between 0.25V @ 11 kPa to 4.75V @ 307 kPa.  This could easily be adjusted for any other MAP sensor, including the base OEM or any third-party sensors.  I'd just need the two end points like the above and plug them in.  The micro reads and updates the pressure every 1/10 second - it could easily do it much faster, but I figured this was a fast enough update for any non-superhuman.

OK, so on to the pictures (I know you guys can't read too well).  First off, after MANY iterations to get this to fit on a single-sided PCB in the space available (including, as mentioned elsewhere, some design changes like discovering that the dashboard backlight power works via PWM, not varying voltage level) these were the final PCB design(s) showing the tracks at the back of the board, with the component layout superimposed on top.  This was done using an old draw package (Micrografx Draw) that I've had and used for many years.  Here you see the three boards, the main circuit board, the daughter board for the backlight LEDs (for the numbers) and the 'carrier' for the re-used warning light connector (see later):

[attach=1]


I also used the draw program for designing and creating the display screen:

[attach=2]


Once the track layout was finalised, I simply printed it onto glossy photo paper using a laser printer and then ironed it on to the copper side of a piece of copper-clad board with a ordinary clothes iron, as shown in-progress below:

[attach=3]


Afterward, you simply soak the paper off in boiling-hot water and scrub any paper remants off, to leave the fused ink on the board.  Then it's just a matter of 15 mins immersed in a bath of Ferric Chloride to etch off all the copper not covered by laser ink. Then the paaiiinnnful bit... drilling all the (seems like) many hundreds of holes with a fine drill bit!

[attach=4]


Now we get to pulling the existing warning light assembly apart. I desoldered and reused the airbag on/off LEDs, the seatbelt warning LED, one of the "Passenger Airbag" text backlight LEDs and -most importantly- the connector itself.  I also reused, cut to fit, the rear black plastic shell molding to mount the new circuit board on. This shows the pieces-parts with the shell to be re-used at the far left, plus the circuit board prior to being cannibalized:

[attach=5]


... and just FYI, this shows the reverse-engineered component circuit of the warning display (remember, I had to reproduce this as part of my new PCB):

[attach=6]


In the same way I did the tracks, I laser-printed the component layout and ironed that on to the face of the board as you can see below.  Now I had to start to cut and trim the back of the warning light rear shell so I could mount the new display in the original carrier on the Boomerang:

[attach=7]


... and this shows the final cutout on the rear shell, clipped into the carrier and resting against the PCB.  Here there were just enough components mounted to perform the first in-circuit programming of the micro and hence do a first basic test of the board.  Note, the top left of the board was shaved to fit up against the curve of the boomerang (I expected this), but I also found I had to fill-out the bottom left bolt hole in the rear shell with epoxy, up to the level of the molded lip, to give that mounting bolt something to press against:

[attach=8]


Here's the board and initial components again (without the shell) and the boost display LEDs glued together inline prior to soldering into the board:

[attach=9]


... and the back of the board showing the PCB traces:

[attach=10]
"That is my theory, it is mine, and belongs to me and I own it, and what it is too." (Monty Python)

Offline TomatoSoup

  • Premium Member
  • Gearhead
  • *
  • Posts: 3381
  • Karma: +19/-13
Re: Solstice Custom Boost Gauge - show and tell
« Reply #1 on: June 02, 2012, 03:56:03 PM »
Finally, here are all the components soldered on, including the warning light connector at the lower right.  Since I didnt have a double-sided board, I had to fake it with a second mini-PCB, so I could solder the connector on from the 'back' of the board.  You can also see the ISP jumper on the bottom left and the peak-hold On/Off jumper "J1" on the top left (both reachable by just pulling the cluster 'tunnels' when the gauge is mounted in the car) and the dashboard light and MAP input connector pins on the top right. Lastly, at the middle bottom is the 5V regulator (to power the micro and the OpAmp from the 12V car supply) bolted on to a heatsink made from a piece of angle-aluminium cut to fit:

[attach=1]


And here is the board set in place in the carrier at the back of the boomerang.  I had to trim 1/8" off the top edge of the carrier for the Hazard Light switch, to allow space for the 5V regulator heatsink to fit down in (I didn't account for that when I originally determined the size of the PCB board!  :gaah: ).  Now you can see the warning light connector in place at the bottom left of the board:

[attach=2]


To avoid light bleed-thru from/between the (BRIGHT) warning LEDs, I had to cut out some pieces of compressed stiff card with a sharp knife and then glue the pieces together to make a screen/shield:

[attach=3]


Painted this black and then cut pieces of diffuser film (Roscolux theater gel: #117 Tough 1/2 White Diffusion) and push-fitted them in as folded U-shapes.  Here is the final gauge assembly with all this in place:

[attach=4]
« Last Edit: June 07, 2012, 08:08:57 AM by TomatoSoup »
"That is my theory, it is mine, and belongs to me and I own it, and what it is too." (Monty Python)

Offline TomatoSoup

  • Premium Member
  • Gearhead
  • *
  • Posts: 3381
  • Karma: +19/-13
Re: Solstice Custom Boost Gauge - show and tell
« Reply #2 on: June 02, 2012, 03:56:09 PM »
OK so, that was the electronics parts done.  Now for the cosmetics (this never ends!) I cut the front window out of a 1/4" piece of acrylic I had, grinding the edges to allow it to sit into the slot in the boomerang from the back.  I wish I had tinted acrylic, but I only had clear, so that had to do:

[attach=1]


This is it finished with all visible edges polished (right).  Also the screen itself which is made from a sheet of transparency 'paper', laser-printed with the screen design.  I over-printed this 3 times (with careful positioning each time) to get the blacks as dense as possible.  Had a couple of badly-registered mis-tries, before I got it right.  Then, even with 3 prints, there were still some light areas and faults, so I hand back-painted with black as necessary. I also back-painted with thinned white over the backlit icons/text areas - this was so they'd also show as white during daylight, but still show up backlit at night (left):

[attach=2]


... and here's the final window resting on the final screen:

[attach=3]


... and the final display mounted in the boomerang.  This looks like it's inset, but that's just the screen. The front of the window is nearly flush with the boomrerang:

[attach=4]
« Last Edit: June 02, 2012, 04:17:34 PM by TomatoSoup »
"That is my theory, it is mine, and belongs to me and I own it, and what it is too." (Monty Python)

Offline TomatoSoup

  • Premium Member
  • Gearhead
  • *
  • Posts: 3381
  • Karma: +19/-13
Re: Solstice Custom Boost Gauge - show and tell
« Reply #3 on: June 02, 2012, 03:56:14 PM »
Now onto the in-car wiring...  I had to dive into the ECM connector to 'leach' off the MAP wire.  From wiring info, I found that the pressure reading wire from the rear-most of the two sensors is a Light Green wire on pin 37 of the X1 conn at the ECM ("X1" is the 96 pin connector. "X2" is the 58 pin connector).  So I opened-up the connector (sorry, no photos) and stripped/soldered/liquid-taped a short pig-tail wire off the above and back out of the X1 connector, terminated with a female bullet connector:

[attach=1]


Then I fished an extension wire back through the firewall to inside the dash (the thick stripey wires are my speaker wires into the door)...

[attach=2]


Then pulled the boomerang, finished fishing the boost wire and terminated everything using an old PC connector ready to plug into the gauge.  The orange wire is the dashlight input, spliced into the Hazard Warning switch connector at the top right:

[attach=3]


Then I mounted the gauge in the boomerang, plugged everything in, replaced the interior panels, and away we go!
« Last Edit: June 02, 2012, 04:13:52 PM by TomatoSoup »
"That is my theory, it is mine, and belongs to me and I own it, and what it is too." (Monty Python)

Offline TomatoSoup

  • Premium Member
  • Gearhead
  • *
  • Posts: 3381
  • Karma: +19/-13
Re: Solstice Custom Boost Gauge - show and tell
« Reply #4 on: June 02, 2012, 03:56:20 PM »
So, finally, some videos of operation.  These were taken with my cellphone so not the best quality, particularly the startup one in the dark (garage) but you'll get the idea at least.

So here's the (crappy) startup operation video, showing the power-on sweep and (faintly) the backlights:

http://s949.photobucket.com/albums/ad339/TomatoSoup_GXP/Solstice_Boost_Gauge/Startup.mp4


... and here are a couple of driving vids, showing normal operation.  Note I was getting on and off the gas to show both positive and negative swings and the responsiveness:

http://i949.photobucket.com/albums/ad339/TomatoSoup_GXP/Solstice_Boost_Gauge/Driving_1.mp4
http://i949.photobucket.com/albums/ad339/TomatoSoup_GXP/Solstice_Boost_Gauge/Driving_2.mp4
« Last Edit: June 02, 2012, 04:16:13 PM by TomatoSoup »
"That is my theory, it is mine, and belongs to me and I own it, and what it is too." (Monty Python)

Offline miller11386

  • Gearhead
  • ****
  • Posts: 1993
  • Karma: +1/-4
Re: Solstice Custom Boost Gauge - show and tell
« Reply #5 on: June 02, 2012, 04:27:37 PM »
That is extraordinary electronics expertise.

Congrats on an awesome gauge!

Also can you find a way to wire an AEM EMS in our cars ;)
Check out Miller's Youtube Channel HERE

Offline Gentleman Jack

  • Chief Financial Officer, Color Professional
  • Premium Member
  • Shop Foreman
  • *
  • Posts: 8982
  • Karma: +26/-82
  • I'm here. If I wasn't here, I'd be there.
Re: Solstice Custom Boost Gauge - show and tell
« Reply #6 on: June 02, 2012, 04:49:51 PM »
Holy crap TS.

Holy crap.

Wow. 
Make the right choices now

Offline TomatoSoup

  • Premium Member
  • Gearhead
  • *
  • Posts: 3381
  • Karma: +19/-13
Re: Solstice Custom Boost Gauge - show and tell
« Reply #7 on: June 02, 2012, 05:21:42 PM »
That is extraordinary electronics expertise.
Honestly? Not really :) 

The electronic part was easy - prettly basic, boilerplate stuff.  The difficult part was laying the PCB tracks out to fit on a single-sided board in the restricted dimensions available, and then all the fiddly 'mechanical' part drilling holes, grinding perspex, etc.  The code took a while too, but that was mostly my lack of experience with Atmel's assembler.  I'm better at it now  :devil:

Thank you for the compliment though  :D

Also can you find a way to wire an AEM EMS in our cars ;)
Err maybe?

I think my next project is going to be an infrared 'curb feeler'.  Got the idea from a recent Motorweek... there's a device out there, but it costs $250!! Wow!  I rekon I can do it for under $30 in parts, and that maybe something I can make as a kit.  Sick of scraping my 'nose'  :banghead:
« Last Edit: June 02, 2012, 05:25:59 PM by TomatoSoup »
"That is my theory, it is mine, and belongs to me and I own it, and what it is too." (Monty Python)

Offline miller11386

  • Gearhead
  • ****
  • Posts: 1993
  • Karma: +1/-4
Re: Solstice Custom Boost Gauge - show and tell
« Reply #8 on: June 02, 2012, 05:32:56 PM »
well if you want to venture into the ems world, let me know. I am really interested in AEM, haltech, etc. to put in our cars. So many more options on the aftermarket ecm's.

Check out Miller's Youtube Channel HERE

Offline DeepBlueGXP

  • KappaPerformance Site Owner
  • Administrator
  • Shop Foreman
  • *
  • Posts: 9228
  • Karma: +13/-6
  • Displaced Buffalo Bills Fan
    • Kappa Performance Forum
Re: Solstice Custom Boost Gauge - show and tell
« Reply #9 on: June 02, 2012, 05:37:47 PM »
Impressive!!!!

Sent from my LGL55C using Tapatalk 2

Offline LatinVenom

  • Premium Member
  • Gearhead
  • *
  • Posts: 3062
  • Karma: +7/-5
Re: Solstice Custom Boost Gauge - show and tell
« Reply #10 on: June 02, 2012, 06:35:25 PM »
That is very good electronics work.
Congrats.
Solstice GXP 2007.
Aggressive and fully loaded.
Mods: Magnaflow 2.5" exhaust, DDM Backbone & ProBeam,ZOK suspension,LV Kappa Front Chassis Brace, BTF Turbo Upgraded Wheel, Windristrictor, JPM Center console,arms,tulip,side doors,DDM Upgraded wheel tune.

Offline Sly Bob

  • Administrators
  • Shop Foreman
  • *
  • Posts: 8077
  • Karma: +19/-10
  • My new grandson
    • Kappa Performance Forum
Re: Solstice Custom Boost Gauge - show and tell
« Reply #11 on: June 02, 2012, 08:04:56 PM »
Looks great Mark, awesome work.  :award:

A curb feeler? i could use one of those on the front and on the passenger side. No more curb rash on the rims.
Just trying to do my part...

Mods: Lose the chicklets, VentureShield, Dual horns, AfterShock spoiler, Weathershield cover, Lil Chromies, Red calipers with black Solstice stickers, Opel GT antenna and Solo GXP-RCD exhaust with a Solo hi-flow cat!

Offline EarthNTX

  • Upgraded Member
  • Master Tech
  • *
  • Posts: 810
  • Karma: +1/-1
Re: Solstice Custom Boost Gauge - show and tell
« Reply #12 on: June 02, 2012, 08:34:59 PM »
I really REALLY love this... :)
Ride it like you mean it.

Offline reedred

  • Turgid
  • Premium Member
  • Master Tech
  • *
  • Posts: 477
  • Karma: +3/-4
Re: Solstice Custom Boost Gauge - show and tell
« Reply #13 on: June 02, 2012, 10:33:28 PM »
That is sweet as hell!  Great job!

Offline Sly Bob

  • Administrators
  • Shop Foreman
  • *
  • Posts: 8077
  • Karma: +19/-10
  • My new grandson
    • Kappa Performance Forum
Re: Solstice Custom Boost Gauge - show and tell
« Reply #14 on: June 02, 2012, 10:42:30 PM »
I think my next project is going to be an infrared 'curb feeler'.  Got the idea from a recent Motorweek... there's a device out there, but it costs $250!! Wow!  I rekon I can do it for under $30 in parts, and that maybe something I can make as a kit.  Sick of scraping my 'nose'  :banghead:

Did a little Googling on the Motorweek product that you were talking about Mark, it's $160 with free shipping. Do a Google search for curb-alert.
« Last Edit: June 02, 2012, 10:49:14 PM by Sly Bob »
Just trying to do my part...

Mods: Lose the chicklets, VentureShield, Dual horns, AfterShock spoiler, Weathershield cover, Lil Chromies, Red calipers with black Solstice stickers, Opel GT antenna and Solo GXP-RCD exhaust with a Solo hi-flow cat!

Offline LiquidPT

  • Premium Member
  • Master Tech
  • *
  • Posts: 698
  • Karma: +0/-1
  • TechHead
    • LiquidPT's website
Re: Solstice Custom Boost Gauge - show and tell
« Reply #15 on: June 03, 2012, 01:50:16 AM »
Reminds me I need to get back on my project. I stalled on circuit layout...
LiquidPT aka Matt
driving Black Sun
2009 Mysterious GXP Coupe #100

Offline TomatoSoup

  • Premium Member
  • Gearhead
  • *
  • Posts: 3381
  • Karma: +19/-13
Re: Solstice Custom Boost Gauge - show and tell
« Reply #16 on: June 03, 2012, 10:30:10 AM »
Reminds me I need to get back on my project. I stalled on circuit layout...
What'chu workin' on, LPT?
"That is my theory, it is mine, and belongs to me and I own it, and what it is too." (Monty Python)

Offline TomatoSoup

  • Premium Member
  • Gearhead
  • *
  • Posts: 3381
  • Karma: +19/-13
Re: Solstice Custom Boost Gauge - show and tell
« Reply #17 on: June 03, 2012, 10:31:16 AM »
Did a little Googling on the Motorweek product that you were talking about Mark, it's $160 with free shipping. Do a Google search for curb-alert.
I did, but maybe not enuf... I'd found this: http://www.brandmotion.com/curb-alert-2.html.

Still $160's a lot.
"That is my theory, it is mine, and belongs to me and I own it, and what it is too." (Monty Python)

Offline Sly Bob

  • Administrators
  • Shop Foreman
  • *
  • Posts: 8077
  • Karma: +19/-10
  • My new grandson
    • Kappa Performance Forum
Re: Solstice Custom Boost Gauge - show and tell
« Reply #18 on: June 03, 2012, 10:38:14 AM »
Yeah it is a pile of money for what it is. As I said Mark, you really did do an awesome job with the boost gauge. Can't wait to see what comes out of the lab next.    :thumbs:

Here's the one you saw on Motorweek.

http://www.curb-alert.com/
« Last Edit: June 03, 2012, 10:41:49 AM by Sly Bob »
Just trying to do my part...

Mods: Lose the chicklets, VentureShield, Dual horns, AfterShock spoiler, Weathershield cover, Lil Chromies, Red calipers with black Solstice stickers, Opel GT antenna and Solo GXP-RCD exhaust with a Solo hi-flow cat!

Offline LiquidPT

  • Premium Member
  • Master Tech
  • *
  • Posts: 698
  • Karma: +0/-1
  • TechHead
    • LiquidPT's website
Re: Solstice Custom Boost Gauge - show and tell
« Reply #19 on: June 03, 2012, 01:17:02 PM »
Automatic up/down windows with remote. Was working on it last summer but stalled out
LiquidPT aka Matt
driving Black Sun
2009 Mysterious GXP Coupe #100

Offline TomatoSoup

  • Premium Member
  • Gearhead
  • *
  • Posts: 3381
  • Karma: +19/-13
Re: Solstice Custom Boost Gauge - show and tell
« Reply #20 on: June 03, 2012, 03:44:28 PM »
Ohhhhh... right!  I'd forgotten about that!
"That is my theory, it is mine, and belongs to me and I own it, and what it is too." (Monty Python)

Offline 2kwk4u

  • not really THAT quick
  • Premium Member
  • Gearhead
  • *
  • Posts: 1466
  • Karma: +8/-4
    • '06 Solstice bits and pieces photo gallery
Re: Solstice Custom Boost Gauge - show and tell
« Reply #21 on: June 03, 2012, 04:56:16 PM »
 :cheers: :award:

That's awesome, Mark!  Might hit you up for the code, etc when I'm back stateside in a couple years...

Offline ihawk95

  • Premium Member
  • Gearhead
  • *
  • Posts: 3087
  • Karma: +14/-28
Re: Solstice Custom Boost Gauge - show and tell
« Reply #22 on: June 03, 2012, 07:27:21 PM »
This is really impressive!  Awesome job!!!!

Curb feeler would be pretty cool also!  I could definitely use one.  One curb rash and that was enough.  I stop way short now...partly because I am short and can't see and partly because I don't want to even risk getting near a curb.  Especially since the car is lower.

Offline Graywolf

  • Master Tech
  • ***
  • Posts: 425
  • Karma: +0/-4
Re: Solstice Custom Boost Gauge - show and tell
« Reply #23 on: June 03, 2012, 08:27:10 PM »
Impressive work and it looks really cool!
Bates cylinder sleeves/oil pump,Carillo Rods,Wiseco pistons,Ferrea valves/springs,CNC Race Ported head,Neutral balance shafts,CustomATI Damper,ZOK suspension,Custom Roll Bar and Wind Splitter by Chassis Concepts,6 pt Schroth harness,Extreme Dimension nose,Fidenza Flywheel/Spec3+ clutch,OZ ultrleggra wheels,Hoosier A6/R6 tires,Norms Fiberglass side vented fedders,side skirts and rear race bumper/fascia

Offline sirmeili

  • Master Tech
  • ***
  • Posts: 162
  • Karma: +0/-0
Re: Solstice Custom Boost Gauge - show and tell
« Reply #24 on: June 04, 2012, 12:45:12 AM »
TS,

I'm still thinking you should do another one just to make sure it was skill and not luck.........BTW, I'll go ahead and be brave and let you do it to mine :D LOL