Skip to main content

Questions tagged [l298n]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7 votes
1 answer
25k views

How to control a Nema 17 stepper motor with an arduino? (too much current / heat)

I am trying to control a Nema 17 motor with a L298n dual bridge and an Arduino Mega. My wiring is from this Instructable: http://www.instructables.com/id/Control-DC-and-stepper-motors-with-L298N-...
ce_guy's user avatar
  • 73
4 votes
1 answer
727 views

Arduino - stepper motor wrong steps number

I just bought a new stepper motor (400 steps for revolution, 0.9°/step) and I would like make a turn of 180° by 200 steps, but it doesn't work as expected. It looks like the motor needs only 110 steps ...
Victor Dika's user avatar
3 votes
1 answer
188 views

NodeMCU V3 GOT OVERHEATED AND DIED

My NodeMCU V3 got overheated and died. Please help me figure out what i did wrong. Brief Desrip: Project is an RC Car on ESPNOW Protocol. Transmitter setup have an Arduino Nano to take values from Two ...
NonTechGuyinTech's user avatar
2 votes
1 answer
938 views

L298 works only when touched

The following image is my connection of l298 with Arduino. This is the program. int ENA = 10; // MCU PWM Pin 10 to ENA on L298n Board int IN1 = 9; // MCU Digital Pin 9 to IN1 on L298n Board int ...
Dixit's user avatar
  • 21
2 votes
2 answers
10k views

How to communicate between a webcam and an Arduino UNO and get the live feed on mobile using ESP8266? [closed]

I am working on a project of making a Smart Robot Car using Arduino UNO, L298N Motor Driver Module, ESP8266 Esp-01 WiFi module and RemoteXY app for controlling via smartphone over WiFi. My question ...
Naved THE Sheikh's user avatar
2 votes
2 answers
8k views

L298N Dual Motor Controller Enable Pin has power but motors not working

I am trying to get the L298N to work with a simple DC motor. For now, I have simplified the setup and the code to the basics to try to get it to work. I am using the following wiring setup with no ...
LonelyLodge's user avatar
2 votes
1 answer
5k views

Controlling motors and servo with L298N

I'm using an L298N to control the two motors of a robot car, and I also have a servo controlling the HC-SR04. The motors and sensor work fine together, and the servo and sensor work fine together. But ...
Jim421616's user avatar
  • 188
2 votes
3 answers
6k views

How to power Arduino Uno from L298N motor driver's 5v terminal?

I am trying to setup L298N motor driver controller with my Arduino. Different online schematics about how to connect them are mostly similar - but they differ in powering the Arduino from the drive ...
Quazi Irfan's user avatar
2 votes
2 answers
358 views

How can we know the status of the DC Motor whether it is ON or OFF

A DC motor is operated using an L298n driver and Arduino UNO. How can I get to know whether the Motor is ON or OFF? Using a code in Arduino.
Amit Nikhade's user avatar
2 votes
2 answers
4k views

How to identify connection lost on HC-06?

I am making an RC car on Arduino Uno. I have connected an L298N motor driver to an Arduino Uno to control 2 DC motors. I also connected an HC-06 to the Uno to receive commands from an Android ...
Joe Rakhimov's user avatar
2 votes
0 answers
5k views

Difference between L298 and L298N motor driver

I was planning to buy a motor driver for my project purpose, but I don't understand which motor driver will suit my purpose. As there are two motor drivers available online. Can someone explain me the ...
Himanshuman's user avatar
2 votes
0 answers
254 views

Problem in integrating speed sensor LM393 with L298N

I am currently working on a project that has an automatic support wheel for bicycle. The mechanism of this project is when the speed sensor is detecting the RPM of the rear bicycle wheel it will ...
Rafi Ad-din's user avatar
2 votes
0 answers
636 views

Servo.attach method causing strange issue [closed]

I am using the L298N motor driver for a robotics project to control 4 motors. 2 motors in each input and output terminal. I have this connected to an Arduino Uno which is powered by about 7-8v from ...
Don Grey's user avatar
1 vote
1 answer
1k views

`servo.attach()` paralyzing (one) motor on L298N

I have 2 DC motors (well, 4; but each pair is controlled by the same "signals") connected via a L298N, which is connected to the Arduino. In addition, I have a servo motor connected to the Arduino. ...
Fine Man's user avatar
  • 189
1 vote
3 answers
164 views

are 4AA batteries (6V) power my arduino

I'm actually new to using arduino , and trying to make a simple car, using two dc motors, a l298n and an arduino, the problem is that a 9v battery doesn't seem enough to just power the l298n and one ...
Marouane Rakine's user avatar
1 vote
1 answer
702 views

DC Motor not running with the L298N (Green) card

I have a DC motor connected to a L298N (Green) controller. The controller is receiving electricity but the motors aren't. This is how we wired everything Our code: #include <SoftwareSerial.h> ...
Emir Sürmen's user avatar
1 vote
3 answers
1k views

Servo motor and L298N motor driver don't work together with ESP32

I am using four servo motors for our robotic arm and one L298N motor driver for two motors for the base of the arm. When I individually tested the robotic arm and controlled four servo motors it ...
aditya gupta's user avatar
1 vote
2 answers
377 views

l298n voltage loss when motor attached

Im trying to power a brushless DC Motor (Tamiya 300054358) through the l298n attached to an Arduino. The l298n is powered by an external 9V source and the logic of the l298n is powered by the Arduinos ...
Alex's user avatar
  • 11
1 vote
2 answers
2k views

Arduino Vin pin does not work, but Arduino 5v pin power works

I have a very weird problem, at least it seems to me that way. I have connected L298N motor driver, Arduino and a hobby servo with a 6v power supply (tested with both 4xAA and 9v alkaline batteries). ...
Kakar's user avatar
  • 117
1 vote
2 answers
2k views

L298N motor driver and battery issues

I'm trying to build an Arduino 4WD smart car. so i connected my l298N motor driver module with my v4 shield and used a 4 x 1.5v AA batteries to try and power my 4 motors up. i connected 2 of the ...
Ayanfe Adekanye's user avatar
1 vote
1 answer
2k views

L298N beeps and malfunctions when receiving certain analogWrite values

I created a simple circuit with an UNO, L298N and a single motor. Wrote the following code to test controlling the speed of the motor. Tested motor with digitalWrite() function and it works fine. ...
yannism's user avatar
  • 21
1 vote
2 answers
2k views

Not able to control DC motor speed with l298N & pwm pins

I am using arduino uno to control dc motor speed with L298N. But the problem is that the motor is only going at max speed. PWM pin doesn't work for some reason. I heard many people had some problem ...
suu's user avatar
  • 85
1 vote
1 answer
79 views

Problem adding IR receiver to smart car

I’m making a smart car using an arduino uno, sensor shield v5, motor control with a L298N and a servo motor + HC-SR04 ultrasound sensor. I want to add a IR receiver on the board so I can also control ...
AugustinS's user avatar
1 vote
1 answer
1k views

How can I use separate power source for the Arduino and the motors

How can use a separate power source for powering Arduino, and another battery for powering the motors? How can I make connections through the motor driver module L298N? I know how normally we use one ...
Amit Nikhade's user avatar
1 vote
1 answer
375 views

having problems with my arduino bluetooth car project(with L298n Motor Driver)

so the scenario is i am making a bluetooth controlled car(voice control)+obstacle avoidance function.I am using Arduino UNO with L298n motor driver and a HC-05 BT module in the sensors i am using the ...
Hassan Akram's user avatar
1 vote
1 answer
198 views

Possible noise from the motors

I'm trying to control a self-balancing car, but it seems that the MPU6050 get dirty once my motors operate a full velocity. I'm controlling my motors with the module L298N and with the PWM signal (pin ...
PartnerTech's user avatar
1 vote
1 answer
431 views

can i use L298N H bridge with 12v 7AH battery?

guys i am working on a rare project so i just need to ask some questions I have a L298N H bridge motor driver, a Aduino uno board, 12v dc 4000rpm 2ampere motor and a 12v 7ah battery I just want to ask ...
rohit_23's user avatar
1 vote
2 answers
3k views

Power 5v from l298n to 5v pin arduino

im using the l298n module, and 3x 18650 batterys (near 12v total), and supplying 12v to the 12v pin of the l298 module. Can i use the 5v pin of the module to power the 5v pin of arduino? Or i need a ...
Jonathas Moreira's user avatar
1 vote
1 answer
1k views

DC motors not running using PWM and L298N motor driver

I'm just beginning to understand Arduino. Please bear with me. I have a collision avoidance car running on Arduino Uno, WB291111 L298N motor driver, SG90 servo, Arduino Shield v5, and HC-SR04 ...
Jay Zapanta's user avatar
1 vote
1 answer
2k views

Weird behaviour of rotary encoder values

The plan is to control a NEMA 17 stepper motor with an endless rotary encoder. First, I found a code to read the rotary encoders data on www.HowToMechatronics.com by Dejan Nedelkovski. It basically ...
Norman's user avatar
  • 121
1 vote
1 answer
1k views

How to control a DC Motor with Hall Encoder using Arduino and Motor Driver?

I'm using a DC motor with Hall Encoder. I bought it from DX. I have made all the connections to motor driver and arduino and I suppose all are correct. I've connected m1 and m2 pins of motor to that ...
Shekhar's user avatar
  • 111
1 vote
0 answers
146 views

Motor rotates well in one direction but runs slower in other with L298N and L293d

I connected 2 motors with an L293Nn driver. When I control it with my joystick, one motor works fine (Out 1 and 2 of driver.) It rotates in one direction and the other very smoothly. The problem ...
HexaTech's user avatar
1 vote
0 answers
260 views

l298N PWM motor control with Uno is not functioning correctly

I'm working on a self-balancing robot. The self-balancing is not the issue. The issue is that the motors don't respond as they are supposed to. I would understand if it were unable to balance, but the ...
Sergei Glimis's user avatar
1 vote
1 answer
819 views

L298N Motor Driver with Nodemcu/ESP32

I have seen a lot tutorials on L298N motor driver with nodemcu and ESP 32, which are 3.3v logic boards where the motordriver is a 5v logic board, now in Arduino while doing speed control 255 means 5v ...
arnab ghosh's user avatar
1 vote
0 answers
351 views

L298N Gradual Voltage Drop

I have connected my motors to L298N and it in turn to arduino. My battery is ~18 V and i used a boost converter to get 12.99V. When I run my program on Arduino Mega, I check the output voltage from ...
Farid Hamidov's user avatar
1 vote
0 answers
1k views

Servo motors suddely stopped moving and a clicking sound can be heard

I think I might have shorted something by accident. I have just purchased the Elegoo Robot Car Kit v2.0. Putting things together was relatively easy. I also managed to run the first example, which ...
rbaleksandar's user avatar
0 votes
1 answer
212 views

Arduino powered car not running when touching ground

I hacked a cheap car I connected both motors to L298N Dual H-Bridge Motor Controller and all things are working good. Motors are running fast. But when I put the car on the ground to run. It runs so ...
Saim's user avatar
  • 3
0 votes
1 answer
143 views

Beginner problem with DC motor

I am new to electronics and I'm having a problem when creating my project. I have created a Bluetooth controlled rover using HC-06, Dual H-bridge motor driver and 4 DC motors. However, only two of the ...
Francesco Bergamaschi's user avatar
0 votes
1 answer
931 views

Motor isnt spinning when using L298N motor controller

I have a L298 motor controller connected to a motor with a 6 volt power sources. the motor however isn't spinning any ideas I'm using a esp 8266 node mcu board. I would like to use pwm but for right ...
thesonyman101's user avatar
0 votes
1 answer
171 views

I want to make my stepper motor work for 1 hour [closed]

I already tried code that makes the stepper motor work for a few minutes only. I'm using a clock module, a DS1302 and the stepper library already present. Also the driver I'm using is an L298n. If ...
alz's user avatar
  • 1
0 votes
1 answer
2k views

Arduino RFID with motor and limit switches

Thanks for looking into my Arduino code. I'm building an automated sliding draw, and I'm trying to activate the motor with a RFID scanner. The scanner waits for the token, and once it detects a token ...
ldprice's user avatar
  • 131
0 votes
1 answer
1k views

Arduino 4wd rover [duplicate]

Guys i have made an arduino 4wd rover using L298N BRIDGE MODULE, HC-05 and Arduino uno but the power supply output of L298N was very low that even 1 motor is working too slow so please help me with ...
Aryan Dhall's user avatar
0 votes
1 answer
382 views

INA219 with L298N POWER LOGGER

I Have been working on a power logger with INA219 and L298N the thing is, the voltage and current displayed on Serial Monitor is not the same on my multimeter. the Arduino is connected to the pc to ...
Rhu Pagal's user avatar
0 votes
2 answers
253 views

Stepper not working properly using L298N

If googled and search here but can't find the same issue. I'm using an Arduino Uno, L298N driver (5v jumper is off - actually just 2 holes where the jumper pins were supposed to be), scavenge stepper ...
TungstenX's user avatar
  • 101
0 votes
1 answer
208 views

DC Motor Control L298N

I am trying to control the speed of two motors using L298N. I use "Arduino Nano ATmega 168". I change the analogWrite between 0-255 but I cannot see any difference. When I assign it to something like ...
Farid Hamidov's user avatar
0 votes
3 answers
46 views

Help me get my robotic car to work?

So I recently followed a tutorial on youtube and I've assembled the car and connected all the wires. What I've done: Car Now in the video, when the guy connects all the wires, the wheels constantly ...
Michelle Adeline's user avatar
0 votes
2 answers
423 views

L298N motor driver issue

I am facing the same issue with my motor driver. Initially I ran the code and connected the L298N with Arduino and it worked fine. At that time motors were running absolutely fine. But when I ran it ...
Satyam Annu's user avatar
0 votes
1 answer
453 views

can I check if why my motor isn't working?

I am currently using the arduino Uno connected with L298N(green pcb) connected to a dc motor rated 12V. I provided dedicated 12v power supply to the dc motor and the arduino board's power is supplied ...
user10748500's user avatar
0 votes
2 answers
2k views

running a dc motor with a small L298N module and an arduino and the L298N library

I have a small L298N module which I would like to use to run a couple of dc motors. The module I have is smaller than most of the ones you see on eBay, it looks like this... I am trying to use the ...
juliusbangert's user avatar
0 votes
1 answer
172 views

L298 module - unusual power specs

I would like to purchase this dual H-bridge module. I plan on connecting it to an Arduino Uno. In the products datasheet the specified power supply (Vd) is 6.5-12V, and the voltage for the motor ...
user64860's user avatar
  • 105