Toyota GR86, 86, FR-S and Subaru BRZ Forum & Owners Community - FT86CLUB

Toyota GR86, 86, FR-S and Subaru BRZ Forum & Owners Community - FT86CLUB (https://www.ft86club.com/forums/index.php)
-   Electronics | Audio | NAV | Infotainment (https://www.ft86club.com/forums/forumdisplay.php?f=27)
-   -   I built a gauge...it replaces the clock... (https://www.ft86club.com/forums/showthread.php?t=75181)

robot 10-01-2014 03:31 AM

I built a gauge...it replaces the clock...
 
Instructables link with a lot of extra info: http://www.instructables.com/id/Cust...With-OEM-Look/

[ame="https://www.youtube.com/watch?v=JxrBOSxr0Ic&"]BRZ clock replaced by obd ii gauge - YouTube[/ame]

This is the closest to a "finished product" I've come with one of my gauge projects. It takes the place of the OEM clock and shows oil temp, coolant temp, battery voltage, a/f ratio and intake temp. I'll post all the info as an FAQ sort of thing:

1) What did you use to make this?
An arduino, specifically the "Pro Trinket" sold by adafruit (https://www.adafruit.com/products/2000), a UART OBD II board sold by sparkfun (https://www.sparkfun.com/products/9555), wires, and a 128x32 SPI monochrome OLED display. Oh and some solder and more wires, and a couple resistors, and electrical tape.

2) How long did it take?
Less than 9 months for this iteration (The wife is pregnant, I wanted to "finish" before the birth of our next child). My wife would tell you it took longer. I had another gauge project (non-OBDII) that used off the shelf senders and was started and quasi finished about 6 years ago (https://code.google.com/p/robotmeter/).

3) Why OLED?
Because it fit in the space, it is viewable from a lot of angles, an easy to use API for the display was available, I can see it easily with polarized sunglasses (visibility is better than the headunit), low power, etc. Also, I tried to screw with the clock and figure out the multiplexing scheme it uses, but failed...got close...but failed.

4) Why is it ricer blueish/white?
Because that is the only color the display came in. I do want to experiment with placing a tint in front of it to get an amber/red color that matches the other interior lighting. Ideas in this area would be helpful.

5) Will it eat battery with the car off?
It shouldn't. The OBD II board's chip has a cool "sleep" feature that goes to ultra low power draw if it isn't being queried for anything. The board that drives it (the arduino) only powers on when the car is powered on (it's plugged into a usb cig lighter adapter right now).

6) What are your future plans for it?
-Leave it in the car and drive with it for a while.
-Make the warning function work (blink or something when a threshold is met).
-Write a function that is called periodically and checks the non-visible readings for warning thresholds being met and then warning the user.

7) What else could it do?
It can read any CAN or OBD II reading that the BRZ supports. I am probably not going to get into the business of CANbus sniffing (the aforementioned newborn will steal time from such projects), but if people share their CAN sniffing results (like people have for the oil temp) I could possibly include them in this. I also have code from the previously mentioned old project that will let me do accelerometer, oil pressure, oil temperature, boost pressure, air temperatures, etc.

8) Cool, I want one, sell it to me, make me one (NOWNOW MEMEME!). Will you commercialize it?
Maybe. A lot of things would have to be solved.
-Hacking up the stock clock is messy. I'm sure I could get better at it and do it in a reliable way, but it would still be sort of a hack.
-My current solution for getting the buttons to work is at best a temporary hack and would need to be better.
-Packaging the OBD II board and the arduino together would need to be done.
-I'd love to make some mod/beer money on the side with this, I'm just not sure how. All of the code used is open source, all of the hardware used is open source, even my code is open source. So, there is nothing stopping anyone from doing this as a service. There is no real secret sauce here.

Thanks and other links:
-Sparkfun WIG ELM327 library from David Irvine (released under the GNU license). I forked it and added a little too it (https://www.clusterfsck.io/blog/2014...lm327-library/).
-Whoever found the CAN PID for oil temperature, you are a prince among men.
-The adafruit libraries for SPI graphics that make the little icons possible.
-I used the Stino Sublime Text 2 editor to write all of the code. It blows the regular arduino one out of the water.
-The robot head graphic is modified from something given to me (Creative Commons licensed) a while ago for another project. I've lost touch with the guy, but his screen name was "Hands Down" and I met him on iwsti.com .
-My code is here: https://github.com/stirobot/arduinoModularTFTgauges, specifically this file: https://github.com/stirobot/arduinoM...IrvinedLib.ino

powerj2 10-01-2014 03:37 AM

Do this for me? Ill pay.

Guff 10-01-2014 04:27 AM

:O

s0sl0w 10-01-2014 08:55 AM

Very impressive. This should be commercialized. I'd guess a 3d printer and some spare clock faces could go a long way towards prototyping this?

Foobar 10-01-2014 08:58 AM

Nice job! I'd swap my P3Cars vent gauge for this.

Sent from my Nexus 5 using Tapatalk

Gopherboy6956 10-01-2014 10:04 AM

Definitely cool as hell. Put me on the list if you decide to make more and sell them.

100% serious.

post_break 10-01-2014 10:06 AM

It's kinda small. http://i.imgur.com/NYBvDtI.gif

Turbowned 10-01-2014 10:11 AM

Very cool man!

Foobar 10-02-2014 08:26 AM

In addition to the PID's you're monitoring, would it be possible to also capture and display Boost/Vacuum, Ignition Timing, EGT, Throttle Plate Position, Speed, and RPM? I believe these are all available through OBD2.

yomny 10-02-2014 09:15 AM

This is very useful, it is small but i don't think most will need a 3" gauge to quickly check a temp. Very nice, sell please.

robot 10-02-2014 09:38 AM

Quote:

Originally Posted by Foobar (Post 1968817)
In addition to the PID's you're monitoring, would it be possible to also capture and display Boost/Vacuum, Ignition Timing, EGT, Throttle Plate Position, Speed, and RPM? I believe these are all available through OBD2.

boost vac - I think this works, but only shows vac for the brz.
Ignition timing - should work
EGT - not via obd2 and I haven't written code for an off the shelf sender.
Throttle position - works via obd2
Speed and rpm work via obd2,but I'm not sure why anyone would want another display that shows these. I always wonder why people have them on their torque app displays.

shiro 10-02-2014 11:41 AM

I as well am very impressed. I love seeing all the different types of ideas and innovations people come up with. Great job! :)

Foobar 10-02-2014 11:50 AM

Quote:

Originally Posted by robot (Post 1968843)
boost vac - I think this works, but only shows vac for the brz.
Ignition timing - should work
EGT - not via obd2 and I haven't written code for an off the shelf sender.
Throttle position - works via obd2
Speed and rpm work via obd2,but I'm not sure why anyone would want another display that shows these. I always wonder why people have them on their torque app displays.

For those of us that are FI - the Vac reading should go positive in boost.

Speed would be a novelty thing to have - if you can pull in Speed, then it would be a simple logic exercise to create a 0-60 function, assuming you have a timer function.

RPM not really necessary, but might have some other novelty value as well - a user-defined shift light indicator or something, I dunno.

yomny 10-02-2014 12:57 PM

Quote:

Originally Posted by robot (Post 1967204)
BRZ clock replaced by obd ii gauge - YouTube

This is the closest to a "finished product" I've come with one of my gauge projects. It takes the place of the OEM clock and shows oil temp, coolant temp, battery voltage, a/f ratio and intake temp. I'll post all the info as an FAQ sort of thing:

1) What did you use to make this?
An arduino, specifically the "Pro Trinket" sold by adafruit (https://www.adafruit.com/products/2000), a UART OBD II board sold by sparkfun (https://www.sparkfun.com/products/9555), wires, and a 128x32 SPI monochrome OLED display. Oh and some solder and more wires, and a couple resistors, and electrical tape.

2) How long did it take?
Less than 9 months for this iteration (The wife is pregnant, I wanted to "finish" before the birth of our next child). My wife would tell you it took longer. I had another gauge project (non-OBDII) that used off the shelf senders and was started and quasi finished about 6 years ago (https://code.google.com/p/robotmeter/).

3) Why OLED?
Because it fit in the space, it is viewable from a lot of angles, an easy to use API for the display was available, I can see it easily with polarized sunglasses (visibility is better than the headunit), low power, etc. Also, I tried to screw with the clock and figure out the multiplexing scheme it uses, but failed...got close...but failed.

4) Why is it ricer blueish/white?
Because that is the only color the display came in. I do want to experiment with placing a tint in front of it to get an amber/red color that matches the other interior lighting. Ideas in this area would be helpful.

5) Will it eat battery with the car off?
It shouldn't. The OBD II board's chip has a cool "sleep" feature that goes to ultra low power draw if it isn't being queried for anything. The board that drives it (the arduino) only powers on when the car is powered on (it's plugged into a usb cig lighter adapter right now).

6) What are your future plans for it?
-Leave it in the car and drive with it for a while.
-Make the warning function work (blink or something when a threshold is met).
-Write a function that is called periodically and checks the non-visible readings for warning thresholds being met and then warning the user.

7) What else could it do?
It can read any CAN or OBD II reading that the BRZ supports. I am probably not going to get into the business of CANbus sniffing (the aforementioned newborn will steal time from such projects), but if people share their CAN sniffing results (like people have for the oil temp) I could possibly include them in this. I also have code from the previously mentioned old project that will let me do accelerometer, oil pressure, oil temperature, boost pressure, air temperatures, etc.

8) Cool, I want one, sell it to me, make me one (NOWNOW MEMEME!). Will you commercialize it?
Maybe. A lot of things would have to be solved.
-Hacking up the stock clock is messy. I'm sure I could get better at it and do it in a reliable way, but it would still be sort of a hack.
-My current solution for getting the buttons to work is at best a temporary hack and would need to be better.
-Packaging the OBD II board and the arduino together would need to be done.
-I'd love to make some mod/beer money on the side with this, I'm just not sure how. All of the code used is open source, all of the hardware used is open source, even my code is open source. So, there is nothing stopping anyone from doing this as a service. There is no real secret sauce here.

Thanks and other links:
-Sparkfun WIG ELM327 library from David Irvine (released under the GNU license). I forked it and added a little too it (https://www.clusterfsck.io/blog/2014...lm327-library/).
-Whoever found the CAN PID for oil temperature, you are a prince among men.
-The adafruit libraries for SPI graphics that make the little icons possible.
-I used the Stino Sublime Text 2 editor to write all of the code. It blows the regular arduino one out of the water.
-The robot head graphic is modified from something given to me (Creative Commons licensed) a while ago for another project. I've lost touch with the guy, but his screen name was "Hands Down" and I met him on iwsti.com .
-My code is here: https://github.com/stirobot/arduinoModularTFTgauges, specifically this file: https://github.com/stirobot/arduinoM...IrvinedLib.ino

I know the more the marrier but it may not be that simple. I'll take what you have if you're willing to make it. Its a simple very minimalist way of keeping an eye on temps specially oil and water for those who run their cars. I know all the other stuff is great but maybe a gauge would be better suited for those 0-60, boost vacuum...


All times are GMT -4. The time now is 09:09 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
User Alert System provided by Advanced User Tagging v3.3.0 (Lite) - vBulletin Mods & Addons Copyright © 2026 DragonByte Technologies Ltd.


Garage vBulletin Plugins by Drive Thru Online, Inc.