Arduino Forum

Using Arduino => General Electronics => Topic started by: superzaffo on Oct 13, 2012, 11:30 am

Title: Transistor Darlington PNP
Post by: superzaffo on Oct 13, 2012, 11:30 am
Hi I want to make a test with a Transistor Darlington PNP TIP137.
If connect the C pin on 12v, the E pin to red cable on the fan and the B pin to ground... what happens ?
Naturaly the black cable, connect to the ground.

Thank you

I Know.. is stupid question  :smiley-roll-blue:
Title: Re: Transistor Darlington PNP
Post by: dhenry on Oct 13, 2012, 01:44 pm
Quote
what happens ?


A pop, followed by some smoke.
Title: Re: Transistor Darlington PNP
Post by: MarkT on Oct 13, 2012, 01:49 pm
That puts 12V the wrong way round between collector and base, short-circuiting the power supply.

_emitter_ to +12V, collector to load, base via a 10k resistor to 0V might fare a lot better ;)
Title: Re: Transistor Darlington PNP
Post by: superzaffo on Oct 13, 2012, 03:03 pm
Ok perfect... now i need to do this..
control the pc fan with the positive cable. Need to turn on and off.
I have tried with TIP137 and transistor or with TIP132 and 6n135 but all my test make the negative conclusion.
Not working both solution...
Please help me. What can I do for controll the fan with positive side ? Only with this system I can read the tachio of the fan... otherwise in the yellow cable there is 10V and damage arduino.

Thank you 
Title: Re: Transistor Darlington PNP
Post by: MarkT on Oct 13, 2012, 03:44 pm
I said:

Quote
_emitter_ to +12V, collector to load, base via a 10k resistor to 0V might fare a lot better


To control the base from an Arduino pin you also need an NPN transistor to level-shift to drive the base resistor of the TIP137.  Remember Arduino pins must not ever go above 5V.
Title: Re: Transistor Darlington PNP
Post by: dhenry on Oct 13, 2012, 03:55 pm
Quote
What can I do for controll the fan with positive side ?


You need a highside switch. Given that the fans are at 12v, you will need a level shifter (a npn for example). A logic '1' turns on the npn, which in turn turns on the pnp thus your fan.
Title: Re: Transistor Darlington PNP
Post by: runaway_pancake on Oct 13, 2012, 05:18 pm
http://incredulist.blogspot.com/2012/10/high-side-switching.html
Title: Re: Transistor Darlington PNP
Post by: pbrouwer on Oct 14, 2012, 05:30 pm
The tachio on a pc-fan is an open collector output. You can connect it to an input pin on the arduino using a pull-up resistor (to 5 volt) or use the internal pull-up resistor, even if the fan is running off 12 V. There is no need to use high side switching. You can attach the fan to 12 V then via the darlington to ground. If you use PWM to control the speed of the fan, the tachio output can be a bit noisy, you may need some filtering / debouncing.
Title: Re: Transistor Darlington PNP
Post by: superzaffo on Oct 15, 2012, 12:35 am
Thank's to all...
PBROUWER: Can you explain this better ? "If you use PWM to control the speed of the fan, the tachio output can be a bit noisy, you may need some filtering / debouncing."
I Have resolved theproblem with a 4n35 optoisolator and a TIP137 PNP.
If you break the negative, on the tachio cable ther is a 10V and is dangerous for the aurdiono's pin.

Title: Re: Transistor Darlington PNP
Post by: pbrouwer on Oct 19, 2012, 07:32 pm

Thank's to all...
PBROUWER: Can you explain this better ? "If you use PWM to control the speed of the fan, the tachio output can be a bit noisy, you may need some filtering / debouncing."
I Have resolved theproblem with a 4n35 optoisolator and a TIP137 PNP.
If you break the negative, on the tachio cable ther is a 10V and is dangerous for the aurdiono's pin.




Nevermind, I got confused with a four pin fan (has a seperate PWM pin), and you are using a three pin fan. If you use high side switching you should be fine, it keeps the tacho sensor's ground pin tied to ground.