Questions tagged [l298n]

63 questions
7
votes
1 answer

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-Dual-Moto/?ALLSTEPS When I connect it to my laboratory…
ce_guy
  • 73
  • 1
  • 1
  • 5
4
votes
1 answer

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 to make a turn of 180° and I don't know the…
2
votes
3 answers

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 controller's 5v pin. I am connecting 7.5v to the…
Quazi Irfan
  • 146
  • 1
  • 9
2
votes
2 answers

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.
2
votes
2 answers

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 button or pot: Only 1 motor, I am using a 2S lipo…
LonelyLodge
  • 33
  • 2
  • 4
2
votes
0 answers

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 triggered the support wheel. The support wheel is…
2
votes
2 answers

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

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 is: If I want to get the live feed of the view…
2
votes
1 answer

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 when I put them in the code together, only the…
Jim421616
  • 188
  • 1
  • 10
2
votes
1 answer

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 IN2 = 8; // MCU Digital Pin 8 to IN2 on L298n…
Dixit
  • 21
  • 1
2
votes
2 answers

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 smartphone. Everything is working fine. But if a…
Joe Rakhimov
  • 121
  • 1
  • 2
2
votes
0 answers

Servo.attach method causing strange issue

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 NiMH batteries. This battery source also powers a…
Don Grey
  • 71
  • 1
  • 4
1
vote
0 answers

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 occurs in the second motor (Out 3 and 4 of driver.) It…
HexaTech
  • 11
  • 2
1
vote
1 answer

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 int IN1 = 13; int IN2 = 12; int IN3 = 8; int IN4 =…
Emir Sürmen
  • 111
  • 3
1
vote
1 answer

servo motor and l298n motor driver doesn't work together with esp32

so basically I am using 4 servo motors for our robotic arm and 1 l298n motor driver for 2 motor drive for base of the arm. when I individually tested robotic arm and controlled 4 servo motors, it worked perfectly fine, at the same time when i tested…
1
vote
0 answers

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 motors are not reacting to the tilt at all. The…
Sergei Glimis
  • 149
  • 2
  • 6
1
2 3 4 5