Megasquirt Forum Area is for discussing Megasquirt EMS

Megasquirt E Fan with MS2, need help

Thread Tools
 
Search this Thread
 
Old 07-02-18, 03:33 PM
  #1  
Junior Member
Thread Starter
 
xantusak's Avatar
 
Join Date: May 2018
Location: Co
Posts: 14
Received 0 Likes on 0 Posts
E Fan with MS2, need help

Hi,
I am in a process of setting up my 12A to run on the MS. i got the MS2 extra, using the zeal daughterboard and got it all setup according to DIYautotune's instructions, using FC ignition parts. Everything seems to work, as far as I can tell from bench testing using all the sensors, injectors and ignition stuff. Now, I would like to add an E fan control, there are extra few driver channels left on the Zeal board, I am just confused how to set up a processor output to control it. I was looking through Aaron Cake's setup, he is using for this some connections that are used in the zeal/diyautotune setup for the ignition. He is using JS0 to trigger the transistor to connected to IAC1A. So, I already used IAC1A for the ignition stuff, but I could use the JS0. I was hoping to be able to do that through another pin, say SPR3 or something. But if I attempt to setup the output channel in tuner studio under boost/advanced, I don't see any open options to use. The options that are there are FIDLE, LEDs 14,16, 15, pt7-iac1, pt6-iac2, js11(pa0), these are all already used. Surely this computer has to have a more output channels to drive things such as fan, boost control, nitrous, whatever. Why do't I see more options listed?
Also, where would I find more info on what these various points on the board connect and what do the acronyms mean-like IAC1, js0, spr3 etc?
Thanks for any help!
Old 07-04-18, 10:49 AM
  #2  
Rotary Freak

iTrader: (1)
 
toplessFC3Sman's Avatar
 
Join Date: May 2006
Location: Ann Arbor, MI
Posts: 2,169
Likes: 0
Received 5 Likes on 5 Posts
The SPR 1-4 pins are not connected to the MS2 processor, they are just spare unused pins on the DB37 that go to the appropriately marked holes on the main circuitboard (the large V3.0 or 3.7 board, near the DB37 connector). To actually use these with one of the processor's output pins, like JS0, you need to at the very least solder a jumper wire from the JS0 hole on the backside of the board under the processor over to the SPR3 hole. The processor's outputs are only powerful enough to drive a small transistor or LED (generally 25-ish mA current limit), so depending on what you're doing with that output you'll need to make a transistor circuit or add pull-up resistors etc to that wire. For an e-Fan, you'll most likely need a transistor setup to switch a more powerful relay, since most relays capable of switching the 10-30 amps that an e-fan will pull take around 200 mA to switch - therefore you need a transistor that will switch with the processor max current that can handle the higher current of the relay. I recently went through a bunch of this with my e-Fan installation. I wasn't switching with the MS2, but was using a different microprocessor that requires the same sort of setup.

Microprocessor Side - just look at the output circuit. The circuit diagram is in the second post and some considerations for the output circuit is in the top of the third post.
e-Fan Side - this also includes the water-to-air intercooler, but I discuss the e-Fan wiring too since I was doing it all at once. The end of the second post discusses the wiring for the e-Fan and the power-side wiring diagram
Old 07-04-18, 12:50 PM
  #3  
Junior Member
Thread Starter
 
xantusak's Avatar
 
Join Date: May 2018
Location: Co
Posts: 14
Received 0 Likes on 0 Posts
Hey Topless, thanks. I understand the need for a transistor switch to drive a mechanical relay. I have a few of those switching transistor channels available on the zeal board, and I kind of figured out the spr points are only connected to the db37 connector pins. And I did connect the JS0 output to control one of the transistors and the output of that I connected to the spr pin. However, my problem is, that I do not now how to control the JS0 output. In the tuner studio in the programmable on/off outputs under the boost/advanced tab I only see channels that are already used (the ones I listed in my first post). I don't know what I am missing to make additional channels available to use...?
And yes, additional means of accomplishing this are considered, including arduino, haha those things are awesome, but I don't want to have additional hardware/code to deal with when I already have a computer with the capacity to do that...

Last edited by xantusak; 07-04-18 at 01:00 PM.
Old 07-04-18, 04:41 PM
  #4  
Rotary Freak

iTrader: (1)
 
toplessFC3Sman's Avatar
 
Join Date: May 2006
Location: Ann Arbor, MI
Posts: 2,169
Likes: 0
Received 5 Likes on 5 Posts
Ok, good to know, I misread your question then and didn't want to assume you had a familiarity with electronics. I definitely agree, if you have the capacity in the MS to switch that output, that's the way to do it. I was out of I/O in my project, thus the path I took, but if it were possible to do it all with the MS with the other things I have connected, I would have.

Anyhow, the first problem I see is that the JS0 pin IS IAC1A - they just have different names because I guess a common installation uses the stepper-motor idle control where IAC1A, 1B, 2A and 2B are all required. Therefore, JS0 - JS3 (in that order) are given alternate names that align with this. So the first step is that you need to choose a different pin to trigger on. Assuming that you're using the "Programmable On/Off Outputs" in a recent firmware version, LED D14, D15 and D16 are all going to be used by the ignition outputs for the leading and trailing coils. If IAC1A is used too, then that leaves the Fidle, IAC2 (PT6), or JS11 pins to use for the e-Fan

Last edited by toplessFC3Sman; 07-04-18 at 05:49 PM.
Old 07-04-18, 09:24 PM
  #5  
Junior Member
Thread Starter
 
xantusak's Avatar
 
Join Date: May 2018
Location: Co
Posts: 14
Received 0 Likes on 0 Posts
OK so the problem is that all the options you are listing are already occupied on my setup, as suggested by diyautotune's directions, but I think I might be starting to see a light in this)
So, I am already using fidle for idle valve and JS11 for sending a signal to the tach( I am working on FB rx7b using FC ignition-and I think the tach output from the FC trailing coil is half the required frequency for FB tach or something like that- hence the extra output channel is used up for that). My ignition outputs do use the LEDs 14,15, 16. LED 14 output is jumped to ign point on the board, which is pin 36 on db37. Outputs of leds 15 and 16 are jumped to the points IAC2a and IAC2b, but I think they recommended those two points just to make a convenient access to the db37 (pins 29 and 31) I don't think it has to go through these points, because it doesn't really have anything to do with the JS2 and JS3, correct? I could just move these two jumpers to say SPR3 and SPR4 and that will free up the IAC2 programmable output? in which case I would trigger my transistor from JS2 and run the output of that transistor through spr2? does that make sense?
BTW, what is the relationship between the IAC2a and IAC2b? like, why is in programmable outputs list only IAC2 without specifying a or b?
Please let me know if my plan above sounds reasonable and thank you, I appreciate your patience with me on this!
Old 07-04-18, 11:26 PM
  #6  
Rotary Freak

iTrader: (1)
 
toplessFC3Sman's Avatar
 
Join Date: May 2006
Location: Ann Arbor, MI
Posts: 2,169
Likes: 0
Received 5 Likes on 5 Posts
Yea, I think you've got it - the IAC-labeled pins are on the processor, and also on the DB37, but if you're using the DB37 ones to pass a signal through, you aren't necessarily using the processor pins.

I think your plan would make sense if you moved the LED output connections to the SPR 3 & 4 DB37 pins. My understanding of the IAC outputs is that there are really only 2 basic coded processor pins, IAC1 and IAC2. IAC1a is the same as IAC1, and IAC1b is the opposite, so it uses simple "not" logic external to the core of the code & processor (but still contained on the microchip that the processor is on, thus the distinct pins) to go low when 1a goes high & vice versa. Same for IAC2a and 2b. Therefore, 1b will always be the opposite of 1a and 2b will always be logically != 2a, regardless of whether you're using the idle stepper controller or programmable outputs.
Old 07-05-18, 12:29 AM
  #7  
Junior Member
Thread Starter
 
xantusak's Avatar
 
Join Date: May 2018
Location: Co
Posts: 14
Received 0 Likes on 0 Posts
well, I moved the ignition outputs to the spr pins. ignition still works as far as I can tell from bench testing. But the programmable output does not. I connected to JS2, I don't see any output from it if I turn it on or off, or put the frequency signal using the test feature in the tuner studio, And for that matter I don't see anything on the js10 used for a tach output either. Should these outputs go high (5v) when turned on? Do the outputs fry super easy or am I missing something?

Last edited by xantusak; 07-05-18 at 10:20 AM.
Old 07-05-18, 07:15 PM
  #8  
Rotary Freak

iTrader: (1)
 
toplessFC3Sman's Avatar
 
Join Date: May 2006
Location: Ann Arbor, MI
Posts: 2,169
Likes: 0
Received 5 Likes on 5 Posts
Are you measuring the output at the JS2 or JS10 pad on the main circuit board, at the DB37 connector, or where you expect the output to come out off the Zeal board? I'd work backwards til you're basically at the MS2 daughter-card pins. All of the JS0-11 pin outputs are not normally connected to anything, so you need to run wires from their pads under the MS2 daughtercard to the appropriate DB37 output pin, the same way the LED D14 - D16 outputs needed to be brought to the DB37. Have you done this?
This is for the V3.0 board, but the V3.57 is substantially the same in schematics.
Old 07-05-18, 08:36 PM
  #9  
Junior Member
Thread Starter
 
xantusak's Avatar
 
Join Date: May 2018
Location: Co
Posts: 14
Received 0 Likes on 0 Posts
Yes, I was measuring at the outputs under the CPU board. I jumped wires from there to the inputs of the zeal board. I do have the version 3.0 board btw. I did get an output from the tach channel when I tripped it with the test feature a few days ago. But I have no clue why I got nothing now.
Old 07-05-18, 08:47 PM
  #10  
Junior Member
Thread Starter
 
xantusak's Avatar
 
Join Date: May 2018
Location: Co
Posts: 14
Received 0 Likes on 0 Posts
Is it easy to fry the outputs?? I am going to disconnect from the zeal board and test again to make sure the transistors on the zeal are not fried and shorting the output of the processor??
Old 07-05-18, 10:13 PM
  #11  
Rotary Freak

iTrader: (1)
 
toplessFC3Sman's Avatar
 
Join Date: May 2006
Location: Ann Arbor, MI
Posts: 2,169
Likes: 0
Received 5 Likes on 5 Posts
Yea, thats a good idea, and check to see if there is continuity on those channels with ground, a 5V source on the board, and a 12V source on the zeal board with nothing powered up to make sure some solder didn't bridge across a couple holes or something. I wouldn't assume that they are fried since you really haven't hooked anything up to them that could do so. Since there is internal resistance, you would have needed to hit them with 12V to possibly damage them - a short to ground or 5V shouldn't hurt them.
The following users liked this post:
xantusak (07-05-18)
Old 07-05-18, 10:23 PM
  #12  
Junior Member
Thread Starter
 
xantusak's Avatar
 
Join Date: May 2018
Location: Co
Posts: 14
Received 0 Likes on 0 Posts
ok...I have another question- do I need to bring 12V from s12c to js9 to make these outputs work? Sorry if I am being a PITA, I am trying to plow through tons of instructions, threads, the manual...thank you so much for putting up with me
Old 07-05-18, 11:58 PM
  #13  
Junior Member
Thread Starter
 
xantusak's Avatar
 
Join Date: May 2018
Location: Co
Posts: 14
Received 0 Likes on 0 Posts
I got it figured out!! Nothing was fried.
So, in order for the iac stepper outputs to work, the js9 needs a power jumped to it otherwise js0-js3 are just duds.
As for the tach output, somewhere along the way I had a seizure and started thinking that the tach channel is js10 instead of js11, no clue how Anyway, I learned so much in the process about this board. Thank you so much for assistance!! I owe you a beer!!!!
Old 07-06-18, 08:20 AM
  #14  
Rotary Freak

iTrader: (1)
 
toplessFC3Sman's Avatar
 
Join Date: May 2006
Location: Ann Arbor, MI
Posts: 2,169
Likes: 0
Received 5 Likes on 5 Posts
Oh great, glad you figured it out!
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
afpreppie04
Megasquirt Forum
16
09-24-16 09:57 AM
distr0
Megasquirt Forum
4
06-29-16 07:47 PM
muythaibxr
Megasquirt Forum
0
02-03-09 08:05 PM



Quick Reply: Megasquirt E Fan with MS2, need help



All times are GMT -5. The time now is 01:28 PM.