Megasquirt Forum Area is for discussing Megasquirt EMS

Megasquirt cooling fan

Thread Tools
 
Search this Thread
 
Old Mar 28, 2006 | 11:56 PM
  #1  
West-se's Avatar
Thread Starter
bcrotary.com
Tenured Member 10 Years
 
Joined: Apr 2005
Posts: 274
Likes: 0
From: Vancouver
cooling fan

I've been trying to get my electric fan to work by using JS0 and a relay but Im having no luck. I got it connected like so,

MS1 v3.0 msns-e 029i

JS0 --> 85
12V -->30,86
Fan+ --> 87
Fan- --> chassis ground.

I've also added a diode as per the diagram at msns-e site



When I powerr up my ms, my LED's are dim and nothing works, I cannot connect to the MS via MT. But if I disconnect JS0 and power cycle its fine. If I remove JS0 from 85 on the relay and ground 85 the fan turns on.
Reply
Old Mar 29, 2006 | 06:54 AM
  #2  
pmrobert's Avatar
Senior Member
Tenured Member 15 Years
 
Joined: May 2002
Posts: 386
Likes: 0
From: FL
JS0 is a direct connection to a processor pin, it can only source/sink about 10 ma. This is enough to drive a transistor which will then be able to drive the relay. The 2n2222a transistorcircuit that is shown in your message is what you want - JS0 would connect to where it says "X2,X4,etc". The 1K resistor is very important. Where it says "X11,X12.." is what you would ground your relay with. Please don't try to drive your relay (or anything other than a logic level high impedance device!) directly with JS0, it's easy to ruin the output ports in the processor by attempting such things. The reversed diode across the relay is very important too - when the relay is turned off (ungrounded) the energy in it's collapsing magnetic field has to go somewhere; that diode will conduct when that happens and keep the transistor from getting hit with that potentially destructive inductive kick.

-Mike

Last edited by pmrobert; Mar 29, 2006 at 06:56 AM.
Reply
Old Mar 29, 2006 | 08:55 AM
  #3  
West-se's Avatar
Thread Starter
bcrotary.com
Tenured Member 10 Years
 
Joined: Apr 2005
Posts: 274
Likes: 0
From: Vancouver
That is the relay driver schematic for the v2.2 is there any difference for the v3.0 ? There is no X2,X4 on the V3 as far as I can see.
Reply
Old Mar 29, 2006 | 09:34 AM
  #4  
pmrobert's Avatar
Senior Member
Tenured Member 15 Years
 
Joined: May 2002
Posts: 386
Likes: 0
From: FL
My apologies - I wasn't clear on things. The v3 board's jumpers, pads, etc. are differently named vs 2.2. The goal that needs to be accomplished here is to make a processor pin (JS0 connects to a processor output pin) control a transistor which controls the relay. The processor pins can only provide or ground a very small amount of current - about 10 milliamps. This is plenty to "turn on" a transistor because the transistor has very high impedance on it's control line (the base) so very little current actually flows from the processor pin. The transistor is then used as the equivalent of a solid state switch to actually flow enought current between it's emitter and collector to allow enoungh current to flow through the actual fan relay's coil to close the points/mechanical switch inside the relay that CAN handle lots of current. So, processor pin controls transistor, transistor controls relay. You can see by the attached schematic that JS0 is actually connected to the PTA5 pin of the processor. This stuff can be a little difficult to initially get your head wrapped around but it'll click. If you need any more help understanding this, please ask!

-Mike
Attached Thumbnails cooling fan-v3pcb_1.gif  
Reply
Old Mar 29, 2006 | 10:58 AM
  #5  
West-se's Avatar
Thread Starter
bcrotary.com
Tenured Member 10 Years
 
Joined: Apr 2005
Posts: 274
Likes: 0
From: Vancouver
Thanks, after I read your original post it made more sense, I thought the pad (JS0) could provide enough ground but I understand now, your post was informative as I know understand better on what is actually happening with the diode and transistor.

Sean
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
atticus_jay
Interior / Exterior / Audio
6
Oct 23, 2015 11:16 AM
He's On Toroids
NE RX-7 Forum
48
Oct 19, 2015 08:58 PM




All times are GMT -5. The time now is 09:59 AM.