This is here incase the arduino comes loose, or the wiring is bad it will default to off. The resistor holds the gate low when the arduino does not send a high signal. The only part that looks funny is the resistor. Hooking it up / What's the diode used for? Pete over at Sparkfun put out amazing video explaining MOSFETs for a solid 20min. If you want to know more, or actually know what is actually going on in there. When our arduino sends a HIGH signal to the transistor's gate, it switches the transistor (connecting the drain and source) and completes the circuit for the motor, solenoid, or light. ![]() Ground is connected to the transistor's drain. So we connect it so that our motor, solenoid or light is connected to V+ but not ground (V-). When you send a HIGH signal to the gate (control pin), the transistor switches and allows current to flow from the source (in) to the drain (out). You basically have an In called the Source, an Out called the Drain, and a Control called the Gate. If you don't know transistors at all, they are 3 lead components that have 2 simple functions, to switch or amplify (in this example it is setup as a switch). it is here in an attempt to explain, in simple terms, what is going on.įirst off, a MOSFET is a transistor, just a special kind. WARNING: I am about to simplify the crud out of this, so beware. but you can use any N-Channel MOSFET exactly the same way. Today we are going to talk about another way of doing just that, this time with an N-Channel MOSFET metal–oxide–semiconductor field-effect transistor, specifically the RFP30N06LE MOSFET (You can pick these up from sparkfun). ![]() ![]() Eventually you are going to find yourself holding a 12v solenoid, motor, or light and wondering "How the heck am I supposed to control this from my Arduino?" And we have covered this in the past.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |