Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Question about how to amplify power.

Status
Not open for further replies.

Jack.Straw

Member
Hello. I'm wanting to drive a solenoid valve with a Picaxe microprocessor. The processor runs on a 5v circuit and my valve requires 12v. The Picaxe documentation says I need to use a MOSFET circuit:

**broken link removed**

The chip i'm using (18M2) runs on 5v and can source 20mA per output pin, with a maximum of 90mA total. My solenoid valve runs on 12v and requires .5 watts. So that is something like 42mA? Do I need to combine the output of several pins, or is there a way to amplify the output of 1 pin?

Thanks for your time,
-Scott
 
Last edited:
the transistor(mosfet) is the amp it takes a low current in the base, and with the "gain" factors it to "collector current"(solenoid input pin)

R1 varies with gain value for transistor
 
Using the circuit you have pictured you could use a 2N2222 NPN transistor (very common) and about a 120 Ohm base resistor. You could also use as pictured the IRL 520 MOSFET. The MOSFET in the image is a logic level MOSFET designed to work off the 5 volts output of the PIC. Either way leave the 1N4001 in the circuit. That is there to snub the inductive kick when the solenoid coil field colapses at turn off.

Ron
 
That would work fine.

Ron
 
You mentioned the valve needs 12v correct? Then you would need a separate 12v supply. Instead of +5 shown in the schematic, you would supply +12v.
 
imix, yes, the valve is 12v. So i would supply the chip with a 5v power supply, and the solenoid with a separate 12v supply? How would the chip control weather or not the 12 volts reaches the solenoid?

This is what I have so far... how would i work in the 12v?
**broken link removed**
 
imix500, good catch that I missed. If you drive your transistor with the 5 volt logic from the PICAXE that will be fine. However make sure the 5 volts and 12 volts share the same common. Also, my bad as figure about a 2.2 K Ohm resistor for the base of the 2N2222. I missed that, sorry as my bad.

Ron
 
Just as you had drawn it. The transistor would switch the 12v with the 5v output. Tie the grounds together and you should be good.
 
You want it like the attached.
 

Attachments

  • Solenoid CKT.gif
    Solenoid CKT.gif
    5.5 KB · Views: 181
Awesome, thanks guys!! Does this look correct?
 

Attachments

  • solenoid_control.jpg
    solenoid_control.jpg
    89 KB · Views: 166
Last edited:
Yep. That will work. :)

Ron
 
Just a minor thing, but you have the leads to the solenoid reversed. Also, I would connect the 5v gnd close to the micro and join the touch sensor and 12v gnd there to make a "star ground".
 
Jack.Straw - what program did you use for your bread board schematic? Where did you download it? Thank you.
 
Where are your bypass caps for the PIC?
 
Status
Not open for further replies.

Latest threads

Back
Top