MEGAsquirt A place to collectively sort out this megasquirt gizmo

scangauge type display?

Thread Tools
 
Search this Thread
 
Old 03-11-2011, 03:27 AM
  #41  
Elite Member
iTrader: (1)
 
richyvrlimited's Avatar
 
Join Date: Jun 2006
Location: Warrington/Birmingham
Posts: 2,642
Total Cats: 42
Default

Originally Posted by JustinHoMi
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  
Old 03-11-2011, 01:57 PM
  #42  
Elite Member
iTrader: (2)
 
240_to_miata's Avatar
 
Join Date: May 2007
Location: Cromwell, Connecticut
Posts: 2,604
Total Cats: 16
Default

I need to upgrade to MS-2 damn it. lol
240_to_miata is offline  
Old 03-21-2011, 07:20 PM
  #43  
Elite Member
iTrader: (2)
 
240_to_miata's Avatar
 
Join Date: May 2007
Location: Cromwell, Connecticut
Posts: 2,604
Total Cats: 16
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  
Old 03-21-2011, 11:31 PM
  #44  
Senior Member
 
ianferrell's Avatar
 
Join Date: Aug 2010
Location: Maumelle, AR
Posts: 613
Total Cats: 3
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  
Old 03-22-2011, 11:31 AM
  #45  
Newb
 
FieldEffectDave's Avatar
 
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  
Old 03-22-2011, 11:34 AM
  #46  
Elite Member
iTrader: (2)
 
240_to_miata's Avatar
 
Join Date: May 2007
Location: Cromwell, Connecticut
Posts: 2,604
Total Cats: 16
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  
Old 03-24-2011, 04:41 PM
  #47  
Newb
 
sdlsaginaw's Avatar
 
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.

Originally Posted by FieldEffectDave
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  
Old 03-25-2011, 07:05 PM
  #48  
Newb
 
FieldEffectDave's Avatar
 
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  
Old 03-25-2011, 07:28 PM
  #49  
Newb
 
sdlsaginaw's Avatar
 
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  
Old 03-25-2011, 08:13 PM
  #50  
Newb
 
FieldEffectDave's Avatar
 
Join Date: Aug 2009
Posts: 35
Total Cats: 0
Default

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  
Old 03-25-2011, 08:16 PM
  #51  
Elite Member
iTrader: (2)
 
240_to_miata's Avatar
 
Join Date: May 2007
Location: Cromwell, Connecticut
Posts: 2,604
Total Cats: 16
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  
Old 03-25-2011, 09:47 PM
  #52  
Antisaint
iTrader: (17)
 
Vashthestampede's Avatar
 
Join Date: Feb 2007
Location: Danbury, CT
Posts: 4,564
Total Cats: 58
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  
Old 03-25-2011, 09:49 PM
  #53  
Elite Member
iTrader: (2)
 
240_to_miata's Avatar
 
Join Date: May 2007
Location: Cromwell, Connecticut
Posts: 2,604
Total Cats: 16
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  
Old 03-25-2011, 11:00 PM
  #54  
Elite Member
iTrader: (6)
 
kenzo42's Avatar
 
Join Date: Sep 2007
Location: CA
Posts: 2,016
Total Cats: 13
Default

This is sweet. Please post info/pics/whatevs when finished.
kenzo42 is offline  
Old 03-28-2011, 11:06 AM
  #55  
Newb
 
sdlsaginaw's Avatar
 
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!)

Originally Posted by FieldEffectDave
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  
Old 03-28-2011, 08:08 PM
  #56  
Elite Member
iTrader: (2)
 
240_to_miata's Avatar
 
Join Date: May 2007
Location: Cromwell, Connecticut
Posts: 2,604
Total Cats: 16
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  
Old 04-03-2011, 12:04 AM
  #57  
Newb
 
sdlsaginaw's Avatar
 
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  
Old 04-03-2011, 09:01 AM
  #58  
Newb
 
FieldEffectDave's Avatar
 
Join Date: Aug 2009
Posts: 35
Total Cats: 0
Default

It lives!!
Awesome!

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

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  
Old 04-03-2011, 09:22 AM
  #59  
Elite Member
iTrader: (11)
 
miatauser884's Avatar
 
Join Date: Feb 2009
Posts: 2,959
Total Cats: 11
Default

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

+1
elesjuan is offline  
Reply
Leave a poscat -1 Leave a negcat


Quick Reply: scangauge type display?



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