Voltage fall down when connecting a device in MOSFET IRF520

Finally got it working !!! It seems the problem with the mosfets was a matter of grounding the controller (D1 Mini) with the battery; this is the final schema design (D1 Mini is powered vía USB with a power adapter, not included in the schema). Just hope not to make a fire at home ...

Thank you all for your support, another happy-ending story at Arduino Forum, hahaha :rofl:

Edited: Some wiring misplaced

The diodes should go across the motors, not in series.
Leo..

Like this: Flyback diodes and why you need them

Like this? motors are actually 12v water pumps (not included in Fritzing libraries) but I'll put the diodes like you say.

Yes.

Bottom motor positive connected to ground.

Breadboard is no good for current above about 1A, so you might have problems powering motors through breadboard.

Edited, thanks!

Yeap, it's just for the clarifications, I have it already soldered in PCB.

Hi,
What MOSFETs are you using?

Thanks.. Tom... :smiley: :+1: :coffee: :australia:

IRL540n

Hi,
Now you have it working, you need to make a schematic using electronic engineering symbols.

I have done this circuit for you.
I use a CAD program due to medical problems with fingers, you can just do a pen(cil) and paper circuit.
Hand drawn circuits can sometimes be done quicker during experimenting/developing your project.


Note I have added a fuse, I'm not sure what your 12V supply is.

Others may have suggestions too such as things like bypass caps.

Tom.. :smiley: :+1: :coffee: :australia:

Wow! thank you for the schema, it looks very professional for a newbe like me.

220k:22k will give poor A/D resolution for battery measurements.
The 22k is even ~20.6 because of the 220k:100k divider already built-in in the WeMos.
So only about 30% of the A/D is currently used.
Just replace the divider with a single 1Megohm resistor between battery and A0.
Leo..