Driving a solenoid

Do I understand correctly that the TIP102 in this circuit should be a TIP120?

...so I could use this circuit (with a TIP120) to drive a 12volt, 6.9watt solenoid?
thanks

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

Looking at Figure 4 of the datasheet, you would seem to be okay with the ~600mA you'd have going thru this part.

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

beter use MOSFET lower Rdson example IRFZ44

I have an IRF510 in my junk box, that should work good, right?

SouthernAtHeart:

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

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...

Solenoid Switch.JPG

You have the Drain & Source connections swapped. Drain to motor, Source to ground.

Here is a very nice logic level mosfet available in the US.

retrolefty:
Here is a very nice logic level mosfet available in the US.

N-Channel MOSFET 60V 30A - COM-10213 - SparkFun Electronics

I'll take a look at this.

CrossRoads:
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.

retrolefty:
Here is a very nice logic level mosfet available in the US.

N-Channel MOSFET 60V 30A - COM-10213 - SparkFun Electronics

I am using this as in the drawing in post #6 (with the source and drain corrected). But Sparkfun's example has R1 setup up different, in this example:

Is one better than the other, or will they both work the same?

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

Thanks for explaining that for me.

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.

retrolefty:
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.

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.

That is the purpose of the pull-down resistor. Recall that an Arduino starts up at power on with all pins as input pins and until the bootloader times out and your sketch sets the pin as an output pin and you set it to low, the mosfet's gate is floating without a pull-down resistor. So adding such a resistor should prevent the momentary activation at first turn on.

Lefty

Thanks, I don't want the water solenoid kicking on at power up!