Notices
MEGAsquirt A place to collectively sort out this megasquirt gizmo

scangauge type display?

Thread Tools
 
Search this Thread
 
Old Mar 11, 2011 | 03:27 AM
  #41  
richyvrlimited's Avatar
Elite Member
iTrader: (1)
 
Joined: Jun 2006
Posts: 2,642
Total Cats: 42
From: Warrington/Birmingham
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.
Old Mar 11, 2011 | 01:57 PM
  #42  
240_to_miata's Avatar
Elite Member
iTrader: (2)
 
Joined: May 2007
Posts: 2,617
Total Cats: 16
From: Cromwell, Connecticut
Default

I need to upgrade to MS-2 damn it. lol
Old Mar 21, 2011 | 07:20 PM
  #43  
240_to_miata's Avatar
Elite Member
iTrader: (2)
 
Joined: May 2007
Posts: 2,617
Total Cats: 16
From: Cromwell, Connecticut
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?
Old Mar 21, 2011 | 11:31 PM
  #44  
ianferrell's Avatar
Senior Member
 
Joined: Aug 2010
Posts: 613
Total Cats: 3
From: Maumelle, AR
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.
Old Mar 22, 2011 | 11:31 AM
  #45  
FieldEffectDave's Avatar
Newb
 
Joined: 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.
Old Mar 22, 2011 | 11:34 AM
  #46  
240_to_miata's Avatar
Elite Member
iTrader: (2)
 
Joined: May 2007
Posts: 2,617
Total Cats: 16
From: Cromwell, Connecticut
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
Old Mar 24, 2011 | 04:41 PM
  #47  
sdlsaginaw's Avatar
Newb
 
Joined: 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.
Old Mar 25, 2011 | 07:05 PM
  #48  
FieldEffectDave's Avatar
Newb
 
Joined: 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.
Old Mar 25, 2011 | 07:28 PM
  #49  
sdlsaginaw's Avatar
Newb
 
Joined: 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)
Old Mar 25, 2011 | 08:13 PM
  #50  
FieldEffectDave's Avatar
Newb
 
Joined: 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.
Old Mar 25, 2011 | 08:16 PM
  #51  
240_to_miata's Avatar
Elite Member
iTrader: (2)
 
Joined: May 2007
Posts: 2,617
Total Cats: 16
From: Cromwell, Connecticut
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.
Old Mar 25, 2011 | 09:47 PM
  #52  
Vashthestampede's Avatar
Elite Member
iTrader: (17)
 
Joined: Feb 2007
Posts: 4,564
Total Cats: 58
From: Danbury, CT
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.
Old Mar 25, 2011 | 09:49 PM
  #53  
240_to_miata's Avatar
Elite Member
iTrader: (2)
 
Joined: May 2007
Posts: 2,617
Total Cats: 16
From: Cromwell, Connecticut
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.
Old Mar 25, 2011 | 11:00 PM
  #54  
kenzo42's Avatar
Elite Member
iTrader: (6)
 
Joined: Sep 2007
Posts: 2,017
Total Cats: 13
From: CA
Default

This is sweet. Please post info/pics/whatevs when finished.
Old Mar 28, 2011 | 11:06 AM
  #55  
sdlsaginaw's Avatar
Newb
 
Joined: 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.
Old Mar 28, 2011 | 08:08 PM
  #56  
240_to_miata's Avatar
Elite Member
iTrader: (2)
 
Joined: May 2007
Posts: 2,617
Total Cats: 16
From: Cromwell, Connecticut
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.
Old Apr 3, 2011 | 12:04 AM
  #57  
sdlsaginaw's Avatar
Newb
 
Joined: 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?
Old Apr 3, 2011 | 09:01 AM
  #58  
FieldEffectDave's Avatar
Newb
 
Joined: 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.
Old Apr 3, 2011 | 09:22 AM
  #59  
miatauser884's Avatar
Elite Member
iTrader: (11)
 
Joined: Feb 2009
Posts: 2,959
Total Cats: 11
Default

I am interested in one of these. subscribed
Old Apr 6, 2011 | 06:28 PM
  #60  
elesjuan's Avatar
Elite Member
iTrader: (11)
 
Joined: Jun 2007
Posts: 5,360
Total Cats: 43
From: Overland Park, Kansas
Default

+1
Reply
Leave a poscat -1 Leave a negcat



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