Arduino Nano - Mosfet - L298N - Dc Motor protoboad fails

dendad

Joined Feb 20, 2016
4,472
#10
point 1. No. Your circuit is wrong. Yo cannot switch +12V like that with an NFET. AS you have it, turning the FET on will short the 12V supply.

You need something like this using a PFET..
HighSidePFET.png
Point 2. Yes, give it a try. That's about what I said in point 9.
 

Thread Starter

quique123

Joined May 15, 2015
405
Ok i tried D5 directly to the Enable Pin A (un-jumper because I had to remove the jumper in order to fir the cable in. The issue is that the L298N led stays on the whole time since the power line goes directly into the 12V. This means it will be drawing power and draining my battery between each vibration cycle.
 

jayanthd

Joined Jul 4, 2015
945
Without the 5V supply to L298N it will not draw any power from 12V input. Why not simply control the 5V supply to L298N with a logic level mosfet.
 

Thread Starter

quique123

Joined May 15, 2015
405
What do you mean? The L298 doesnt get 5V from the Arduino, it gets 9V from an external supply. How should I connect it in your opinion?
 

jayanthd

Joined Jul 4, 2015
945
I am talking about pin 9 (VCC) of L298N. it is supplied with 5V and pin 4 (VS) is supplied with 9 or 12V.

Or why can't you enable or disable th eL298N chip using ENA and ENB pins of L298N ?

You just have to connect th eENx pins of L298N to Nano and make it high to turn ON the motor when reuired and then make it low to disable the L298N outputs. Have you tried this and measured the current drawn by the L298N chip when ENx pins are low ?
 

dendad

Joined Feb 20, 2016
4,472
You just have to connect th eENx pins of L298N to Nano and make it high to turn ON the motor when reuired and then make it low to disable the L298N outputs. Have you tried this and measured the current drawn by the L298N chip when ENx pins are low ?
I've more or less asked just that in post #9 but still got no reply.
 

jayanthd

Joined Jul 4, 2015
945
See this video. Atleast in simulator the VCC pin draws current in uA when ENx pins are low and VS pin circuit doesn't draw any current when ENx pins are low.

L298N.png
 

Attachments

Last edited:
Top