Controlling negative voltage with +5 logic

Aug 04, 2006 11 Replies

I have a situation where I have to control a small 24V fan with +5V logic. This would be simple using an N-channel MOSFET. The problem is that the fan must be powered with the -24V supply. Everything uses a common ground.



I have come up with the idea of using an N-channel, connecting the source to -24V, connect the fan to the drain and ground. Then drive the gate through a zener so when the logic output is at 0, the 24V difference isn't enough to cause the zener to breakdown, but when the logic output switches to 1 (+5V), the 29V difference is. I also have a zener across the gate and source so I don't excess Vgs. This setup doesn't seem very robust.



Is there another, simple solution I'm overlooking? No relays please, and I'm trying to avoid opto-isolators.



Can't do ASCII schematics so I'll try to explain: Small p-channel Q1 with source to +5V. N-channel Q2 with source on -24V and drain to fan. Resistor 10K from the drain of Q1 to the gate of Q2. Another 10K from the gate of Q2 to -24V. This makes sure that Q2's Vgs voltage won't exceed 20V which is often the limit but verify the actual data for the part you select. Of course Q2 needs to be big enough for the fan. Q1 could be, for example, a BSS84.

Connect your logic to the gate of Q1. Now the fan will turn on with a logic low and off with logic high. You might need another resistor from Q1's gate to +5V if there is a chance that the logic can become disconnected.

Regards, Joerg http://www.analogconsultants.com

Ahh, that works. I was thinking too hard! Thanks.

(snip)

Why? They are probably going to provide the simplest solution.

Joerg,

You mean something like this:

---------+---------------- +5V | ------||-+ logic in ||-> BSS84 ||-+ | | ---------)--------+-------- Gnd | | | .-. .-. ( F ) | | '-' | |10k | fan '-' | | ||-+ | ||

Hello Petrus,

Thanks. Yes, I'll give it a try but right now I am wrestling with rather intricate filter designs for a uC. It's like trying to fit a size 13 foot into a size 8 shoe. Plus I have to dig out all that university stuff. I aced the exam back then but it's amazing how much you can assign to short term memory as a student. A few years later and it's all gone :-(

Regards, Joerg http://www.analogconsultants.com

Only a poor student assigns core material to short term memory only.

JosephKK Gegen dummheit kampfen die Gotter Selbst, vergebens.   --Schiller

In message , dated Thu,

10 Aug 2006, joseph2k writes

Indeed: core material was used to make non-volatile memory.

OOO - Own Opinions Only. Try www.jmwa.demon.co.uk and www.isce.org.uk 2006 is YMMVI- Your mileage may vary immensely. John Woodgate, J M Woodgate and Associates, Rayleigh, Essex UK

Why not use the N-chanel device as a high side switch, interrupting the ground connection, with the other side of the fan to the -24v? People go to a lot of trouble designing high side voltage translating gate drivers to do this so that they can build H bridges using only N chancel devices... you would seem to have it easyier since your control voltage is already on the high side. But you might need a seried resistor on the gate and then a zener diode to prevent the VGS from getting out of hand if the device is switched partway on. Do you need to PWM it for speed control, or is it enough to just turn it on and off infrequently?

It turns out that if their system is saturated with caffeine then short term memory is all they have. The caffeine suppresses the emotional response necessary for long term internalization. These days the little punks are on caffeine as well as drugs like Ritalin, so you have a lot students, who weren't all that well-endowed intellectually to begin with, coming out of school as complete ignorant idiots. They post here all the time.

And they all vote. )-;

Thanks, Rich

Hello Fred,

For a student without access to any hardware that this stuff could have been run on back then the trick is to know what is core material and what isn't :-)

So, how 'bout cerveza then?

Regards, Joerg http://www.analogconsultants.com

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required