slipstick:
That is not a logic level MOSFET. It cannot be fully switched on from a 5V digital pin. And because it is a MOSFET it doesn't have a base or emitter.
And the important voltage is across the fan i.e. between the two leads of the fan.
Steve
ah i see, i also noticed this is the wrong MOSFET now that you mentioned, what i was looking for was a IRL540N not a IRF540N.
i switched to 2n2222a, i get 4.8v and when i send the bluetooth command to start the motor, my white led blinks once and i lose connection to the bluetooth module, lol
Put voltage into a dc motor and it starts to rotate. Rotate the dc motor by hand and it outputs voltage. Get that!
So when you have your circuit in answer #5 working and the transistor lets current through, the motor is running. When the transistor cuts the current, the motor continues to run for a second or a half. During that time it pushes current out of itself. Or call it a voltage. This voltage has to kind of uncharge. A bad thing is if it uncharges over the transistor. Here's where the diode kicks in. It just feeds the current back into the motor. Think of the motor as a battery with very little charge left, a charge that might cause damage. The diode just shortcuts it until the charge is gone.
puelon:
i switched to 2n2222a, i get 4.8v and when i send the bluetooth command to start the motor, my white led blinks once and i lose connection to the bluetooth module, lol
Why a 2N2222A? You were nearly there. You just needed a decent logic level MOSFET. Going back to a BJT isn't going to help.
Draw a simple circuit diagram of all of the components and connections. Your symptoms STILL sound like you're not powering everything properly.
Well, trying to explain how to connect one part to another when you don't know how to connect parts yet will end up in another 25 posts.
You first have to understand why that diode isn't connected to anything.
Leo..
Wawa:
Well, trying to explain how to connect one part to another when you don't know how to connect parts yet will end up in another 25 posts.
You first have to understand why that diode isn't connected to anything.
Leo..
Can you just try to be practical instead of insisting that i dont understand? Not once have you attempted to explain, you plainly straight assumed that i dont know, also, second time you're going for an arguement instead of helping...
Google something like "breadboard diagram", and look at the images.
See how the contacts are connected in horizontal and vertical rows.
Now look at your breadboard picture, and see if the diode is connected to anything.
Leo..
i see what i did wrong, try to understand this was a drawing mistake, i did not pay attention as i was mostly concerned to actually having the circuit picture, but anyways i will fix it.