Control Position and  Speed of Stepper motor with L298N module using Arduino

Control Position and Speed of Stepper motor with L298N module using Arduino

Robojax

5 лет назад

431,906 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@MakerDan55
@MakerDan55 - 01.12.2022 06:12

Thanks for the great video. I usually use the A4988 Stepper Motor driver and with those, you have to set the current limit so you don't burn out your stepper motor. How do you control the current limit with the L298N?

Ответить
@muhammadkuronos6144
@muhammadkuronos6144 - 18.12.2022 15:23

Excuse me sir, I'm using stepper NEMA 17 with l298n driver, but my power supply is 12v, 3 ampere, how do I limit the amps to 2 ampere because my l298n get overheated, will using resistor on the wiring will solve it?

Ответить
@portlyoldman
@portlyoldman - 14.01.2023 06:45

Just found our channel after much frusta searching and you have loved the clearest explanation of this topic !

Ответить
@joshlinehan3888
@joshlinehan3888 - 31.01.2023 17:19

Great explanation, is that a 1k potentiometer you use?

Ответить
@jboy6944
@jboy6944 - 03.02.2023 03:21

Lovely video.

Ответить
@joshlinehan3888
@joshlinehan3888 - 07.02.2023 20:12

Hi Robojax, is there anywhere I can view the full code for the speed control using the potentiometer. I see the position control code on the video but only half of the speed control. Thanks

Ответить
@jemyj2591
@jemyj2591 - 09.02.2023 16:12

Love you bro

Ответить
@jp15sil24
@jp15sil24 - 01.03.2023 22:15

You said in the video, the arduino has no power , the board with the L298N has power. We just the ground between arduino and the L298 board. We do not need power on the arduino ????

Ответить
@malikwijaya123
@malikwijaya123 - 14.03.2023 05:05

Does the value of the potentiometer resistance have any effect?

Ответить
@principecristiano
@principecristiano - 30.03.2023 20:02

gracias , será útil esta información para el L293D de un solo microcontrolador ,supongo que se programa igual en arduino, un saludo

Ответить
@Locomotive84
@Locomotive84 - 05.04.2023 14:59

Lovely video.

Is it possible to move the rotor randomly?

Ответить
@90FF1
@90FF1 - 29.04.2023 23:48

Have a project. Need some answers. Where is the best resource. Of course! Robojax is #1.Thank you. Exactly what I was looking for and clearly explained. Thank you.

Ответить
@giuseperangel9647
@giuseperangel9647 - 05.05.2023 17:45

Thank you for lesson teacher!

Ответить
@jayaprakashnv3953
@jayaprakashnv3953 - 09.05.2023 17:03

🙏🙏🙏

Ответить
@Bgaun
@Bgaun - 18.05.2023 15:41

Whenever I try this for speed control, my potentiometer has no effect. My potentiometer says b10 K on top. I really need to get this to work. Any advice?

Ответить
@diydantex6150
@diydantex6150 - 06.06.2023 03:37

Thank you

Ответить
@juliuscaesar5001
@juliuscaesar5001 - 14.06.2023 00:14

Hi robojax, thank you, I did exactly what you did in the video, my nema stepper is running on the code but the module gets hot quickly, like very hot, the power supply is 12 volt 5 A, what's the solution, thanks

Ответить
@Mojtba-rk8pu
@Mojtba-rk8pu - 08.07.2023 08:36

عالی بود ❤

Ответить
@DoRoy-ph6kw
@DoRoy-ph6kw - 20.07.2023 00:25

how to connect on just L298N the clockwise and counter clock wise rotation of stepper motor without arduino

Ответить
@severiaquevedo8614
@severiaquevedo8614 - 26.07.2023 10:02

Por

Ответить
@shadowfighter7085
@shadowfighter7085 - 03.09.2023 11:23

Why my l298n driver is getting very hot

Ответить
@monger1020
@monger1020 - 06.09.2023 02:04

thank you I spent hours tying to figure out why it was just jittering, and it was the ground from uno to power supply!

Ответить
@grahamgideon9485
@grahamgideon9485 - 08.09.2023 16:15

This is a very good and helpful video.
My stepper motor is just jittery and not rotating how can i solve this problem # i am using a 9v battery.

Ответить
@apoloszombre9285
@apoloszombre9285 - 10.09.2023 00:11

Hello Sir how are you? excuse me I would like to ask you for help for my Arduino code, in reality I designed the code and it does not work, it is a semi automatic cleaning, the cleaning will be done from a push button and automatically and the automatic cleaning will be done every month from 6am

Ответить
@alaninness8113
@alaninness8113 - 15.10.2023 20:31

One problem of this pre-made board, does not make the current sense pins of the L208 available in order to use a translator IC such as L297 and picmiocro, so that any current rated motor under 2a can be used, regardless of voltage,. The motor used with the board Has to be 12v !

Ответить
@bigbear333uk1
@bigbear333uk1 - 20.10.2023 18:59

Great video but one problem is that my driver heatsink gets really hot to the point that i cant touch it. Do you know why that is?

Ответить
@Dancopymus
@Dancopymus - 05.12.2023 03:10

Hello teacher, first, thank you for the video.
It worked for me, connecting the pins in the sequence 8, 10, 9, 11. However, the Drive CI of the L298N Module is getting very hot. Does this have to do with the two ENA and ENB jumpers? (I left them connected). I'm using 12V (external) to power the L298N Module and the Arduino I'm powering via USB from the PC. My Step is an STP-57D101-01 (1.8 DEG/STEP 3.6V 0.8A.
If you can answer me, I would appreciate it.

Ответить
@ramybrahim3188
@ramybrahim3188 - 27.12.2023 18:08

Thankyou Prof
From Morocco

Ответить
@hernangarcia1690
@hernangarcia1690 - 10.02.2024 10:00

Exelente
Gracias por compartir sus conocimientos

Ответить
@robertleonard7339
@robertleonard7339 - 27.02.2024 21:31

I know this is an old post but you have helped me more than you know. You're GREAT!

Ответить
@bablugaonkar666
@bablugaonkar666 - 01.03.2024 14:35

What is the value of potentiometer plz replay

Ответить
@tamborileyro
@tamborileyro - 12.03.2024 23:15

RJ. Thank. My question : I have a Siemens step motor 1BC 2826 6AG. Has two ports. Each with (rfed,black,brown tern of wires). None is connected to other one. Hos can I discern how to connect this to L298. Cheers from Italy. Wait for your feedbcak. J. Could you give the brand and model of the stepper you used in the video?

Ответить
@alberoejearll.3484
@alberoejearll.3484 - 14.03.2024 13:33

Can you help me sir?
Arduino: 1.8.19 (Windows 10), Board: "Arduino Uno"


sketch_mar14b:4:19: error: 'stepsPerRevolution' was not declared in this scope
Stepper myStepper(stepsPerRevolution,8,9,10,11);
^~~~~~~~~~~~~~~~~~
C:\Users\MOON_B~1\AppData\Local\Temp\arduino_modified_sketch_748971\sketch_mar14b.ino:4:19: note: suggested alternative: 'stepperPerRevolution'
Stepper myStepper(stepsPerRevolution,8,9,10,11);
^~~~~~~~~~~~~~~~~~
stepperPerRevolution
C:\Users\MOON_B~1\AppData\Local\Temp\arduino_modified_sketch_748971\sketch_mar14b.ino: In function 'void setup()':
sketch_mar14b:11:1: error: expected ';' before '}' token
}
^
exit status 1
'stepsPerRevolution' was not declared in this scope


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Ответить
@Tech23-p1y
@Tech23-p1y - 06.04.2024 07:46

New subscriber here. Thanks for this informative video. Just one quick question, I want to use a push button to execute the start and stop of the code you used. How will I do that? Thanks a lot

Ответить
@mdproForPC
@mdproForPC - 08.04.2024 23:59

one of the bes tut i have seen and will use it much much thanks

Ответить
@AtomDellow
@AtomDellow - 16.04.2024 20:27

Fellow Canadian :) Thanks for the video, it was very helpful, and I've seen a few which kept me looking until I found this one.

Ответить
@mixme8655
@mixme8655 - 20.04.2024 17:23

I like your videos many important tips I learned thank you for sharing

Ответить
@sunaybayraktaroglu
@sunaybayraktaroglu - 23.04.2024 21:51

Super bir anlatım olmuş. Tesekkurler. Yabancı Dil bilmesem dahi yaptım. Supeeeerrrr.

Ответить
@woldecosgrove
@woldecosgrove - 26.04.2024 17:44

Hello the code u uploaded is not working and difference from the video...

Ответить
@chayasulakhe9021
@chayasulakhe9021 - 01.05.2024 12:06

Excellent explained.
Keep uploading new videos... enjoyed, thanks.

Ответить
@LofiLull-it5mn
@LofiLull-it5mn - 05.05.2024 22:04

amazing tricks

Ответить
@frankdoyal6450
@frankdoyal6450 - 07.06.2024 22:50

Nicely done,, wire to pulse regulator are they com from the PCU?

Ответить
@urnamed32
@urnamed32 - 02.07.2024 22:22

Can I use 1 arduino to control 6 stepper motors?

Ответить
@AustinGarrett-d4k
@AustinGarrett-d4k - 29.07.2024 16:47

I’d like to control a stepper with a POT wirelessly. How would I do that?

Ответить
@easy_3d
@easy_3d - 18.08.2024 15:56

my motor always keep on changing the distance, i used the same 200 steps per revolution and wanted to stop at every 50 , 100, 150 , 200 steps, used like a servo, but it is overshooting everytime

Ответить
@bhgtanable
@bhgtanable - 01.09.2024 11:52

Awesome vidz ... here learning up on stepper motor controller ... quick question , I need to control a NEMA 17 but just needed to have a very small moment 1000steps controlled by a cnc encoder without the arduino module in a harsh environment..... thanks in advance.

Ответить
@hectorrojas5592
@hectorrojas5592 - 13.02.2025 18:53

Gracias!!! Thanks a lot. Al fin pude echar a andar el motor paso a paso. I was finally able to get it going!!!

Ответить
@robotics-h1k
@robotics-h1k - 31.03.2025 12:31

Wow thank you

Ответить
@rosstabacoff9439
@rosstabacoff9439 - 08.05.2025 23:50

hello robojax. I have been able to to the projects on your video here except for the motor knob, I think the problem might be in line 32 where you make a correction. This is the error code I get after trying to compile it-C:\Users\pretz\AppData\Local\Temp\.arduinoIDE-unsaved202548-4840-1kgje3g.2dv6\MotorKnob\MotorKnob.ino: In function 'void loop()':
C:\Users\pretz\AppData\Local\Temp\.arduinoIDE-unsaved202548-4840-1kgje3g.2dv6\MotorKnob\MotorKnob.ino:32:33: error: 'steps' was not declared in this scope
int step=map(val, 0, 1023, 0, steps )
^~~~~
C:\Users\pretz\AppData\Local\Temp\.arduinoIDE-unsaved202548-4840-1kgje3g.2dv6\MotorKnob\MotorKnob.ino:32:33: note: suggested alternative: 'step'
int step=map(val, 0, 1023, 0, steps )
^~~~~
step
exit status 1

Compilation error: 'steps' was not declared in this scope

Ответить
@rosstabacoff9439
@rosstabacoff9439 - 08.05.2025 23:51

I have tried two different Arduino boards, could the problem possibly be that I have an up-to-date IDE and the one you're using in the video is an older IDE?

Ответить