Trouble with 5v mini-fan

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.

Steve

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

Steve

Alright sir, here you gohttps://imgur.com/6Nej0TM

Motor connected wrong, diode in the wrong place, no base resistor (transistor probably dead).
:frowning:

Wawa:
Motor connected wrong, diode in the wrong place, no base resistor (transistor probably dead).
:frowning:

lol could you help me out and point out how can i set it up? i cant understand the circuitry, im pretty sure im making the wrong connections

Don't know which thread I should rely to.
This one, or your other 5volt fan thread.
https://forum.arduino.cc/index.php?topic=535703.0

Problem#1:
It seems you don't yet understand how a breadboard works.
Fix that first. Plenty of tutorials on the web.
Leo..

hint: the diode is conected to... nothing
The red motor wire is connected to... nothing

Wawa:
Don't know which thread I should rely to.
This one, or your other 5volt fan thread.
Which transistors should i use? - General Electronics - Arduino Forum

Problem#1:
It seems you don't yet understand how a breadboard works.
Fix that first. Plenty of tutorials on the web.
Leo..

hint: the diode is conected to... nothing
The red motor wire is connected to... nothing

the other one is regarded to the transistor choice only, this one is to the whole circuit, huge difference.

hint: the diode is conected to... nothing
The red motor wire is connected to... nothing

yeah, i cant figure it out, implying wont help.

It seems you don't yet understand how a breadboard works.
Fix that first. Plenty of tutorials on the web.
Leo..

i know how it works, im having problem with understanding the circuit due to lack of experience

but thanks for pointing out the errors, assuming i dont understand how breadboard works, instead of pointing out a solution really helps!

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

Do I have to spoon-feed you?

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

Wawa:
Do I have to spoon-feed you?

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.

Ok, if you understand it, then

connect the two motor (fan) wires to the two wires of the diode, the red one(+) to the cathode (ring) side.

Wire/link between diode cathode (ring) and the 5volt rail of your breadboard.

Wire/link between diode anode and transistor collector.

Wire/link from transistor emitter to ground rail.

Wire from Arduino pin6 to an unused short rail of the breadboard, and a 220ohm resistor from there to the base of the 2N2222.

The 2N2222 is probably fried, because you didn't use a base resistor before.
Leo..

Wawa:
Ok, if you understand it, then

connect the two motor (fan) wires to the two wires of the diode, the red one(+) to the cathode (ring) side.

Wire/link between diode cathode (ring) and the 5volt rail of your breadboard.

Wire/link between diode anode and transistor collector.

Wire/link from transistor emitter to ground rail.

Wire from Arduino pin6 to an unused short rail of the breadboard, and a 220ohm resistor from there to the base of the 2N2222.

The 2N2222 is probably fried, because you didn't use a base resistor before.
Leo..

Hahahaha, you're the master dude! works perfectly! thanks! ++rep