I am quite new to dealing with hardware at this level, so excuse me if my question is easily researchable - its just that I am not sure what to even look for.
I am working with an arduino uno, and trying to implement a button switch which allows me to control a current from an external 9v battery, by pressing a button.
I know that this could be done with a much simpler design (without the arduino at all), but I am mainly interested in understanding how mosfet works.
In the circuit photo (circuit works, pressing the button does activate the motor, and releasing does turn it off) , I have a resistor at the top left part of the circuit, my question is :
what is the function of this resistor?
I have tried removing it, and when I did it seemed like the transistor got stuck as as "on" (motor was still pulling power from the battery), even though there was no voltage coming from the "+" rail - which means that the connection was supposed to be severed. So I don't really understand how attaching a 10k resistor actually changes how the circuit behaves. The input voltages are 5V for the arduino, and 9V for the battery.
I am working with an arduino uno, and trying to implement a button switch which allows me to control a current from an external 9v battery, by pressing a button.
I know that this could be done with a much simpler design (without the arduino at all), but I am mainly interested in understanding how mosfet works.
In the circuit photo (circuit works, pressing the button does activate the motor, and releasing does turn it off) , I have a resistor at the top left part of the circuit, my question is :
what is the function of this resistor?
I have tried removing it, and when I did it seemed like the transistor got stuck as as "on" (motor was still pulling power from the battery), even though there was no voltage coming from the "+" rail - which means that the connection was supposed to be severed. So I don't really understand how attaching a 10k resistor actually changes how the circuit behaves. The input voltages are 5V for the arduino, and 9V for the battery.
Attachments
-
2.2 MB Views: 20