Control Speed of Stepper Motor using L298N with Push Button Switches STLPB-01

  Рет қаралды 54,513

Robojax

Robojax

Күн бұрын

Пікірлер: 112
@houssamlouati4085
@houssamlouati4085 3 жыл бұрын
برك الله فيك اخي وجعلها في ميزان حسناتك متابع جديد لك من الجزائر
@robojax
@robojax 3 жыл бұрын
آمین اخی. شکرا . أخوك الفارسي من الخراسان الکبیر دیار الإمام البخاري. الإمام الترمذي ، الإمام مسلم ، ابن ماجه. الان افغانستان. أنا أعيش الآن في كندا
@tusharmestry696
@tusharmestry696 Жыл бұрын
Hello Sir Great Video to learn Thank you for sharing.
@grzegorzimioek2432
@grzegorzimioek2432 18 күн бұрын
Hello, how can you implement an engine speed control program using two buttons, one increases the speed and the other decreases it? Regards
@alanmcrae2500
@alanmcrae2500 7 ай бұрын
Hi, I want to control a stepper motor with arduino. I require a start/stop with up and down speed push button control, 1-60 rpm. Also I need to use arduino 2 line display to show rpm between 1-60 in increments of 1 via Pb. How can u help me? Regards Alan McRae
@tusharmestry696
@tusharmestry696 Жыл бұрын
I want to write a program, complete set up same but only 2 button if I press cwbutton it should move clock wise if I release button it should stop, same if I press ccw button it should rotate counter clockwise if button related it should stop. Also should be able to varry the speed using potento meter instead of writing values in code. Can you Help?
@MrLodzin
@MrLodzin 3 жыл бұрын
Great video Ahmad. Tumbs up !
@robojax
@robojax 3 жыл бұрын
Thanks 👍
@electronic7979
@electronic7979 4 жыл бұрын
Her zamanki gibi mükemmel bir video. Her saniyesini keyifle izledim.
@robojax
@robojax 4 жыл бұрын
Teşekkür ederim. Türkçe altyazı da dahil olmak üzere altyazılara çok zaman harcadım. Umarım açıktır.
@electronic7979
@electronic7979 4 жыл бұрын
@@robojax Merhaba. Altyazılar anlaşılır. Altyazı hazırlamak zaman alıyor ama youtube da izleyici kitlesini epeyce arttırıyor. Bende videolarımı ençok kullanılan dillere göre altyazılı olarak hazırlıyorum.
@robojax
@robojax 4 жыл бұрын
Kanalınızı yeni ziyaret ettim. İlginç videolar. Herşeyin gönlünüzce olması dileğiyle. Türkiye'de nerede yaşıyorsun?
@electronic7979
@electronic7979 4 жыл бұрын
@@robojax Teşekkür ederim. Türkiye de İzmir de yaşıyorum.
@michaelwdunedinnewzealand2993
@michaelwdunedinnewzealand2993 2 жыл бұрын
Hey Ahmad, I built this circuit and it works great however I need to slow down the speed of the stepper motor , How can I do that with a potentiometer or your suggestion for this specific circuit. I prefer this circuit because its already built and working so I just need to add a speed controller too.
@robojax
@robojax 2 жыл бұрын
Hi, this is the end video on NEMA stepper series. In this video kzbin.info/www/bejne/mYq3enagaamKj8U I have mentioned speed. in the current video there were speed control. but watching the first video will help you understand the speed values.
@michaelwdunedinnewzealand2993
@michaelwdunedinnewzealand2993 2 жыл бұрын
@@robojax this is not helping me. I asked to use a potentiometer with this circuit so that I can control the motor more precisely. Your code does not permit me to lower the speed enough for my purpose.
@Dancopymus
@Dancopymus 3 жыл бұрын
First of all, thanks for the excellent stepper motor tutorial! I have two questions: 1) It worked perfectly but my engine is heating up a little; I'm connecting the L298N with 12 volts. I don't know what the motor voltage is; it's a small MITSUMI engine (the label came out). 2) As I said, your project is excellent but, in particular, I think it would be much more useful if one of the buttons turned the engine in the opposite direction! Thanks again
@robojax
@robojax 3 жыл бұрын
you are very welcome. Yes you gotta find out the voltage. for the push buttons switches, I will make more videos. the possibilities are endless. I have them on my list.
@Dancopymus
@Dancopymus 3 жыл бұрын
@@robojax Okay, let's say the motor is 5 volts, so how can I start it on the L298? Can I power the L298 with 5 volts?
@robojax
@robojax 3 жыл бұрын
yes you can power it up it with 5V. just try it. Lower voltage has no harm in the module.
@sam35696
@sam35696 2 жыл бұрын
Many thanks to you its so useful .
@robojax
@robojax 2 жыл бұрын
You are welcome. The best thank you for me is to subscribe to my channel. Thank you.
@Amrsaadany-dir
@Amrsaadany-dir 4 жыл бұрын
Hi Ahmad, great Tutorials, i learned a lot from you, quick question :) . I am using a Nema 17 with A4899 driver, it keeps screaming and vibrating, and it moves when I touch it with any metal object. Appreciate your reply thanks!
@robojax
@robojax 4 жыл бұрын
You are welcome. I am glad you found my tutorials useful. it means you are using wrong library or incorrect wiring.
@Amrsaadany-dir
@Amrsaadany-dir 4 жыл бұрын
Is there specific ways To test for these? Thanks
@thehaseeb9136
@thehaseeb9136 3 жыл бұрын
Bro have u resolved that issue ?? I am facing same issue
@jmargarson
@jmargarson 3 жыл бұрын
Thanks for the tutorial. If I wanted the code to work when the inputs go high would it just be a case of changing the code from (speedPBInc, INPUT_PULLUP) to (speedPBInc, INPUT), (digitalRead(speedPBInc) ==LOW) to (digitalRead(speedPBInc) ==HIGH) and adding a pull down resistor resistor?
@robojax
@robojax 3 жыл бұрын
Yes, correct
@jmargarson
@jmargarson 3 жыл бұрын
@@robojax Thank you
@robojax
@robojax 3 жыл бұрын
you are welcome.
@jamesgoacher1606
@jamesgoacher1606 4 жыл бұрын
Interesting. I am at the foundation level at the moment gradually getting throught the fundementals but I think I am sure to want a Stepper Motor as a servor at some time in the future.
@robojax
@robojax 4 жыл бұрын
I am busy working on more Stepper motor control and writing codes. This is the interesting components. it can be controlled very precisely. Good luck with learning.
@Masonstravels
@Masonstravels 2 жыл бұрын
Robojax, in the description link for the code, it appear the bottom portion of code is cut off. Would you be able to post the code as a reply so that I may see the full version? Thank you.
@robojax
@robojax 2 жыл бұрын
Hi, Thank you for letting me know. I just fixed it. We have migrated our website to another publishing platform and a few got issue. I appreciate you letting me know.
@Masonstravels
@Masonstravels 2 жыл бұрын
@@robojax May I also ask which specific model of NEMA 17 motor did you use? I am using a stepper motor to actuate a crank slider mechanism to simulate a shaker table, so I just wanted to compare the spec sheets of this motor to other NEMA 17 and NEMA 23 motors I am considering. I want to ensure I have enough torque to still move my base when operating at 100-200 Hz. This setup is exactly what I need, just unsure about my specific motor selection with many motors suiting my application exceeding the current for the L298N, so I don't want to 'fry' the driver.
@rommelvillegas
@rommelvillegas 2 жыл бұрын
Great design, I really learned a lot. Worth subscribing for. Sir RJ, wondering if adding 4th SW to be able to interchange directions. If switched the direction would change instead of going to the sketch and manually changing them. What are your thoughts? looking forward ont he next video...have a good day Sir
@robojax
@robojax 2 жыл бұрын
I am glad it helped. I've added into my list to make video when I got time for it. thanks
@youeng1
@youeng1 3 жыл бұрын
Dear Ahmed, Could you help me, how can I increment and decrement counter quickly when have hold press push button. With My Best Regards
@robojax
@robojax 3 жыл бұрын
Hello, if you didn't learn it from this video, then watch the main video kzbin.info/www/bejne/mYq3enagaamKj8U
@youeng1
@youeng1 3 жыл бұрын
@@robojax Dear Ahmed thank you for quick response, It seems you didn't understand my question well. I'm a pretty good programmer, and I have another Arduino application about the motor control by pushbutton , my question is (every pushbutton press will only do one increase or one decrease. ""While, when we pushbutton press and hold will do increase or decrease quickly""). what is the addition to the code to make the hold pressure work. Best Regards.
@symontorres3952
@symontorres3952 2 жыл бұрын
is my power supply 11.1 v with 3000 mah cause the overheating of my driver and motor?
@robojax
@robojax 2 жыл бұрын
Search for my other video for this motor where I have shown how to use stop or hold which reduces energy consumption.
@mohammadsantosochannel4921
@mohammadsantosochannel4921 4 жыл бұрын
hi, your video about this tutorial is very good, can the program be made on the menu that displays on the lcd?
@robojax
@robojax 4 жыл бұрын
Hi, interesting idea and I will see if I can make video on that. Thanks.
@vutruongoffical1789
@vutruongoffical1789 4 жыл бұрын
thank you
@robojax
@robojax 4 жыл бұрын
You're welcome
@erbarwinder9347
@erbarwinder9347 3 жыл бұрын
Hi, Sir can you help me I have created a program that controls the motion of the stepper motor in which i have used the L298 driver , but now I'm stuck at one point , I'm not able to apply anticlockwise motion via push push button (PB IS ACTUALLY LIKE ELECTRIC CONTUNITY PATH (please suggest me how i apply if command)...... Actually it is a robotic machine where if electric continuity is High then motor rotate anticlockwise & if electric continuity will LOW Motor will be remain stop // Include the Arduino Stepper Library #include int i=0; int PB=13; int RELAY=12; // Number of steps per output rotation const int stepsPerRevolution = 200; // Create Instance of Stepper library Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11); void setup() { // set the speed at 60 rpm: myStepper.setSpeed(60); // initialize the serial port: Serial.begin(9600); pinMode(PB, INPUT); pinMode(RELAY,OUTPUT); } void loop() { while(i
@robojax
@robojax 3 жыл бұрын
Remove all serial prints
@riananti8804
@riananti8804 4 жыл бұрын
hi ahmad .. interesting tutorial .. but I want to ask if the motor speed can use a potentiometer that uses a display and still use the start / stop button? I want to get the Arduino program and the wiring diagram I usually use TB5660 driver. thank you very much🙏🙏🙏
@robojax
@robojax 4 жыл бұрын
this code is for L298N. Yes you can use a display and potentiometer. Check my other video.
@riananti8804
@riananti8804 4 жыл бұрын
@@robojax can you tell / give the link you mean? because you have a lot of videos ... 😁
@riananti8804
@riananti8804 4 жыл бұрын
@@robojax and can this circuit use TB5660 stepper motor driver?
@ManuelRochaSA
@ManuelRochaSA 3 жыл бұрын
Great tutorial, is any possibility to add i2c display show the RPM? that will great appreciated, thanks
@robojax
@robojax 3 жыл бұрын
Yes it is possible and I may make the next video on this topic.
@ManuelRochaSA
@ManuelRochaSA 3 жыл бұрын
@@robojax Please do that when possible, thanks
@tedspencer6024
@tedspencer6024 3 жыл бұрын
Very good video can you give me any idea how to add reverse direction to to the sketch Please
@robojax
@robojax 3 жыл бұрын
Hello, this might help kzbin.info/www/bejne/mYq3enagaamKj8U you could search for L298N Here is how to find Specific KZbin Video in a channel bit.ly/findKZbinVideo
@chickenman001
@chickenman001 4 жыл бұрын
Hello tx for a great channel. Is there an L298N that can handle more than 2A. I have a project that will draw higher amperage say 4A. Thank you
@robojax
@robojax 4 жыл бұрын
the maximum current for L298N is according to datasheet with very large heat sink is 2.5A. so you would have to look for different chip like Dual VNH2SP30
@chickenman001
@chickenman001 4 жыл бұрын
@@robojax thank you 😀
@robojax
@robojax 4 жыл бұрын
you are welcome.
@SOUZAELS
@SOUZAELS 3 жыл бұрын
HELLO MASTER...great work you done, i have the same hardware, plus a mega2560, and i need your help, the max speed that i achieve in NEMA17 was 160RPM, i need at least 300RPM, and i need to increase a acceleration, but i dont know how i can d thes, please help me.... i great huge from BRAZIL
@robojax
@robojax 3 жыл бұрын
Hello, the speed of motor is determined by the motor. if you increase the speed in the code, the motor if can , will run at that RPM. There is problem with the quality of motor. also make sure do not print anything on the serial monitor as serial monitor will slow the process. good luck.
@f-magsinoroanurcia5787
@f-magsinoroanurcia5787 Жыл бұрын
hi can i use different push buttons for this.
@robojax
@robojax Жыл бұрын
Hi, push button is a switch. you can use any switch to connect and disconnect two wires.
@f-magsinoroanurcia5787
@f-magsinoroanurcia5787 Жыл бұрын
@@robojax thankyouu. another question can i use powerbank or motor battery for this system to function
@robojax
@robojax Жыл бұрын
Yes if you supply the voltage needed to the motor. Sure
@paulocella9745
@paulocella9745 4 жыл бұрын
I started taking your arduino course..lol
@robojax
@robojax 4 жыл бұрын
LOL
@thenet0120002
@thenet0120002 4 жыл бұрын
Excellent video on programing Arduino.
@robojax
@robojax 4 жыл бұрын
Thank you.
@ilhamrahmatmuharam8501
@ilhamrahmatmuharam8501 4 жыл бұрын
Thanks,, its very helpful Can I use this code for other types of drivers? I used type ULN2003
@robojax
@robojax 4 жыл бұрын
I have tones of videos for that controller. But yes.
@AsakuraAvan
@AsakuraAvan 4 жыл бұрын
what is the model the stepper motor that you're using in this video?
@robojax
@robojax 4 жыл бұрын
The model doesn't matter as long as you get 4 wires motor. You can see the model as 4:35 . Watch introduction video to stepper and you can easy use any motor
@AsakuraAvan
@AsakuraAvan 4 жыл бұрын
@@robojax I've seen a few of your videos controlling stepper motors with the L298N. I've followed the instruction exactly as with wiring and the code but for some reason my stepper motor can't turn smoothly at low RPM, they jitter and turn back and forth at the preset speed of 60 rmp. When I bump it up to 180 RPM and over, it turns just fine. I have tried 5 different motors of the same type that i ordered (4 wire bipolar) and they seen to behave the same way, thats why I was wondering if it has to do with the model of the motor.
@robojax
@robojax 4 жыл бұрын
Hi, you must be have different phase because if you watch introduction for this, you can set i even 1 step and no issue. I am not sure what you do wrong or what is the motor phase wiring. Pleas watch the introduction video and I am sure you will find the solution.
@adamelkoumy5141
@adamelkoumy5141 4 жыл бұрын
Hello Ahmad. Happy Ramadan. Would you please make a video about how to measure high DC current such as 50-100 amps using a shunt and not a current sensor??? shokan salam
@robojax
@robojax 4 жыл бұрын
Hello Tommy, Thanks. Ramadan Mubarak. I have a video for the product that displays up to 100A here kzbin.info/www/bejne/qpjRloFond-Fm5I I just put it on my list.
@adamelkoumy5141
@adamelkoumy5141 4 жыл бұрын
@@robojax I wanted to connect it to Arduino
@robojax
@robojax 4 жыл бұрын
I know some people would need it. God willing I will make 2 or 3 videos .
@adamelkoumy5141
@adamelkoumy5141 4 жыл бұрын
@@robojax inshallah. Thank you Ahmad
@adamelkoumy5141
@adamelkoumy5141 4 жыл бұрын
Also I noticed some empty pins (4 or five) in DC voltmeter ammeter board panel that comes with the shunt. I wonder if they can be handy.
@tanaraj4396
@tanaraj4396 5 ай бұрын
I am using A4988 driver nema motor 17...i m using button but the motor is vibrating
@ortizgab
@ortizgab 3 жыл бұрын
Hi, Ahmad! How can I add direction control?
@robojax
@robojax 3 жыл бұрын
Hi, that need a video. I will make it God willing
@Thuliolima2008
@Thuliolima2008 4 жыл бұрын
very good thanks
@robojax
@robojax 4 жыл бұрын
you are welcome.
@tanaraj4396
@tanaraj4396 5 ай бұрын
Do you have code for A4988 driver
@madhukeshnp
@madhukeshnp 4 жыл бұрын
Please show us how to set home position for stepper motors.
@robojax
@robojax 4 жыл бұрын
I will make video on that.
@paulocella9745
@paulocella9745 4 жыл бұрын
What is the maximum speed in rpm of this nema 17 engine?
@robojax
@robojax 4 жыл бұрын
NEMA 17 has many variations with different voltage and current. Whatever you purchase, make sure you get the datasheet for it.
@factmachan-official4571
@factmachan-official4571 3 жыл бұрын
How control this setup with humidity sensor plese give coding for Arduino for our mini university project please sir
@robojax
@robojax 3 жыл бұрын
You can learn it from kzbin.info/www/bejne/a6m0aamCltuKgbM
@dharmeshdudhaiya3969
@dharmeshdudhaiya3969 2 жыл бұрын
Sir reverse and forward control
@robojax
@robojax 2 жыл бұрын
see the introduction video for this motor.
@rafdtmtm7981
@rafdtmtm7981 4 жыл бұрын
استاذ ولا رابط يفتح وكيف ادعمك من بي بال ممكن توضيح
@robojax
@robojax 4 жыл бұрын
شكرا جزيلا لك. لقد راجعت للتو رابط باي بال ويعمل. هنا هو الرابط مرة أخرى paypal.me/robojaxTV
@bridevalley
@bridevalley 3 жыл бұрын
Video jumps around with apparent gaps and sound levels are all over the place. Not conducive to good learning.
@robojax
@robojax 3 жыл бұрын
Lol you don’t want to lean. You should be sound engineer
@anishshaikh2467
@anishshaikh2467 4 жыл бұрын
1 Rd no 2 stepper motor working
@robojax
@robojax 4 жыл бұрын
you have to provide error code or result.
@auden_builds
@auden_builds 3 жыл бұрын
my driver keeps overheating
@robojax
@robojax 3 жыл бұрын
pay attention to stop and hold explained in the video. Hold is consuming current to hold position.
@Amrsaadany-dir
@Amrsaadany-dir 4 жыл бұрын
Hi Ahmad, great Tutorials, i learned a lot from you, quick question :) . I am using a Nema 17 with A4899 driver, it keeps screaming and vibrating, and it moves when I touch it with any metal object. Appreciate your reply thanks!
@robojax
@robojax 4 жыл бұрын
Hi, it means incorrect wiring or you've changed the code. check it.
Control a Stepper Motor with Hall Effect Switches
28:13
DroneBot Workshop
Рет қаралды 245 М.
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 7 МЛН
What's in the clown's bag? #clown #angel #bunnypolice
00:19
超人夫妇
Рет қаралды 11 МЛН
Flipping Robot vs Heavier And Heavier Objects
00:34
Mark Rober
Рет қаралды 59 МЛН
How electric trains work and why they make interesting sounds
16:17
Stepper Motors with Arduino - Controlling Bipolar & Unipolar stepper motors
50:22
Stepper Motor Controller Without Arduino or Microcontrollers | Simple DIY
5:41
Electrical Projects [CreativeLab]
Рет қаралды 128 М.
Big Stepper Motors with Arduino
29:43
DroneBot Workshop
Рет қаралды 1,2 МЛН
Make a TINY Arduino Drone with FPV Camera - Will It Fly?
20:26
Max Imagination
Рет қаралды 1,1 МЛН
Beginners Guide To Using Large Stepper Motors: #087
19:49
Jeremy Fielding
Рет қаралды 295 М.
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
Controlling DC Motors with the L298N H Bridge and Arduino
36:41
DroneBot Workshop
Рет қаралды 1,3 МЛН
Driving DC Motors with Microcontrollers
1:04:32
DroneBot Workshop
Рет қаралды 673 М.
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 7 МЛН