PDA

View Full Version : My first DIY gauge



kc427
02-07-2010, 09:18 PM
Just want to share some experience on making my first DIY gauge, and this is used to connect to the Defi Controller, and display the sensors reading. More or less, it will be a clone of the Defi Link Display./drinkswine

What is inside? Basically, it is a simply MCU module. For ease starting, I choose to use the Arduino (http://arduino.cc), which is based on using the ATMEGA MCU, so that I don't need to create the serial port driver as well as the LCD driver of the program. The only thing to do is read data from the serial line, then do the calculation, and then display the reading on the LCD, and keep doing this.

Here is some photo of my device.

The device is based on using the ATMEGA168, you can simple buy one, or make one by yourself. For the prototype, I prefer to make one by myself, so I can modify it easier if needed. Ok, after soldered, it looks like this: (note, there is no serial port component soldered yet)
http://i67.photobucket.com/albums/h286/kcheng8888/MyDefi/IMAG0109.jpg


This is the main board with 20x4 LCD.
http://i67.photobucket.com/albums/h286/kcheng8888/MyDefi/IMAG0111.jpg


Connected the LCD and the main board.
http://i67.photobucket.com/albums/h286/kcheng8888/MyDefi/IMAG0112.jpg


Another view.....
http://i67.photobucket.com/albums/h286/kcheng8888/MyDefi/IMAG0113.jpg


Yet, another view.....
http://i67.photobucket.com/albums/h286/kcheng8888/MyDefi/IMAG0114.jpg


I simply use the pins connector to attach and detach the LCD and the main board, since when flashing the MCU, I need to detach the LCD.
http://i67.photobucket.com/albums/h286/kcheng8888/MyDefi/IMAG0117.jpg

http://i67.photobucket.com/albums/h286/kcheng8888/MyDefi/IMAG0118.jpg


OK, after soldering, and try the first LCD program, to make sure no error when soldering the wires.
http://i67.photobucket.com/albums/h286/kcheng8888/MyDefi/IMAG0121.jpg


Now, design the template of the display, with dummy data.
http://i67.photobucket.com/albums/h286/kcheng8888/MyDefi/IMAG0122.jpg


After flashing the program, it's time to test in the real world. Go to the car, connect it to the Defi Link Display or the gauge, and start testing it.
http://i67.photobucket.com/albums/h286/kcheng8888/MyDefi/IMAG0136.jpg
And right now, I am still improving the program and fixing the bugs.

Also, I upload a simple demo in the youtube: http://www.youtube.com/watch?v=l8I_xSiDc4g (http://www.youtube.com/watch?v=l8I_xSiDc4g)

andyleaves
02-07-2010, 09:38 PM
Looks damm impressive...
Well Done - top stuff

VR4Kaos
02-07-2010, 10:26 PM
This looks the dogs gonads mate

Kryton
02-07-2010, 11:58 PM
I want one! This is awesome + think it would look sweet in place of the clock :)

VR4Kaos
03-07-2010, 10:02 AM
you shouldx knock a few together quite sure you will sell a couple on here to fellow members :chugchug: :mexicanwav

CANDEE
03-07-2010, 12:37 PM
Very interesting....

Helps when you have the defi controller and the sensors. :)

Might be interested in one depending on the cost etc...

kc427
03-07-2010, 01:18 PM
oh, haha..... sorry sorry.... I am not going to make any money, I make this is just for interest, and share this to you all. If anyone is interested, he can make one by himself, or he can find someone who has basic elect knowledge to make it, and I can send the program if needed. :elf:

kc427
03-07-2010, 01:24 PM
I want one! This is awesome + think it would look sweet in place of the clock :)

I thought about it too, but that clock space seems too narrow to put a 4 rows LCD, and if putting a 2 rows LCD, only 4 parameter can be shown, and also, a bit far away to see the LCD:runkest:

Turbo_Steve
03-07-2010, 05:53 PM
Brilliant Achivement - have you learnt much?
Makes me wonder what is actually inside the real Defi Display :)

PaddyB
04-07-2010, 10:17 AM
Great work. How do you get the data - has it got an ADC or does it communicate on some protocol with the Defi stuff.

Turbo_Steve
04-07-2010, 08:53 PM
The Atmega will be programmed to read the Defi-Bus protocol directly.

PaddyB
04-07-2010, 10:27 PM
Is that an open protocol then ?? Or does it require some sniffing ??

kc427
05-07-2010, 02:44 AM
Brilliant Achivement - have you learnt much?
Makes me wonder what is actually inside the real Defi Display :)

Not sure what it is inside the Defi display, but, of course a MCU+OLED. :laugh:

kc427
05-07-2010, 03:01 AM
Great work. How do you get the data - has it got an ADC or does it communicate on some protocol with the Defi stuff.
I don't know whether there is ADC inside Defi Display or not, but I guess no need to use ADC inside.





The Atmega will be programmed to read the Defi-Bus protocol directly.

Yes, you are right. Actually, the Defi-bus protocol is simply serial signals, eg, the RS232 signal on COM port on the PC. I found this signal protocol from a Japanese website. Also, you can use PC software to spy the signal on that serial line. eg:

Defi controller __________________ Gauge
..................................|
..................................|
..................................|_______________ _______ PC (RX of the com port)

So, I use the Atmega to read the data from the serial line, and then decode the data from each block/frame, then convert to actual value, and display on the LCD, and keep repeating this.

kc427
21-12-2012, 05:58 PM
It has been long long time without any update on the project. Nothing special, simply changed the LCD display to an OLED display, and still in sloooow progress. :P

59243592445924559246

and a simple video

http://youtu.be/ytsYFpXs9ps

MarkSanne
21-12-2012, 06:11 PM
Cool!

wintertidenz
22-12-2012, 10:12 AM
Looks really good. I was thinking of making something to display wideband AFR, and other gauge sensor readings, but I haven't even started looking at what to start with.