Control Speed of Stepper Motor 28BYJ-48 using Potentiometer with Arduino

  Рет қаралды 71,283

Robojax

Robojax

Күн бұрын

Пікірлер
@johnmitchell130
@johnmitchell130 4 жыл бұрын
THANK YOU, THANK YOU, THANK YOU!!!! This code is exactly what I was looking for!!! I really appreciate all your videos! They are very detailed and your documentation is excellent! I want to acknowledge all the time and effort that you take into making your presentations. Very well done, Sir!!! It truly escapes me how anyone could ever give you a thumbs down??? It just makes no sense! Anyway, keep up the great work. You are awesome and thanks again!
@robojax
@robojax 4 жыл бұрын
You are very welcome. I am glad you liked. Your subscription is appreciated. people come for the wrong reason to the video and when they don't find what they want, they thumb down the video. They don't read the title or look at the image. they look for orange but visit garden of apple and then they get disappointed. LOL. stay safe. Greenings from Canada. Ahmad
@eastindiacompany691
@eastindiacompany691 2 жыл бұрын
nice vedio Ahmad shamshiri.
@aaryaprayagi1929
@aaryaprayagi1929 2 жыл бұрын
Thank you so much for the instructions,I wanted to ask if I can follow the same video if I use a nema 17 motor, because I need more torque but with the same functions
@robojax
@robojax 2 жыл бұрын
I have videos. Please search and if you don’t know how to search watch this video kzbin.info/www/bejne/hZnOhpabd7yWftU
@neogayest
@neogayest 4 жыл бұрын
Thank you so much! excellent video and very well explained. I was having some trouble by working with L298N instead of ULN2003 but i figured out how to make it work. Thank you again!!!
@robojax
@robojax 4 жыл бұрын
You are welcome. I am glad you found it useful. Thank you for not skipping the ads and keep watching it. This will help me a lot.
@rhosta03
@rhosta03 3 жыл бұрын
great tutorial Robojax.. Can you teach me how to combined this code with switch rotation with pullup button code just like in your another video? So We can control the speed with pot and also change direction with pullup button as well.. thanks in advance
@robojax
@robojax 3 жыл бұрын
Interesting project. I would have to make a video on that.
@rhosta03
@rhosta03 3 жыл бұрын
@@robojax thank you so much.. i'll wait for it.. may Allah bless you..
@danielavaldezluis7892
@danielavaldezluis7892 4 жыл бұрын
Hi! I've watched your other videos and they have helped me a lot! Appreciate it I'm trying to control the arduino so it can also stop with the use of the know, I erased the 2 conditionals and thats not allowing me to fully control the motor with the arduino. I want to be able to start, adjust the speed and stop it with the potentiomenter. I'd appreciate it if you'd give a hand in this haha, it's for a school project. Thanks
@robojax
@robojax 4 жыл бұрын
Hi, I am glad you found my tutorials useful. I have tones of videos for this stepper motor, please see them all here kzbin.infosearch?query=28BYJ-48 and I am sure you can find something that works for you.
@thomaskuehn6490
@thomaskuehn6490 2 жыл бұрын
Thank you for this Video. I always work with it. It´s verry good . Now I have a questen to you: How can I Stop the Motor with the poti and Start the Motor with the poti in the other way? Thank you for the answert Thomas
@robojax
@robojax 2 жыл бұрын
Hi, turn it to the left and the motor should stop. isn't it?
@robojax
@robojax 2 жыл бұрын
Here is full video with 8 projects for this motor kzbin.info/www/bejne/ioKag2WYjpKAjbc
@thomaskuehn6490
@thomaskuehn6490 2 жыл бұрын
@@robojax Hi, I am sorry the Motor don´t stop it. He goes verry sloly. I have a poti with 10k Ohm .
@tobias-lars.hoeher
@tobias-lars.hoeher 2 жыл бұрын
Hello! I'm Tobias from Germany, although my English is not too good, I follow some projects on your portal and KZbin channel. Since I'm still very much at the beginning with Arduino programming, I'm always looking for projects that I can use as a basis. Unfortunately, I haven't found anything for my current project yet, so I thought I would ask if it would also be interesting for you and if you might want to implement this project :-) I would like to control a stepper motor with Arduino as follows. The following components are to be used. 2 lines matrix display, potentiometer, push button. It would be great to be able to set the speed in percent with the potentiometer and show it on the display. In the second line it would be great if a timer could be set via the buttons. Alternatively, it would be conceivable to set the timer with the potentiometer and the speed with the buttons. Maybe you would like to do something like that and put it online? I would like to build a device with which it is possible to shake or mix spray bottles. BR Tobi
@robojax
@robojax 2 жыл бұрын
Hi, all my codes are free but for custom projects I expect to be compensated. I have received your email. This would cost 100 euro. If you are interested please contact me but this time please provide your email address in the email message.
@DaHappyHooker
@DaHappyHooker 4 жыл бұрын
Great video and very helpful but what would be even greater and very useful is if you could add all three codes for stepper motors you have as one total code. So you can have CW-Stop-CCW with SPEED and PUSH CW and PUSH CCW. This would be a great code to make and share. Thanks Robojax keep up the good work...
@robojax
@robojax 4 жыл бұрын
thanks. I have tones of videos on this motor kzbin.infosearch?query=28BYJ-48 I am sure you will find what you are looking for
@DaHappyHooker
@DaHappyHooker 4 жыл бұрын
@@robojax thanks I will .love your videos
@3cm648
@3cm648 4 жыл бұрын
thanks for help ! your video is always help to me !! solve a lot of my problem ! appreciate it !!
@robojax
@robojax 4 жыл бұрын
You are welcome.
@danielchavez9309
@danielchavez9309 3 жыл бұрын
I have a question, the motor is running in a half step sequence, is it right?
@bylolo4964
@bylolo4964 5 жыл бұрын
🇫🇷 Bonjour ROBOJAX , très bonne vidéo et merci pour le 🔊
@robojax
@robojax 5 жыл бұрын
Salut, de rien.
@604smit
@604smit 5 жыл бұрын
nice job again Robojax, merci
@robojax
@robojax 5 жыл бұрын
Je vous en prie.
@johnmitchell130
@johnmitchell130 4 жыл бұрын
I'm using your code to drive the 28BYJ-48 stepper motor in a laser (starfield) unit. I'm needing to make the stepper motor run 'very' slowly and smoothly. I've commented out the potentiometer code in your example as I want the stepper motor to run at a consistent speed that I've hardcoded into the program. I've set the 'desiredValue = 500', but the code is still just a little too fast. The issue is when I set a higher value (to slow the motor down) it seems to introduce a noticeable 'jerky' motion to the motor. Is there a way to modify the code to make the stepper motor run very slow while smoothing out the steps in its rotation? Just wondering?
@robojax
@robojax 4 жыл бұрын
I ‘v written so many codes for this stepper motor if you search, I am sure you will find something that will work for you. Click on the Robojax logo , then click on videos and search or type stepper yo see all related videos
@rocoroco15
@rocoroco15 4 жыл бұрын
Thank you! Merci! Très bien expliqué!
@robojax
@robojax 4 жыл бұрын
Je vous en prie. Je suis content que vous l'ayez trouvé utile. Ahmad du Canada
@yliu2006
@yliu2006 3 жыл бұрын
Thank you so much for your teaching! May I ask one question? how do you select the array values for the poles from Line 46 to Line49? Thanks a lot.
@robojax
@robojax 3 жыл бұрын
pole1[step] , like pole1[5] will turn pole1 step 5. we have 8 steps but I added step 9 to stop the motor. for for full step on one pole (like pole1) you should have pole1[0] pole1[1] pole1[2] ... pole1[8] Please watch the video multiple times as I have explained it.
@astrovillager
@astrovillager 2 жыл бұрын
Sir , can i make this with aurdino nano?
@robojax
@robojax 2 жыл бұрын
If I had mentioned specific Arduino then yes. All project I have shown will work with all Arduino boards unless I say otherwise.
@marianodigon9009
@marianodigon9009 2 жыл бұрын
Hello! Greetings from Argentina. Do you know what maximum speed a stepper motor can reach? And what specifications do I have to take into account? Thank you!!!
@robojax
@robojax 2 жыл бұрын
Hello, I have explained the speed I. This video so please watch and pay attention.
@robojax
@robojax 2 жыл бұрын
Here is full 8 projects video on this motor kzbin.info/www/bejne/ioKag2WYjpKAjbc
@aceclan111
@aceclan111 4 жыл бұрын
You helped me a lot but it would have been less time consuming if you would have put the code in the description as well
@robojax
@robojax 4 жыл бұрын
the actual code? that is a VERY bad way. I have clean page with related material. Dedicated website which many other people can't have or mange.
@christiansteimberg1974
@christiansteimberg1974 4 жыл бұрын
Great video. One question: what kind of external power source are you using? (output Volts and mAh)?
@robojax
@robojax 4 жыл бұрын
I have connected 5V. This motor needs low current. I have 0-30V 3A power supply .
@SummerFrost23
@SummerFrost23 3 жыл бұрын
Thanks for the tutorial video. May I have the source that states " time = 4x + 1 " ? I could not find any information on this.
@robojax
@robojax 3 жыл бұрын
I tested it and found it.
@SummerFrost23
@SummerFrost23 3 жыл бұрын
@@robojax Good piece of information. I tested it last night and it really works. Also, delayMicroseconds () may give more accurate timing because delay() function only takes integer number. Thanks again.
@Greatcriate
@Greatcriate 4 жыл бұрын
Hi.. thanks for the info.. i want to use both buttons and speed control, please suggest
@robojax
@robojax 4 жыл бұрын
Hi, you should have searched my channel and I've got tones of videos on that here kzbin.infosearch?query=28BYJ-48
@_DarkKnight
@_DarkKnight 4 жыл бұрын
sir which motor has high torque (Bipolar) Nema 17 or (Bipolar)28BYJ-48?
@robojax
@robojax 4 жыл бұрын
Nema 17 is horse with comparing this which is just a bug.
@patadamson9296
@patadamson9296 4 жыл бұрын
Just what I was looking for. Can the same be done with a Arduino nano? Thanks.
@robojax
@robojax 4 жыл бұрын
I am glad you did. yes it can be done with any Arduino.
@kennethsamson5520
@kennethsamson5520 3 жыл бұрын
How to add buttons to change the direction of motor's revolution?? I just need to add buttons and I already got the speed. Thanks in advance
@robojax
@robojax 3 жыл бұрын
Search my channel for this motor and I am sure you will find something useful.
@reggylippens6259
@reggylippens6259 4 жыл бұрын
hi there i am building a motorized predator gauntlet with moving blades my friebd advised me yo use 28BYJ-48 but the turnrate is so slow on max speed.....can you advise me a faster one but still compact to install and if possible 5v ? greetings
@robojax
@robojax 4 жыл бұрын
this motor can be slowed down and speed is maximum if you don't change it.
@Leandroirigaray
@Leandroirigaray 3 жыл бұрын
Could you do an acceleration and deceleration ramp?
@robojax
@robojax 3 жыл бұрын
Hi, I have seen the request, I will see if I can write code for it.
@jetoma90
@jetoma90 5 жыл бұрын
Hi! The code works fine for me, but the potentiometer goes the "wrong" way. Max left means maximum speed on the motor. I use const int desiredValue = 40;//time in sec for a Revolution const int dir = 1; // 1 for CW and 2 for CCW Everything is doublechecked according to connections. Can you help me out?
@robojax
@robojax 5 жыл бұрын
Please watch the video again when I mentioned the potentiometer. You have to switch the two wires of potentiometer (not the middle wire) but the other tow wires.
@星宿野菜
@星宿野菜 4 жыл бұрын
May I use a 10k potentiometer?
@robojax
@robojax 4 жыл бұрын
Yes. anything from 1k to 100k will work.
@星宿野菜
@星宿野菜 4 жыл бұрын
@@robojax Thank you very much!!
@michaelzajac5284
@michaelzajac5284 2 жыл бұрын
Please you teach me how to use XOD with Motor Speed?
@robojax
@robojax 2 жыл бұрын
never head of of XOD.
@animatesnews235
@animatesnews235 4 жыл бұрын
Hi, excellent teaching style and v informative vids. Thank you. Im currently struggling with a byj48 to get fine speed resolution, (range 10s to 12s per rev) with resolution down to 0.1s as a minimum requirement. Is this even possible? Thanks in advance of any guidance. Peter
@robojax
@robojax 4 жыл бұрын
Hi, thanks. Here are my other video related to this and I am sure you can find solution in one of them. kzbin.infosearch?query=28BYJ-48 read the titles carefully or watch to find what you are looking for.
@marcelofuentes2874
@marcelofuentes2874 3 жыл бұрын
This max speed can be only achieved with potenciometer?
@robojax
@robojax 3 жыл бұрын
I just your comment after 3 months. Sorry. I belie I explained in the video that we use potentiometer to slow the motor because with the potentiometer the motor runs at maximum speed.
@kostyaunin2900
@kostyaunin2900 5 жыл бұрын
hi. how i can adjust how many steps will do the motor?
@robojax
@robojax 5 жыл бұрын
I would have to make video on that.
@kostyaunin2900
@kostyaunin2900 5 жыл бұрын
@@robojax oh. It will be great. Thank you for you work
@phanquangchung650
@phanquangchung650 5 жыл бұрын
ok, I really like it
@robojax
@robojax 5 жыл бұрын
good to hear that.
@MrQuint1
@MrQuint1 4 жыл бұрын
Hey! I want to have the motor to stop when potentiometer at 0. And to be a a certain speed at 100%. I don't find how! Please help me
@robojax
@robojax 4 жыл бұрын
Hey, I tried to write simple code and post it here, but it seemed not simple as thought. so this need totally different code. this video which start/stop push button might help you kzbin.info/www/bejne/p16raHqYrr1ontE or seel the search result for all video related to his motor kzbin.infosearch?query=28BYJ-48 good luck
@MrQuint1
@MrQuint1 4 жыл бұрын
@@robojax Thanks!
@robojax
@robojax 4 жыл бұрын
you are welcome.
@Nexagon
@Nexagon 4 жыл бұрын
hi, exactly i made same things but my motor is vibrating and potentiometer reacts reverse, (when turn left goes to maximum speed)
@robojax
@robojax 4 жыл бұрын
Hi, then watch the introduction video and run it without pot.the link is in the description. then come to this.
@edyesouza1301
@edyesouza1301 3 жыл бұрын
Muito legal seu projeto será que tem como fazer um carrinho autonamo com motor stepper que devie de obstaculos??? se tiver tem como você me ajudar a fazer um???
@robojax
@robojax 3 жыл бұрын
obrigado. você está falando de 2 ou 3 projetos em um. você precisa detectar um obstáculo usando ultrassom, laser ou infravermelho. então você pode controlar o motor para parar, iniciar ou alterar a velocidade. Tenho vídeo em cada um separadamente. Espero fazer um vídeo colocando-os juntos. Fique seguro. Saudações de Ahmad do Canadá
@edyesouza1301
@edyesouza1301 3 жыл бұрын
@@robojax Ola amigo e que estou montando um escovador de chão ai estava querendo deixar ele autonamo por conta propria com 2 motor Stepper deste podendo andar e desviar de obstaculos, ou usando um celular pra controlar ele também?? mais eu não tenho muita pratica pra montar o codigo ai achei seu canal, será que vc monta ele pra mim???
@mehrdadalaei8692
@mehrdadalaei8692 3 жыл бұрын
How to change the direction of rotation of the motor؟
@robojax
@robojax 3 жыл бұрын
I have tones of videos on that. Search my channel for this motor. Here is how to Find Specific KZbin Video in a channel bit.ly/findKZbinVideo
@muppetpaster
@muppetpaster 3 жыл бұрын
Nice video but I see a problem.....Powering he motor from the Arduinoboard is not a smart idea because DC Current on I/O Pins is max 40mA and DC Current on 3.3V Pin is max 50mA so you are driving the board on the brink of destruction....
@robojax
@robojax 3 жыл бұрын
Yes I have mentioned it perhaps you missed it. I have explained the powering the motor.
@moh2011ka
@moh2011ka 3 жыл бұрын
I have problem with bldc controlling by pot
@robojax
@robojax 3 жыл бұрын
yes of course. this video is for stepper motor.
@geraldcharbonier6313
@geraldcharbonier6313 5 жыл бұрын
12v or 5v ?
@robojax
@robojax 5 жыл бұрын
5V
@VideoStefan17
@VideoStefan17 4 жыл бұрын
thanks
@robojax
@robojax 4 жыл бұрын
You are welcome.
@plazmax
@plazmax 5 жыл бұрын
Gj again, rotary encoder video comin ? :)
@robojax
@robojax 5 жыл бұрын
I have got the hardware but don't know when. Level of interest is low for that and that's why I have left it for later.
@techvideosenglish6021
@techvideosenglish6021 3 жыл бұрын
🙏🙏
@musicsub7684
@musicsub7684 5 жыл бұрын
terimakasih banyak
@robojax
@robojax 5 жыл бұрын
Sama sama.
@nouralhouri9414
@nouralhouri9414 5 жыл бұрын
Where are you from brother ?? And thank you
@robojax
@robojax 5 жыл бұрын
You are welcome. I am Canadian, Afghanistani Persian. أنا فارسي من خراسان من أرض الإمام البخاري ومسلم وأحمد والترمذي وأبو داود وابن ماجه.
@nouralhouri9414
@nouralhouri9414 5 жыл бұрын
@@robojax İ loved you
@nouralhouri9414
@nouralhouri9414 5 жыл бұрын
@@robojax فارس أرض العلم
@FernandoCruz-vq5ez
@FernandoCruz-vq5ez 3 жыл бұрын
Hello very good video I subscribe to your channel. You will have this same video but with buttons for example 4 buttons? Let those 4 buttons have 4 different speed. More than anything, I'd use it to control an astrophotographic tool. Thanks a lot.
@robojax
@robojax 3 жыл бұрын
Hello, it’s search my channel and I have got tons of videos on this motor
@FernandoCruz-vq5ez
@FernandoCruz-vq5ez 3 жыл бұрын
@@robojax Good morning, If I've already seen the video but it's only one button that turns left and another button on the right, I'd like the same button to have different types of speeds. Or if you can 4 buttons one with each speed. I hope it's not too much to ask I'm new to Arduino and it makes it difficult for me to code. Best regards
@robojax
@robojax 3 жыл бұрын
Did you check STPB-5 video? It has multiple push buttons each for different angle
@FernandoCruz-vq5ez
@FernandoCruz-vq5ez 3 жыл бұрын
@@robojax If this is the idea, but that the turn remains constant and does not stop, when you press another button, change to another speed. For example, program 4 buttons, the first one that has a constant 60 seconds, the second 1 constant every 45 seconds, etc. More than anything because I have a mount for a photographic camera and I want to compensate for the rotation of the earth and keep it fixed. the movement of a nebula in my camera and not lose sight of it and achieve a longer exposure time
@arduinohobby
@arduinohobby 5 жыл бұрын
Подключение шагового двигателя 28BYJ-48 с драйвером на микросхеме ULN2003 к Arduino Uno kzbin.info/www/bejne/bpOQapeooqeDirs
@robojax
@robojax 5 жыл бұрын
Здравствуйте, я оставлю ваш комментарий со ссылкой на этот раз. Пожалуйста, не размещайте ссылки. Пожалуйста, ответьте на этот комментарий, чтобы я оставил ваш комментарий.
@arduinohobby
@arduinohobby 5 жыл бұрын
@@robojax Оставьте, не удаляйте. Спасибо.
@robojax
@robojax 5 жыл бұрын
Добро пожаловать. Нет проблем. На самом деле я могу читать и писать по-русски, но я забыл говорить. Я помню несколько слов, а также песню Калинка.
Control Stepper Motor Speed & Direction with Arduino and a Potentiometer
13:18
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Chapter 10 - Exploring Stepper Motors (28-BYJ-48) with an Arduino
27:26
DIY haptic input knob: BLDC motor + round LCD
2:11
scottbez1
Рет қаралды 2,3 МЛН
This Component solves "All" Motor Problems?! (Motor Encoder) EB#58
11:34
Control a Stepper Motor with Hall Effect Switches
28:13
DroneBot Workshop
Рет қаралды 248 М.
28BYJ-48 Stepper Motor and ULN2003 Driver Intro
21:03
Bret Stateham
Рет қаралды 557 М.
Experimental Drone Positioning System
17:36
James Bruton
Рет қаралды 212 М.
Basic Setup of GRBL CNC Shield + 28BYJ-48 Stepper motor + A4988
8:19
Mr Innovative
Рет қаралды 418 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН