scangauge type display? - Page 3 - Miata Turbo Forum - Boost cars, acquire cats.

Welcome to Miataturbo.net   Members
 


MEGAsquirt A place to collectively sort out this megasquirt gizmo

Reply
 
 
 
LinkBack Thread Tools
Old 03-11-2011, 04:27 AM   #41
Elite Member
iTrader: (1)
 
Join Date: Jun 2006
Location: Warrington/Birmingham
Posts: 2,658
Total Cats: 39
Default

Quote:
Originally Posted by JustinHoMi View Post
Nice project Dave. I also made a display with an Arduino, so I'm sure that I'll contribute code at some point. BTW, can you do CAN and RS232 comm simultaneously with the MS-II? Edit: I'm sure you can. I look forward to seeing the Arduino code.

JBPerf has a CAN to USB convertor board nearing availability, it's very cool. Should also allow simultaneous use of CAN and RS232 communications.
richyvrlimited is offline   Reply With Quote
Old 03-11-2011, 02:57 PM   #42
Hittin' Boost & Cones
iTrader: (2)
 
240_to_miata's Avatar
 
Join Date: May 2007
Location: Cromwell, Connecticut
Posts: 2,572
Total Cats: 11
Default

I need to upgrade to MS-2 damn it. lol
240_to_miata is offline   Reply With Quote
Old 03-21-2011, 08:20 PM   #43
Hittin' Boost & Cones
iTrader: (2)
 
240_to_miata's Avatar
 
Join Date: May 2007
Location: Cromwell, Connecticut
Posts: 2,572
Total Cats: 11
Default

I was wondering if someone could help me. I got my 5v regulator and was testing it today and it doesnt seem to be regulating voltage. I put 12v on the inlet, grounded it, and it reads 12 on the outlet.

I bought the LM2940T-5.0-ND from digikey
http://www.national.com/ds/LM/LM2940.pdf
When i first tested it I did not have the tab grounded. Did I fry it?
240_to_miata is offline   Reply With Quote
Old 03-22-2011, 12:31 AM   #44
Senior Member
 
Join Date: Aug 2010
Location: Maumelle, AR
Posts: 618
Total Cats: 2
Default

Shouldn't have, if you don't have a circuit you don't have current flow. You could hook one leg up to 500v and if there isn't a path to ground it can't go anywhere. It should show 5v even with no load on it though, so there's a good chance its bad, did you touch the output to 12v while you had 12v on the input? Thats the only way I figure you could hurt it, but even then it might not, depends on how its designed.
ianferrell is offline   Reply With Quote
Old 03-22-2011, 12:31 PM   #45
Newb
 
Join Date: Aug 2009
Posts: 35
Total Cats: 0
Default

Did you have any capacitance on the output when you measured it?

My suggestion would be put it together with the suggested output capacitance, check your connections to the TO220 and measure again.
FieldEffectDave is offline   Reply With Quote
Old 03-22-2011, 12:34 PM   #46
Hittin' Boost & Cones
iTrader: (2)
 
240_to_miata's Avatar
 
Join Date: May 2007
Location: Cromwell, Connecticut
Posts: 2,572
Total Cats: 11
Default

I just simply put 12v and ground to it (12v from mega stimulator). Figured it was better to test it than fry the display. Oh well I'll pick up another 5v reg at radioshack
240_to_miata is offline   Reply With Quote
Old 03-24-2011, 05:41 PM   #47
Newb
 
Join Date: Mar 2011
Posts: 7
Total Cats: 0
Default

Do you recall the values of the 3 resistors you used for the buttons? I might as well try to stick to the same ranges.

Quote:
Originally Posted by FieldEffectDave View Post
Basic Block diagram:



Supporting docs:

Display datasheet, includes overview, pinout, etc...

Low dropout 5V reg

RS232 transceiver (i was very lazy and bought somthing prefabbed, future improvement would be to layout everything on a single board etc...)

Like i said before its worth looking at the 4d website if your interested in the displays, its has a reference for the coding langauge etc...

4D Systems, Research and Development

The whole thing cost less than $100 AUD to make.
sdlsaginaw is offline   Reply With Quote
Old 03-25-2011, 08:05 PM   #48
Newb
 
Join Date: Aug 2009
Posts: 35
Total Cats: 0
Default

When you start digging this is where all the lazyness comes out...

I can't remember the values used but for two switches I'd set it up like this to take advantage of the whole ADC range:



No button pressed = 3.3V
Up button pressed = 3.3V / 2
Down button pressed = 0V

Change the constants in the code to something like:


Code:
#constant SWITCH_1_ADC_LOW 0
#constant SWITCH_1_ADC_HI 26
#constant SWITCH_2_ADC_LOW 102
#constant SWITCH_2_ADC_HI 153
Could probably change the constant names to something more descriptive too :/

Also the code reading the switches is abit **** and could be improved with faster sampling, some debouncing etc...

Running the analogue multiplex over the clock spring was a really bad idea, it was sometimes intermittent at different wheel positions and there is no cleaning current through the spring contact so I think it would get even worse over time.

Would be fine if you gave up having the buttons on the wheel and just dash mounted them.
FieldEffectDave is offline   Reply With Quote
Old 03-25-2011, 08:28 PM   #49
Newb
 
Join Date: Mar 2011
Posts: 7
Total Cats: 0
Default

No problem on the code, it provided a great starting point. I've already rewritten the switch and serial polling stuff. Waiting for more parts to build the display so I can test the code.

I'm using dedicated buttons, so no problems with steering wheels contacts. I'm going to attempt 4 functions from the ADC. Up/Down, "Both" for some future option, and "key off" to safely power down the display (provided it doesn't draw too much in this 0-contrast non-communicating state to just power the unit continuously off the car battery)
sdlsaginaw is offline   Reply With Quote
Old 03-25-2011, 09:13 PM   #50
Newb
 
Join Date: Aug 2009
Posts: 35
Total Cats: 0
Default

Quote:
I've already rewritten the switch and serial polling stuff.
Would you mind posting up your improvements so others can benefit? Might also stimulate some good technical discussion in this thread.

I was going to do a shutdown routine this way:

http://4d.websitetoolbox.com/post?id=5119921

But I think for a regularly driven car the key off load of the blank display would be pretty much negligible. Any method would be better than none, which is what the code does now.
FieldEffectDave is offline   Reply With Quote
Old 03-25-2011, 09:16 PM   #51
Hittin' Boost & Cones
iTrader: (2)
 
240_to_miata's Avatar
 
Join Date: May 2007
Location: Cromwell, Connecticut
Posts: 2,572
Total Cats: 11
Default

I would like to see the shutdown method. I am waiting on a few more parts and then I am going to start bench testing / messing with programs.

I think I may make a ADC switch toggle from gauge display to large numerical display...if the screen has enough room for the program.
240_to_miata is offline   Reply With Quote
Old 03-25-2011, 10:47 PM   #52
Antisaint
iTrader: (17)
 
Vashthestampede's Avatar
 
Join Date: Feb 2007
Location: Danbury, CT
Posts: 4,659
Total Cats: 54
Default

If anyone decides to make a "kit" for this thing I'd be in for one. Unfortunately I don't speak geek so I have no idea how any of it works.

This is awesome though. I have no idea how I missed this thread.
Vashthestampede is offline   Reply With Quote
Old 03-25-2011, 10:49 PM   #53
Hittin' Boost & Cones
iTrader: (2)
 
240_to_miata's Avatar
 
Join Date: May 2007
Location: Cromwell, Connecticut
Posts: 2,572
Total Cats: 11
Default

If you like how mine comes out ill make a few for the local CT guys.

I am fitting it into a single A pillar gauge.
240_to_miata is offline   Reply With Quote
Old 03-26-2011, 12:00 AM   #54
Elite Member
iTrader: (6)
 
Join Date: Sep 2007
Location: CA
Posts: 1,990
Total Cats: 9
Default

This is sweet. Please post info/pics/whatevs when finished.
kenzo42 is offline   Reply With Quote
Old 03-28-2011, 12:06 PM   #55
Newb
 
Join Date: Mar 2011
Posts: 7
Total Cats: 0
Default Of course

Yes, I'll post the code once I'm happy with it (if the parts ever arrive!)

Quote:
Originally Posted by FieldEffectDave View Post
Would you mind posting up your improvements so others can benefit? Might also stimulate some good technical discussion in this thread.

I was going to do a shutdown routine this way:

http://4d.websitetoolbox.com/post?id=5119921

But I think for a regularly driven car the key off load of the blank display would be pretty much negligible. Any method would be better than none, which is what the code does now.
sdlsaginaw is offline   Reply With Quote
Old 03-28-2011, 09:08 PM   #56
Hittin' Boost & Cones
iTrader: (2)
 
240_to_miata's Avatar
 
Join Date: May 2007
Location: Cromwell, Connecticut
Posts: 2,572
Total Cats: 11
Default

Yeah I am still waiting on my programing cable. I forgot to order it originally and I was too cheap to do FEDEX.

I am going down to my parents house tomorrow after work to grab my bread board so i can start building the circuits.
240_to_miata is offline   Reply With Quote
Old 04-03-2011, 01:04 AM   #57
Newb
 
Join Date: Mar 2011
Posts: 7
Total Cats: 0
Default

It lives!! Now I'm trying to understand what the tables mean. Are the temp values in C or F? Where did the table values come from anyway? They don't appear to match the Megaview tables.h file. Is translating to real-world values documented somewhere besides just buried in megasquirt/megaview source code?
sdlsaginaw is offline   Reply With Quote
Old 04-03-2011, 10:01 AM   #58
Newb
 
Join Date: Aug 2009
Posts: 35
Total Cats: 0
Default

Quote:
It lives!!
Awesome!

Quote:
Now I'm trying to understand what the tables mean. Are the temp values in C or F?
degrees C.

Quote:
Where did the table values come from anyway?
I took a couple of measurements ADC vs TempC. Did a curve fit in Excel and copied and pasted the table into the code.

Its standard NA MX5 Air and Coolant temp sensors, with the pullups in the OEM ECU.
FieldEffectDave is offline   Reply With Quote
Old 04-03-2011, 10:22 AM   #59
Elite Member
iTrader: (11)
 
Join Date: Feb 2009
Posts: 2,982
Total Cats: 10
Default

I am interested in one of these. subscribed
miatauser884 is offline   Reply With Quote
Old 04-06-2011, 07:28 PM   #60
Elite Member
iTrader: (11)
 
Join Date: Jun 2007
Location: Overland Park, Kansas
Posts: 5,382
Total Cats: 43
Default

+1
elesjuan is offline   Reply With Quote
 
 
Reply

Related Topics
Thread Thread Starter Forum Replies Last Post
WTT 4.30 Torsen for 3.90 sergmann Miata parts for sale/trade 4 10-01-2015 01:46 AM
Microsoft Edge browser & MT.NET bahurd Front Desk 0 09-21-2015 09:45 AM
Digital display into stock gauge cluster ihiryu General Miata Chat 2 09-17-2015 08:56 AM
mm0105 Will not Power Up slomiata MEGAsquirt 1 09-15-2015 07:28 PM
ME221 Now has Autotune and Long Term Fuel Trim Tables Motorsport-Electronics ECUs and Tuning 0 09-05-2015 09:02 AM


Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



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