South East USA
Offline
God Member
Karma: 2
Posts: 558
|
 |
« on: February 05, 2011, 08:57:11 pm » |
Do I understand correctly that the TIP102 in this circuit should be a TIP120? http://arduino.cc/playground/uploads/Learning/solenoid_driver.pdf...so I could use this circuit (with a TIP120) to drive a 12volt, 6.9watt solenoid? thanks
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15320
Measurement changes behavior
|
 |
« Reply #1 on: February 05, 2011, 09:01:31 pm » |
Yes, TIP102 is a misprint as a 102 is a PNP transistor. A NPN TIP120 transistor is a great choice and will work fine at your load wattage.
Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 249
Posts: 16572
Available for Design & Build services
|
 |
« Reply #2 on: February 05, 2011, 09:04:26 pm » |
Looking at Figure 4 of the datasheet, you would seem to be okay with the ~600mA you'd have going thru this part. http://www.learn-c.com/tip120.pdf
|
|
|
|
|
Logged
|
|
|
|
|
Latvia
Offline
Newbie
Karma: 0
Posts: 17
hobyist
|
 |
« Reply #3 on: February 06, 2011, 01:23:48 pm » |
beter use MOSFET lower Rdson example IRFZ44 - low gate charge, high curent low Rds but it is too great for 7w but with reserve - never will blow off - conection diagramm the same
|
|
|
|
|
Logged
|
|
|
|
|
South East USA
Offline
God Member
Karma: 2
Posts: 558
|
 |
« Reply #4 on: February 06, 2011, 06:45:11 pm » |
beter use MOSFET lower Rdson example IRFZ44 I have an IRF510 in my junk box, that should work good, right?
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15320
Measurement changes behavior
|
 |
« Reply #5 on: February 06, 2011, 08:14:56 pm » |
beter use MOSFET lower Rdson example IRFZ44 I have an IRF510 in my junk box, that should work good, right? A IRF510 is not a logic level mosfet and requires +10vdc gate/source voltage to fully saturate on. Lefty
|
|
|
|
|
Logged
|
|
|
|
|
South East USA
Offline
God Member
Karma: 2
Posts: 558
|
 |
« Reply #6 on: February 07, 2011, 12:13:04 am » |
Okay, so how does this look. Here are the specs, and attached is the schematic. I'm just wanting to make sure I get it right so I don't ruin my Duemilanove.
Solenoid: 12 VDC, 6.9 watts R1: 2.2K D1: 1N4004 Q1: IRFZ44
This irfz44 isn't available at Radio Shack, but for $3 I can get 2 of them shipped all the way from Thailand, where ever that is...
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 249
Posts: 16572
Available for Design & Build services
|
 |
« Reply #7 on: February 07, 2011, 12:45:00 am » |
You have the Drain & Source connections swapped. Drain to motor, Source to ground.
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15320
Measurement changes behavior
|
 |
« Reply #8 on: February 07, 2011, 01:31:51 am » |
Here is a very nice logic level mosfet available in the US. http://www.sparkfun.com/products/10213
|
|
|
|
|
Logged
|
|
|
|
|
South East USA
Offline
God Member
Karma: 2
Posts: 558
|
 |
« Reply #9 on: February 07, 2011, 11:25:22 am » |
I'll take a look at this. You have the Drain & Source connections swapped. Drain to motor, Source to ground.
In plumbing, the drain goes to the ground, so I thought it would be the same... Thanks, I don't think I'll ever get these FETs, Mosfets, and transistors things completely figured out in my head.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15320
Measurement changes behavior
|
 |
« Reply #11 on: March 29, 2011, 10:24:27 am » |
Yes it can be a little confusing, these resistors used with N-channel logic level mosfet switching transistors. In reality the mosfet will switch on and off without using either resistor, but they do serve useful purposes and should be included. The resistor wired between the arduino output pin and the gate of the mosfet is to protect the output pin from large current spikes as the mosfet gate capacitance is charged or discharged initially when commanded on or off. Once the mosfet gate is fully charged or discharged there is no DC current flow from the output pin and the gate. This should be a rather small resistor value so as not to slow down the switching transition time too much, 300-1,000 is a good range to use. The resistor used between gate and source terminals on the mosfet is to insure that the mosfet is 'forced' off in the unusual case where the arduino board my be powered off but the +12vdc is still on, this is more a safety issue then a circuit requirement. That resistor can be pretty large and 10k is a good value to use.
Also be sure you have a wire run between the 12vdc power supplies negative terminal to a arduino ground pin as the mosfet won't switch without the connection made.
Hope that helps.
Lefty
|
|
|
|
|
Logged
|
|
|
|
|
South East USA
Offline
God Member
Karma: 2
Posts: 558
|
 |
« Reply #12 on: March 29, 2011, 10:45:06 am » |
Thanks for explaining that for me.
|
|
|
|
|
Logged
|
|
|
|
|
South East USA
Offline
God Member
Karma: 2
Posts: 558
|
 |
« Reply #13 on: April 02, 2011, 09:24:57 am » |
Sorry, I just remembered you mentioned this just recently: The resistor wired between the arduino output pin and the gate of the mosfet is to protect the output pin from large current spikes as the mosfet gate capacitance is charged or discharged initially when commanded on or off. Once the mosfet gate is fully charged or discharged there is no DC current flow from the output pin and the gate. This should be a rather small resistor value so as not to slow down the switching transition time too much, 300-1,000 is a good range to use.
|
|
|
|
« Last Edit: April 02, 2011, 10:18:03 am by SouthernAtHeart »
|
Logged
|
|
|
|
|
South East USA
Offline
God Member
Karma: 2
Posts: 558
|
 |
« Reply #14 on: April 20, 2011, 03:30:21 pm » |
Yes it can be a little confusing, these resistors used with N-channel logic level mosfet switching transistors. In reality the mosfet will switch on and off without using either resistor, but they do serve useful purposes and should be included. The resistor wired between the arduino output pin and the gate of the mosfet is to protect the output pin from large current spikes as the mosfet gate capacitance is charged or discharged initially when commanded on or off. Once the mosfet gate is fully charged or discharged there is no DC current flow from the output pin and the gate. This should be a rather small resistor value so as not to slow down the switching transition time too much, 300-1,000 is a good range to use. The resistor used between gate and source terminals on the mosfet is to insure that the mosfet is 'forced' off in the unusual case where the arduino board my be powered off but the +12vdc is still on, this is more a safety issue then a circuit requirement. That resistor can be pretty large and 10k is a good value to use.
Also be sure you have a wire run between the 12vdc power supplies negative terminal to a arduino ground pin as the mosfet won't switch without the connection made.
Hope that helps.
Lefty
Could it be that without the pull-down resistor to ground (gate to source) when I power up the system, the mosfet could momentarily turn the 12v water solenoid on? Kinda like the H-bridge without pull-downs on the control pins let a motor 'jump' when powering up? I don't have pull-downs on my mosfets, but can put them on if this scenario happens. The mosfet and Arduino will always be on at the same time, other than powering up.
|
|
|
|
|
Logged
|
|
|
|
|
|