Use dash CEL as a mod warning light with DIYPNP - Miata Turbo Forum - Boost cars, acquire cats.

Welcome to Miataturbo.net   Members
 


MSPNP MSPNP specific Megasquirt related discussion.

Reply
 
 
 
LinkBack Thread Tools
Old 01-24-2013, 04:44 AM   #1
Junior Member
Thread Starter
iTrader: (1)
 
Join Date: May 2011
Location: South Jersey
Posts: 95
Total Cats: 3
Default Use dash CEL as a mod warning light with DIYPNP

Pretty much as it says, I'd like to use the CEL on the Dash as a mode warning light from my diypnp... I was thinking of useing Jean io expander board and setting a bunch of conditions to trigger the CEL to illuminate (battery volts over/under norm), knock, etc...

has anybody else run something like this?
tuckntruck is offline   Reply With Quote
Old 01-24-2013, 05:25 AM   #2
Senior Member
iTrader: (1)
 
Join Date: Jun 2006
Location: Sweden
Posts: 1,391
Total Cats: 58
Default

Reverant have been doing this for years on the MS Labs enhanced MSx
NiklasFalk is offline   Reply With Quote
Old 01-24-2013, 05:31 AM   #3
Junior Member
Thread Starter
iTrader: (1)
 
Join Date: May 2011
Location: South Jersey
Posts: 95
Total Cats: 3
Default

Quote:
Originally Posted by NiklasFalk View Post
Reverant have been doing this for years on the MS Labs enhanced MSx
right, the regular versions of MS have many more input/ouptuts available... the DIYPNP as youre aware, is limited. I'm already using PA0,PE1,and Flex... so i don't have a lot of options. Using Jean's I/O board would make it much, much easier... but I haven't found anybody using that board, with the DIYPNP, and running the CEL ligth option with it..

(I'm also running sequential injection (-2 ports))
tuckntruck is offline   Reply With Quote
Old 01-24-2013, 06:15 AM   #4
Supporting Vendor
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,440
Total Cats: 198
Default

Like NiklasFalk said, I've been doing this for years. The latest CAN-bus enabled version of the Enhanced MS2 has programmable thresholds for many parameters - low RPM, coolant, knock, low/high oil temp, low oil pressure, EGTs.
Reverant is offline   Reply With Quote
Old 01-24-2013, 09:52 AM   #5
Boost Czar
iTrader: (61)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 72,827
Total Cats: 1,783
Default

Quote:
Originally Posted by tuckntruck View Post
Pretty much as it says, I'd like to use the CEL on the Dash as a mode warning light from my diypnp... I was thinking of useing Jean io expander board and setting a bunch of conditions to trigger the CEL to illuminate (battery volts over/under norm), knock, etc...

has anybody else run something like this?

what exactly do you want it to display from? or do you want it to have so many things that can trigger it, when you see it go off you'll just pull your motor and replace to diagnose?
Braineack is offline   Reply With Quote
Old 01-24-2013, 05:24 PM   #6
Junior Member
Thread Starter
iTrader: (1)
 
Join Date: May 2011
Location: South Jersey
Posts: 95
Total Cats: 3
Default

Quote:
Originally Posted by Braineack View Post
what exactly do you want it to display from? or do you want it to have so many things that can trigger it, when you see it go off you'll just pull your motor and replace to diagnose?
I'd like under voltage ( less than 13.2), knock detect (blink), water injection off/ failed. Oil pressure to the warning buzzer, oil tans and dif temp to the light.

Mainly just want to make sure that board is compatible with the diypnp., I've got some other ideas kicking around.. My wife has a hard time with the light weight flywheel/ MT... Be nice to have a "mommy" switch to engage idle up without turning on the AC, I'd like to port the manifold and put water injection in each runner, and run it like a second set of injectors. A lot of this is just tinker work, once I seriously get time again, I'm going different direction with the car.

Last edited by tuckntruck; 01-24-2013 at 06:12 PM.
tuckntruck is offline   Reply With Quote
Old 01-24-2013, 07:11 PM   #7
Elite Member
iTrader: (1)
 
Join Date: Jun 2006
Location: Warrington/Birmingham
Posts: 2,658
Total Cats: 39
Default

The board uses CAN to communicate, the DIYPNP still has the CAN ports, so it's compatible
richyvrlimited is offline   Reply With Quote
Old 01-24-2013, 07:14 PM   #8
Junior Member
Thread Starter
iTrader: (1)
 
Join Date: May 2011
Location: South Jersey
Posts: 95
Total Cats: 3
Default

Quote:
Originally Posted by richyvrlimited View Post
The board uses CAN to communicate, the DIYPNP still has the CAN ports, so it's compatible
Thanks!
tuckntruck is offline   Reply With Quote
Old 01-28-2013, 12:42 PM   #9
Junior Member
 
Join Date: Jul 2005
Location: Hillsborough, NC
Posts: 273
Total Cats: 0
Default

I've been doing this with an arduino pro mini wired to the serial port (internally). It requires programming knowledge though, so it's not the simplest option for most people. It is probably the most flexible though.
JustinHoMi is offline   Reply With Quote
Old 01-28-2013, 12:46 PM   #10
Junior Member
Thread Starter
iTrader: (1)
 
Join Date: May 2011
Location: South Jersey
Posts: 95
Total Cats: 3
Default

Quote:
Originally Posted by JustinHoMi View Post
I've been doing this with an arduino pro mini wired to the serial port. It requires programming knowledge though, so it's not the simplest option for most people. It is probably the most flexible though.
Interesting... Hadn't considered that option...
tuckntruck is offline   Reply With Quote
Old 01-28-2013, 12:54 PM   #11
Junior Member
 
Join Date: Jul 2005
Location: Hillsborough, NC
Posts: 273
Total Cats: 0
Default

This is the board I use. It's tiny, and will easily fit in the case.

https://www.sparkfun.com/products/11113




If you're really lazy you could use a regular serial arduino plugged into the external serial port (although you'd have to make a custom serial cable):

Freeduino Serial v2.0 KIT (Arduino Duemilanove Compatible)

Attached Thumbnails
Use dash CEL as a mod warning light with DIYPNP-09218-01c.jpg   Use dash CEL as a mod warning light with DIYPNP-freeduino_serial_v2_assembled1_l.jpg  
JustinHoMi is offline   Reply With Quote
Old 01-28-2013, 08:17 PM   #12
Junior Member
Thread Starter
iTrader: (1)
 
Join Date: May 2011
Location: South Jersey
Posts: 95
Total Cats: 3
Default

Quote:
Originally Posted by JustinHoMi View Post
This is the board I use. It's tiny, and will easily fit in the case.

https://www.sparkfun.com/products/11113




If you're really lazy you could use a regular serial arduino plugged into the external serial port (although you'd have to make a custom serial cable):

Freeduino Serial v2.0 KIT (Arduino Duemilanove Compatible)

Cool, could use this set up to make it flash a sequence to troubleshoot faults.. If I'm understanding correctly, your just pulling data off the serial connection, so you could still run it to a Bluetooth adapter for tuning/ shadow dash if desired.

Not sure if its too much to ask, but, mind sharing the details of your set up?
tuckntruck is offline   Reply With Quote
Old 01-28-2013, 09:26 PM   #13
Junior Member
 
Join Date: Jul 2005
Location: Hillsborough, NC
Posts: 273
Total Cats: 0
Default

Quote:
Originally Posted by tuckntruck View Post
Cool, could use this set up to make it flash a sequence to troubleshoot faults.. If I'm understanding correctly, your just pulling data off the serial connection, so you could still run it to a Bluetooth adapter for tuning/ shadow dash if desired.

Not sure if its too much to ask, but, mind sharing the details of your set up?
Yeah, you could flash a sequence. The code I wrote emulates the stock CEL behavior exactly (except I only handled a few codes).

I can share details, but only if you're very serious about doing it. I don't want to spend time on this otherwise. I designed it 3 years ago, so it would take some time to put everything together. And it was originally designed for MS-I/Extra, so me (or someone) would have to update the code to get it to work with the MS-II. I've written code to interface w/ MS-II before, I'd just have to put it together.

And yeah, you should be able to use a bluetooth adapter for tuning, etc, but it will disable the arduino while you're using the serial port for other purposes.
JustinHoMi is offline   Reply With Quote
Old 01-28-2013, 10:12 PM   #14
Junior Member
Thread Starter
iTrader: (1)
 
Join Date: May 2011
Location: South Jersey
Posts: 95
Total Cats: 3
Default

I see another sleepless night spent on Google :-) unfortunately, the last programming class I took was ( in the computer world) a long time ago, and I only paid passing attention to these project micro controllers. Mentioning it creaky got the wheels turning though. If you solder it into the board directly, and leave the serial port open, unless I'm way of base, it should still pass the data right? I would just run the outputs through a different connector.

If its a ton of work, don't worry about it, but I'd deg appreciate a starting point. Ordered a board tonight, so hopeful I can start digging into it soon!

Again, thanks for dropping the idea in the thread, looks like a much better solution then what I was planning
tuckntruck is offline   Reply With Quote
Old 01-28-2013, 10:18 PM   #15
Junior Member
 
Join Date: Jul 2005
Location: Hillsborough, NC
Posts: 273
Total Cats: 0
Default

The serial protocol on the megasquirt is 2-way. The controller (arduino, laptop, phone, whatever) sends a command to request data, and then the megasquirt replys with the data. So if you have two controllers plugged in at the same time, they'll interfere with each other. So I just added a small circuit that monitors the voltage on the serial port line, and ran that to an input on the arduino. When the arduino sees the voltage change, then it goes to sleep.

Which board did you get?
JustinHoMi is offline   Reply With Quote
Old 01-28-2013, 10:56 PM   #16
Junior Member
iTrader: (2)
 
Join Date: Oct 2011
Location: Chicago Il
Posts: 111
Total Cats: 2
Default

Fellow Arduino and Megasquirt user (but not together ... yet) I would LOVE to see the code you wrote. Luckily I happen to be MS-1/Extra as well.

If you can remember the schematic you used for the voltage check switching I'd love to see that too, but I'm not sure it would work for me as I was planning on soldering in a BT adapter.
akbloom is online now   Reply With Quote
Old 01-29-2013, 12:30 AM   #17
Junior Member
Thread Starter
iTrader: (1)
 
Join Date: May 2011
Location: South Jersey
Posts: 95
Total Cats: 3
Default

Quote:
Originally Posted by akbloom View Post
Fellow Arduino and Megasquirt user (but not together ... yet) I would LOVE to see the code you wrote. Luckily I happen to be MS-1/Extra as well.

If you can remember the schematic you used for the voltage check switching I'd love to see that too, but I'm not sure it would work for me as I was planning on soldering in a BT adapter.
The more I think about it, no need for the CEL if I'm using shadow dash, or the laptop to tune/log. Its just fire the times that I don't want to bring the tab/laptop. On the diypnp, I was thinking of running a switch in the BT jumper location ( 5v to pin 9) I could simply run power from the switch to the board to shut it down, that way either the chip is powered, or the BT adapter...

I got the mini pro..( @ 19 bucks it's worth a shot) well two of them for now, there is a lot of interesting stuff, the done control board with gyro, GPS, baro/temp data and built in data loigging could be interesting as well.
tuckntruck is offline   Reply With Quote
Old 01-31-2013, 05:04 PM   #18
Junior Member
 
Join Date: Jul 2005
Location: Hillsborough, NC
Posts: 273
Total Cats: 0
Default

I'll gladly share the source code... I just gotta find it

I also made an arduino-powered SD datalogger.
JustinHoMi is offline   Reply With Quote
Old 02-01-2013, 01:48 PM   #19
Junior Member
Thread Starter
iTrader: (1)
 
Join Date: May 2011
Location: South Jersey
Posts: 95
Total Cats: 3
Default

That would be awesome! Very looking forward into digging into this
tuckntruck is offline   Reply With Quote
Old 02-03-2013, 10:38 PM   #20
Junior Member
iTrader: (2)
 
Join Date: Oct 2011
Location: Chicago Il
Posts: 111
Total Cats: 2
Default

Me to. I'm excited to see what you put together. Maybe we can collaborate on something?
akbloom is online now   Reply With Quote
 
 
Reply

Related Topics
Thread Thread Starter Forum Replies Last Post
Project Gemini - Turbo Civic on the Cheap Full_Tilt_Boogie Build Threads 57 07-19-2017 05:11 PM
My solution for Oiltemp and Oilpressure input into Megasuirt (MS3) Zaphod MEGAsquirt 41 01-24-2016 01:25 PM
Time to start learning and play with tuning The Gleas MEGAsquirt 3 10-01-2015 10:30 AM
Leaky Wilwoods mx592 Suspension, Brakes, Drivetrain 1 10-01-2015 01:45 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 05:06 PM.