2N222 for spare ports

The forum to discuss:
- V2.2, V3 assembly,
- V2.2, V3 troubleshooting, and
- Connection troubleshooting
Forum rules
Read the manual to see if your question is answered there before posting. Many users will not reply if the answer is already available in the manual.

If your question is about troubleshooting, configuration, or tuning, you MUST include your processor type (MS-I or MS-II) and code version in your post. If your question is about PCB assembly or modifications, you must also include the main board version number (1.01, 2.2 or 3.0).

If you have questions about MS1/Extra or MS2/Extra code configuration or tuning, please post them at www.msextra.com Such questions posted here will be moved to: a temporary MSextra sub-forum, where they will be removed after 7 days

The full forum rules are here: Forum Rules, be sure to read them all regularly.
Post Reply
Bender142
MegaSquirt Newbie
Posts: 26
Joined: Fri Jun 06, 2008 5:47 pm

2N222 for spare ports

Post by Bender142 »

I'm planning on using two of the spare ports to drive a (relay controlled) electric cooling fan and a (relay controlled) TCC.

Does anyone have any experience with using 2N222 transistors to drive devices on the spare port circuits (V3 board).

Thanks
roarin_mouse
MegaSquirt Newbie
Posts: 9
Joined: Fri May 30, 2008 8:31 am
Location: Orlando, FL, GOOD OLE U.S.A.

Re: 2N222 for spare ports

Post by roarin_mouse »

I would not use it. It would better to use a darlington transistor or a MOSFET for the following reasons: In order for the transistor to stay cool, it must be switched from off to saturated. Although the small signal gain of the transistor looks fine, when you want to saturate it you should have a base cuurent of about 1/20th to 1/10th of the load current. With that said, assume you have a relay that draws 300mA. That means that the microcontroller must push 15 to 30 mA through the base-emitter junction. That's a lot of currrent! A darlington is basically two transistors so the current gain is much higher. The MOSFET is also a god choice because it uses zero current (steady state). Both types of devices are readily available and in the same TO-92 package.
66fb

Re: 2N222 for spare ports

Post by 66fb »

Bender,

You mean 2N2222 I think.

Short answer: No, but here is a link to a "howto"
http://www.DIYAutoTune.com/tech_article ... _Output_v3

If you are not already using the GM style IAC outputs for something they will drive a 1 amp load, IIRC. I'm using one to pick a fan relay and works great.
Bender142
MegaSquirt Newbie
Posts: 26
Joined: Fri Jun 06, 2008 5:47 pm

Re: 2N222 for spare ports

Post by Bender142 »

Good input, thanks for both previous responses.

BTW - I'm using the GM IAC so that's not an option. Looks like the MOSFET device is a better way to go.

Thanks
Bender142
MegaSquirt Newbie
Posts: 26
Joined: Fri Jun 06, 2008 5:47 pm

Re: 2N222 for spare ports

Post by Bender142 »

I just checked out the link that 66fb sent, thanks....

I'm using the FIDLE on the relay board to provide a 5v ref for my 7-pin HEI ignition. My bad for not including my set up.

So now that the horse is loose, I'll close the gate....here's my set up: MS-II V3 w/relay board, 2.88 code, GM TPI hardware and sensors w/IAC.

Cheers
91gmck5
MegaSquirt Newbie
Posts: 3
Joined: Fri Feb 17, 2012 8:01 pm

Re: 2N222 for spare ports

Post by 91gmck5 »

Can the 2n2222 transistors for the LEDs simple be switched with darlingtons or do the resistors need changed also? I want to be able to run both the LED and an external relay.
91gmck5
MegaSquirt Newbie
Posts: 3
Joined: Fri Feb 17, 2012 8:01 pm

Re: 2N222 for spare ports

Post by 91gmck5 »

Forgot to add that its a MSII v3. Also, I am wanting to replace the 2N3904 with a transistor better than the 2N2222.
Thanks -Matt
kjones6039
Master Squirter
Posts: 618
Joined: Sat Jul 22, 2006 7:02 pm
Location: Eureka, Nevada USA
Contact:

Re: 2N222 for spare ports

Post by kjones6039 »

FWIW..........

The various manuals often suggest using the 2N2222A to drive common automotive relays. I have used them extensively without any failures. (ie. coolant fan, tcc, etc.)

Just my experience tho..............

Ken
1979 Corvette - 383 CID SBC w/ Holley Pro-Jection 900 CFM TBI, 4-85 lb lo-z injectors & Walbro 255 pump
MS2 v3 w/ms2extra 3.4.0 Release
36-1, Delphi LS2/7 coils in wasted spark, driven by v2.0 logic board from JBPerformance
Spartan Lambda Sensor from 14point7
trakkies
Super Squirter
Posts: 1162
Joined: Tue Dec 30, 2008 3:06 am
Location: SW London, UK

Re: 2N222 for spare ports

Post by trakkies »

91gmck5 wrote:Forgot to add that its a MSII v3. Also, I am wanting to replace the 2N3904 with a transistor better than the 2N2222.
Thanks -Matt
A 2N2222 can handle 800mA. That's way more than enough for a standard 30 amp relay. And an LED. Signal LEDs take no more than 30 mA or so. The relay about 200mA. But do wire a diode across the relay coil to prevent the back EMF when the relay is switched off damaging the transistor. The cathode goes to the positive side of the coil.
Dave P, London UK.
Rover V-8
MSII V3
EDIS
Tech Edge Wideband
91gmck5
MegaSquirt Newbie
Posts: 3
Joined: Fri Feb 17, 2012 8:01 pm

Re: 2N222 for spare ports

Post by 91gmck5 »

Thanks for the help. Will probably end up staying with the 2N2222 then.
Post Reply