07-02-2008, 11:39 AM
|
#51 (permalink)
|
|
EcoModding Lurker
Join Date: Jun 2008
Location: USA
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
cool, i pm'd you my email. I also think I have the read input figured out! the arduino has a pulsein() function that returns how many microseconds a digital pin is held high for. I'm storing these times in an array, which I'm then converting those times to binary values, and then converting to hex, at which point I pull the necessary bytes for the calculations, lol, lots of conversions going on. I'm just hoping the poor little arduino will be able to take it without tanking on me. I really need to get a serial adapter for my laptop so I don't have to take it inside everytime I make a code change.
UPDATE: I got everything narrowed down, logic looks good and it compiles cleanly now after several modifications! I'm going to send it to the board tomorrow and test it in the car. I'm not exactly confident with my method, and I think it'll take a LOT of serial console debugging, but I kinda just want to see how the arduino handles it. I'll check it into the repository when I'm more confident with it.
Last edited by n8thegr8; 07-04-2008 at 01:02 AM..
|
|
|
|
07-07-2008, 09:43 AM
|
#52 (permalink)
|
|
OBDuino coder
Join Date: Jun 2008
Location: Montréal, QC
Posts: 205
Thanks: 3
Thanked 10 Times in 8 Posts
|
Good news for the MC33290 sample!
July 5th it was picked up at YUEN LONG HK then went to ANCHORAGE, AK.
July 6th it was in MEMPHIS, TN.
July 7th it is in MIRABEL, PQ.
I should have it today
EDIT: I got it!
__________________
Last edited by Magister; 07-07-2008 at 12:47 PM..
|
|
|
|
07-07-2008, 10:58 AM
|
#53 (permalink)
|
|
EcoModding Lurker
Join Date: Jun 2008
Location: ohio
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
|
My MC33290 was also shipped and I am expecting it by Tuesday
|
|
|
|
07-08-2008, 08:49 AM
|
#54 (permalink)
|
|
OBDuino coder
Join Date: Jun 2008
Location: Montréal, QC
Posts: 205
Thanks: 3
Thanked 10 Times in 8 Posts
|
I received everything, the freeduino kit, LCD screen, MC33290 (damn this chip is small!).
Now I have to solder everything (and find a 2N3906 (NTE159) to control the brightness).
__________________
|
|
|
|
07-08-2008, 09:19 AM
|
#55 (permalink)
|
|
EcoModding Lurker
Join Date: Jun 2008
Location: USA
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
you don't really need a specific pot to control brightness, I just ripped the volume control out of a piece o' crap headphone cable I had lying around to use with my lcd, and yeah, that chip is damn small, lol. I think I'm going to actually give up being so cheap and go buy a serial>usb adapter from radioshack tonight, so I can continue working on it.
|
|
|
|
07-08-2008, 09:24 AM
|
#56 (permalink)
|
|
needs more cowbell
Join Date: Feb 2008
Location: ÿ
Posts: 5,032
Thanks: 156
Thanked 259 Times in 203 Posts
|
Not a pot, a transistor (2n3906) so the atmega can control the backlight without frying a pin. It turns off the backlight after x minutes of inactivity and turns it back on when activity resumes.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
|
|
|
|
07-08-2008, 10:55 AM
|
#57 (permalink)
|
|
EcoModding Lurker
Join Date: May 2008
Location: St. Louis
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
|
I ordered another MCZ33290EF (I had one before, then pitched it when cleaning some things up and trying to use the ELM323) I got free priority shipping so, I think I will get it pretty quick.
__________________
|
|
|
|
07-08-2008, 12:00 PM
|
#58 (permalink)
|
|
EcoModding Lurker
Join Date: Jun 2008
Location: USA
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
Quote:
Originally Posted by dcb
Not a pot, a transistor (2n3906) so the atmega can control the backlight without frying a pin. It turns off the backlight after x minutes of inactivity and turns it back on when activity resumes.
|
OHHHH duh....I was thinking of contrast, not brightness, lol. I just have the backlight on mine hooked up to the 5v supply pin off the regulator, as it's kinda hard to see much with the backlight turned off (blue back with white letters), my bad, lol.
|
|
|
|
07-08-2008, 02:34 PM
|
#59 (permalink)
|
|
EcoModding Lurker
Join Date: Jun 2008
Location: ohio
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
|
Finally got my MCZ33290EF but for some reason the code will not compile to my arduino with the arduino ide. Here is what it says:
21: error: LCD4Bit.h: No such file or directory In function 'void get_vss()':
In function 'void get_rpm()':
In function 'void get_load()':
In function 'void get_ect()':
In function 'void get_maf()':
In function 'void get_cons()':
In function 'void get_dist()':
In function 'void setup()':
In function 'void loop()':
Last edited by tom43571; 07-08-2008 at 02:41 PM..
|
|
|
|
07-08-2008, 02:45 PM
|
#60 (permalink)
|
|
OBDuino coder
Join Date: Jun 2008
Location: Montréal, QC
Posts: 205
Thanks: 3
Thanked 10 Times in 8 Posts
|
You have to install the LCD 4 bit library
Arduino playground - LCD4BitLibrary
in your hardware\libraries\LCD4Bit folder
__________________
|
|
|
|
|