Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 5th August 2008, 02:06 AM   (permalink)
Default Component for switching 12V supply from 5V

Hi simple question.

I've been hunting around for a component that can switch on and off a 12V supply (for a water valve) from a 5V PIC output. E.g. 0V from PIC causes 0V on the valve, and 5V from PIC causes 12V on the valve.

I have a 12V supply to the circuit and am using a 7805 to reduce the supply down to 5V for the PIC chip. I was using 4 transistors but that only gave me a voltage based on the base - which was not enough i.e. 5 - 0.7 - 0.7 = 3.6V

Thanks,

Craig
richacm is offline  
Old 5th August 2008, 02:45 AM   (permalink)
Default

What about a logic level mosfet on the low side? What current do you need to switch? John
jpanhalt is offline  
Old 5th August 2008, 02:49 AM   (permalink)
Default

OK thanks. I am not too sure what current I need . See attached datasheet, it doesn't contain the current figure. (EDIT: I actually see the power draw is 6VA therefore the 12V valve would draw 0.5A)

http://docs-asia.electrocomponents.c...6b803a09fa.pdf

I was also thinking of using an H-bridge like this:
http://docs-asia.electrocomponents.c...6b8002a678.pdf

What do you think?

Cheers,

Craig

Last edited by richacm; 5th August 2008 at 02:58 AM.
richacm is offline  
Old 5th August 2008, 02:57 AM   (permalink)
Default

The IRLZ24 and 44 have fairly low gate capacitance and might work. Worst case, you may need to use any one of many gate drives that is available. Since it sounds like a fairly infrequent switching, unlike PWM, a slower gate turn on might not be too problematic. John
jpanhalt is offline  
Old 5th August 2008, 03:35 AM   (permalink)
Default

Thanks for that John, the IRLZ24 will work well.

Last edited by richacm; 5th August 2008 at 03:36 AM.
richacm is offline  
Old 5th August 2008, 03:42 PM   (permalink)
Default

How exactly were you using the four transistors? A single darlington or two regular transistors setup as a darlington should easily be able to switch 12 volts at 500mas directly from a pic pin. Mosfet (especially) or transistor regardless make sure you use a flyback diode on the solenoid or a transistor/fet rated for the kickback voltage.
__________________
"Because I be what I be. I would tell you what you want to know if I
could, mum, but I be a cat, and no cat anywhere ever gave anyone a
straight answer, har har."
Sceadwian is offline  
Old 5th August 2008, 09:05 PM   (permalink)
Default

I was using this setup with a different solenoid that required a 0.1A pulse in one direction to turn it on and 0.1A in the other direction to turn it off. Trouble was that the Voltage at the emitter was the base voltage less 0.7V which was only 4.3V so I didn't think I could use the transistors to make a 12V supply.
Attached Images
File Type: gif SolenoidSwitch2.gif (6.3 KB, 14 views)

Last edited by richacm; 5th August 2008 at 09:06 PM.
richacm is offline  
Old 5th August 2008, 10:35 PM   (permalink)
Default

Here is my circuit with the mosfet in it. I have not included any resistors do I need to?

The WTR1 is the 5V supply from the PIC. The J10 is the connection to the water valve which requires 12V @ 0.5A across it.

Would this work?

Thanks,

Craig
Attached Images
File Type: gif ValveSwitch.gif (2.6 KB, 9 views)
richacm is offline  
Old 5th August 2008, 10:57 PM   (permalink)
Default

No, it will probably not work.

Switch the positions of the mosfet and solenoid. Have 12V to solenoid, solenoid to mosfet drain, mosfet source to ground. That's what I meant by "low-side." You may need a current limit resistor on the gate (maybe 200 ohm or smaller). Also, with as low a current as you need for the solenoid, you might consider other mosfets with lower gate charges. But, the one you mention will probably work too.

John
jpanhalt is offline  
Old 6th August 2008, 12:21 AM   (permalink)
Default

OK thanks for the pointers. Do you mean like this?

Craig
Attached Images
File Type: gif ValveSwitch2.gif (3.0 KB, 9 views)
richacm is offline  
Old 6th August 2008, 12:32 AM   (permalink)
Default

Yes. You may have to play with the gate resistor. Usually, gate resistors are much smaller or non-existent. In this case, its main purpose is to limit the current from the MCU.

John
jpanhalt is offline  
Old 6th August 2008, 05:46 AM   (permalink)
Default

Why would you want to limit the gate current to a Mosfet? There shouldn't be any, not unless you're talking high speed switching, the brief nano/micro second long current pulse for the gate charge will not damage an MCU pin and the resistor will do not much more than smooth the rise and fall time of the FET which will waste power and be more likely to damage the fet. You could remove the mosfet and replace it with a pair of NPN transistors in a darlington setup to sink current to ground for the solenoid, just like in the mosfet image, then the gate (now base) resistor would make sense. The transistors would only need an HFE in the area of 50 to saturate at a couple of mas of drive current (from the mcu), and you're only going to lose 1 diode drop of the 12 volt supply.
__________________
"Because I be what I be. I would tell you what you want to know if I
could, mum, but I be a cat, and no cat anywhere ever gave anyone a
straight answer, har har."

Last edited by Sceadwian; 6th August 2008 at 05:47 AM.
Sceadwian is offline  
Old 6th August 2008, 10:44 AM   (permalink)
Default

Quote:
Originally Posted by Sceadwian View Post
Why would you want to limit the gate current to a Mosfet?
As I implied, because I have never run that large a mosfet directly from a PIC. I have run a 2n7002 directly. It is easy to remove or reduce if not needed on a PCB, but harder to add, if you haven't planned for it. In addition, sometimes a small gate resistor (e.g., 4 to 22 ohm) is needed to prevent gate oscillation, as described in most of application notes.

John
jpanhalt is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
13.8v (or 15V), 8A switching power supply BengBear Electronic Projects Design/Ideas/Reviews 40 3rd June 2008 09:34 PM
Switching power supply 12v to 13.8v dbtoutfit General Electronics Chat 19 31st January 2008 06:51 AM
switching power supply ulot General Electronics Chat 6 13th October 2005 04:52 PM
ttl switching 12V supply ptewright Electronic Projects Design/Ideas/Reviews 81 16th June 2005 08:05 PM
Switching Power Supply IC herbymcduff Datasheet/Parts Requests 3 10th January 2003 09:14 PM



All times are GMT. The time now is 06:42 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker