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
Excellent description & very helpful to enhance application knowledge on stepper motor & Arduino !We hope to see you with your more tutorials of steeper motor application for use in a letter engraving machine , router machine & other applications ! Thank you so much Sir for this educative post !
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.
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
Hi, not sure what you have done with the code. have you watched this second video on this stepeper? ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-csf_G1pi0ps.html
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.
Hi, please view this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-csf_G1pi0ps.html I have talked about "Hold" and "stop" to reduce the energy waste. If you did not understand tehe ENA and ENB, then you should watch it gain.
Hi, First of all thank you for making this wonderful tutorial. I have followed the steps of your video with my Nima17 motor and L298N driver. But at slow speed (below 60) its just giving a jerk not even a complete rotation. I didn;t change any value of Example provided in Arduino but the motor was not running as your was runing at same value. However, once i increase the speed it did revolved smoothly. Can you please help in this regard as am doing this tutorial to control stepper motor at slow speed (but more torque). Many Thanks!
I just figured out through guidance in your video that i was using less power supply and low speed motor was drawing more current. Now its working with changing power source
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
Hello Sir Thanks for the video and very clear step by step explanation Please let me know how to control the without Aurduino ? Can I be able to control this same stepper motor with driver board by other means ? If yes what signals I need to feed the Driver module ? I am planning to use a PWM signal from other module
you are welcome. PWM is not the right way but can be done. this is all about counting. You can learn it from other video here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Sl2mzXfTwCs.html
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 ????
Thanks for taking the time to share. An analog dial something like a temperature indicator using a thermistor or make an hour,minute,second hand of a clock. In an age of ultra cheap time keeping it is a Dinosaur but with so much salvaged parts laying around it might make an unusual display. I do not want anyone to do my assignment for me but it is nice to have help when encountering a bad block on the road to completion.
Wow. You are welcome. I am pleased that you used it. I spent so much time to fix and Write english subtitle and then create over 70 languages for the video. We just started working on the buttitles. Your comment is very important so I know people watch it in other languages. Thank you.
sketch uses 3262 bytes (10%) of program storage space. maximum is 32256 bytes. global variables use 230 bytes (11%) of dynamic memory, leaving 1818 bytes for local variables. maximum is 2048 bytes. an error occurred while uploading the sketch avrdude: ser_open(): can't open device "\\.\com5": the system cannot find the file specified.
i am facing the same problem had tried all the solutions changing wire combination, code, pins drivers but the motor is still sometime gives a beep only or rattles with beep and the strange thing is that motor is showing continuity in all four pairs, led blew up no matter what the wire combination is it show continuity on pairing 1,2 -1,3 -1,4 and so on for all. I had tried running motor directly with arduino without motor driver and it is running, but facing issue while it is connected to CNC shield with A4988 driver. I am using Arduino uno and motors are 4 pinned. Could you please tell me what I am doing wrong?
Can you help me setup a pair of stepper motors designed to control the four compressed air exhaust needle valves which are rotated via stepper motors, please? The 2 control air valves drive a set of two 2-way pistons, the piston shafts provides an End of Course and a start of Course reed switch contact closure: The goal is to detect the paired contact closures timing difference, and automatically adjust the corresponding needle valve setting until they are synchronized. IE: P1UP sensor and P2UP sensor need to be closing/opening simultaneously, or a timing difference P1UP - P2UP is produced that will cause the P2UP needle valve stepper to adjust the air escape rate until P1UP-P2UP is again 0. Can you use this as a practical example in your videos?
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 !
Here I use the current sensing with this shield which uses similar motor driver Current Sensing with Arduino Motor Shield with L298N L298P ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--uQKBDTWHPM.html
Hello. Help me please! I can't start my stepper (nema 17) with arduino. I did what you say in video but my stepper is twiching and don't go correct. And driver is very hot...... I changed driver, changed stepper, changed arduino and this all useless
check wiring. if you can't follow the way I've shown, then try all 16 possible ways connecting them. name the wires A, B, C D and then pins for example 1, 2,3 4. so start with ABCD, then ABDC, ACDB, ADCB .. . do this in 16 ways.
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?
I am trying to use Arduino uno with rf24 and l298n to wirelessly control 2 12volt dc motors, 2 stepper motors, a servo, and a led. i want to use my laptop keyboard to control it. I am new to programming and any help would be great. I already have it built and wired i just need help with the code as the one i wrote does not work.
Hello, this video is on Stepper and there is no wireless. I have tones of DC motor videos. Here is one video to control 2 DC motors over Wifi ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9lxdIAvV0l0.html and if you are new to ESP8266, then watch this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-pLvqh57T3s4.html
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
what should we do if we stepper motor run specific times( for example 10 times ) in one direction with same speed and same step number until hit the limitswitch and change dir actually ı've done all of part but there is only missing part is '10 times' I've tried for loop but it didnt work.
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.
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?
Hi, the motor I used it simply called NEMA17. For your motor you need to get that datasheet and see how the internal wiring is done. Then it would be simple if you watch this video. Cheers from Canada 🇨🇦
tHX AHMAD. i am trying stepper 28BYJ-48; the simplest for L298. Using the sepped routine in lib, motor is rotating but at low speed: arger V into mA) and the stepper STOPS with hi pitch . I use ext VCC with damp 220uF cap but still wont y pass the observed rpm of 0.16 rpm ;;1/6 . The speed parameter i use is 10 to 15. Any higher , the stepping it stops. All the leds are lighted when this happens. My statement MAP does 10bit 1023 for the ADC to range 100; but is not even close to 20%. If I put highr value in the maping ceiling, the steeper stalls.. I will tryt getting the nema17. have good time. J@@robojax
Hola, el error de Arduino la mayoría de las veces se trata de la línea de arriba. Mira esto. esto parece estar bien. También he actualizado el código en robojax.com
@@robojax Muchas gracias todo correcto. Otra pregunta porque se calienta muchísimo el modulo L298N y también se calienta mucho con el controlador A4988 el motor mena 17.
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?
I have a video on how to use current sensing ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--uQKBDTWHPM.html but you gotta wach and learn. once you learn you can use it anywhere. The chip in this video looks different but exact feature.
it is the matter of HOLD or just stop. I have explained it here in the second video in this series ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-csf_G1pi0ps.html
Will a bit bigger DC stepper motors hold its position, if lets say it turns something heavier, (0.5-1 kg to be precise so not really too heavy) will it hold its position where the weight of the object wont push on the rotor essentially turning it? So in other words when I turn the heavier object with this, by a number of steps, and I stop the motor, will the weight of the object turn the rotor changing the angle? Or will I need a motor with some kind of a brake? I am fairly new to this and I need some kind of a motor for a little project of mine, I have concerns the weight of the object would just turn it around when I stop the motor. Thanks if someone would try to explain
Hello, I have used brake and hold two different features so it holds the motor see it I. This video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-csf_G1pi0ps.html
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
Great video. Thank you! When I use the L298N with my SY42STH47-1684MA stepper motor running at 12V, the L298N gets really hot. Do you know why this may be?
You are welcome. When you connect 12V to the module, it passes the 12V to the motor. Perhaps your motor is not rated at 12V or it is over loaded. if there is no load and still getting hot, it could also be that the signal is going to the motor to hold it in a position but the motor should tolerate that. So check the voltage of motor unless the wiring is incorrect.
The L298N is not really made to run steppers you would be better off spending a bit more on a TB6600 or an A4988. If you do still want to use the L298N you need to have a fan blow on it.
Hi, why should it be connected to USB? I think you have skipped most stuff on Arduino. Please start Arduino Step by Step Course (over 150 lectures) Starts here robojax.com/L/?id=338
Hello, I am wondering why my L298n heat sink is getting very hot, is that normal? I have 12v 7.2AH/20H battery hooked up to a ZK-4KX buck-boost converter that I have set to 12v, 1.8A output.
Hello, it is the difference between HOLD and STOP which I have explained it in this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-csf_G1pi0ps.html and Hold is consuming lots of power to hold the motor.
I am glad you found my tutorial useful. Here is $200 Arduino course for free Arduino Step by Step Course (over 100 video lectures) Starts here robojax.com/L/?id=338
What about sample wiring connection for 24Vpower supply to drive two 24V DCmotor, using Arduino Uno along a breadboard. Assuming Arduino Board is powered by 9V Battery, ENA and ENB enable.
this is the wrong video. if you are you look at to run DC motors, then here is the video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2JTMqURJTwg.html fully explained and here are all videos where L298N is used ru-vid.comsearch?query=L298N
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.
I am beginner with Arduino. But from data sheet it says Vin 6-12V (or 7-12V). I am confused. Should it be 7-12V Or 5V? Or 5V goes into 5V pin? (11:07 in video)
I had to watch the video to make sure I've explained it. and indeed I did. Please watch from the beginning where I explained the module at 3:45 and then the wiring section at 10:20.
Seems like this code can't be changed to make it work for anything other than a full revolution. Also doesn't work for slow speeds. Attaching any mass at such a high speed means the momentum keeps it spinning and negates the purpose of using a stepper motor. How can I attach a mass to the Nema 17 stepper and make it move precisely 40 steps (1/8th of a revolution)? I think if you had helped the person with the arabic name below then it would have stopped me from wasting time on this code.
I have provided code to control the speed. it is in the library. I will make more videos on controlling stepper motor with push buttons. For the comments I don't see it yet as I have one page showing all comments from all videos. I will visit the video and read the comment.
Thank you. there are tones of articles to know how stepper motor works. but for Arduino, if you know how a motor works, then you can write code. watch this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-csf_G1pi0ps.html and search my channel I have so many videos on different motor where you can learn. good luck.
This for this who want to learn. Module is fully explained which I mentioned each pin name. Learn that , you don’t need diagram. If you need typhus for school project , then draw it using free software called fritzing
Please see the second video I have created to eliminate the issue of heat. See the link in description or search my channel. It is about stop and hold.
As far as the step and direction is concerned, can I switch a 5VDC signal without the use of an external computer or aurduino? I would like to use a very simple handheld box with a switch (up/down) to move a motor cw and ccw. I have used STAC5 controllers in this way with a fixed velocity. 5VDC to the step input energizes the motor and then adding a 5VDC signal to the dir changes it's direction. Thanks!
I have another video where you can stop or use hold . holding consume more energy. Search on my channel for "stepper" and you will find it. Here is how to find Specific RU-vid Video in a channel bit.ly/findRU-vidVideo