Nice video and nice way you explain everything. I was looking at the cw, ccw, stop button. Can that be married with a potentiometer for direction change? Thanks again. Good work.
Hello, I am using project 4. How would i transfer this circuit to a pcb, i have tried to do it myself and i think i killed the controller board ? Is it only used on the arduino uno's as i tried to connect to an arduino nano ? I am trying to use the 2 button control. After re-connecting through the breadboard, it now comes up with "drivestepper was not declared in this scope", and i copied the code from yours and included the stepper library. When i very first hooked this up, it worked perfectly and now it doesn't. Is there something that i am missing ? If you like, i can take a screenshot of the error for you to view. Your help with this would be greatly received.
Hi Mr Shamshiri, I used your code for project #5 with NEMA17 and L298N driver to do the same job as you did in project #5. But, my project did not work as you demonstrated in your video. Do you have any suggestion to fix this issue? My stepper motor is making noise but is not moving in any direction; my switches are working, I checked the wiring of my stepper motor with its driver and nothing seemed wrong with that. I appreciate your help.
Wanting top change a standard toy dc motor with a 28byj-48 or similar. Model train transfer table. Problem is the stepper as is with 64:1 is way too slow. Can I use the 28byj-48 without the gearbox? Are they available without gearbox? Not a big load to drive. Thanks
Hi, I have explained how the speed is controlled at the begining in first of 2nd project. This stepper is geared and it is slow. only you can slow it further. The first example shows the normal speed.
can the control for a DM542 be used for larger stepper motors? continue o Robo, track your projects. A control for photovoltaic solar tracking would be great.
Project 4 2 button control - I have setup the exact same way that you have and it works perfect. If i wanted to setup a second motor running from the same arduino, what things would i have to change. i did set the second one up using the same wiring but on different pins on the arduino (obviously), when i went to change the code, it came up with an error. i have since then gone back to one motor on the arduino. all the help you can give me, would be very much appreciated. i do not know much about coding as yet but i am working on it, bit by bit. The project that i will be using it for is push button to open up 2 light doors on a shelf that i have.
Hi, The pins have been defined as variables and all instances of actions like move, stop ,run etc have variables and I mentioned each. you may learn about variables from this video th-cam.com/video/n0z6fjww8eA/w-d-xo.html
how to control steps movements, like lets say we have 400 circular points to move one by one and i need to move pointer in following example sequence starting from 0->10->240->45->28-> .......... -> 400 . How can we automate this ..
Thanks once again for such informative video, im halfway watching it and cant resist to write this. Im just thinking to use stepper motors to control sunshade cover/uncover (made of cloth fabric) at my home pergola, so i have few questions. 1. Can we make maximum steps a motor can run in CW or CCW? so tht when we press CW/CCW button the motor should only run for predefined maximum steps and then stop automatically. 2. In my case, i will need two motors to run synchronized in such a way when i press CW button the First Motor should run CW and other Second Motor should run CCW and vice versa. 3. It would be nice if you make this project in real and share everything related to coding or hardware stuff.
I tried to make in my mind all possible scenarios so people can use them with their projects. 3-all the codes have been provided in the resource page. I checked it and the are there.
Project 5 on this I’m having a problem with. So i hooked everything up exactly to your diagram and copied and pasted the coding and it works. Until….it randomly turns itself on every 30 seconds and then spins for exactly 38 seconds and stops. Any idea what is wrong with it?
what if we want to try same projects with micro stepper tb6600 + Nema17, 200, which runs by 2 poles signal only, will change in pole(s) section of code make Nema to works as 28BYJ-48 like your projects? thanks for your time.
In the project 3, i copied the code and driveStepper, when I compilate, the down thing say "driveStepper was not declared in this scope" how can I fix it? Thanks
any time you see ' not declared" it means that portion of the code is missing. meaning if library is needed you have no installed it. So get that portion of the code or library.
can you help with using a "rocker" switch in place of the 3 button. Rock up to move motor 1 direction, center to stop the motor, Rock down to move motor opposite direction. then when let go, it goes back to center for stop. Add hall effect sensors to both ends of "ball drive screw" to set limits. Using the Stepper Motor Driver DM542T. Can you help with this specific programming and wiring diagram? I will purchase for the work.
Great work man, i loved it, the code is helpful. Keep making more videos. How can we connect two stepper motors and multiple push buttons with led display such that , when i press A push button, the number should increase in display and when i press B push button, the number should decrease, and when i press start/stop button, the stepper motor has to rotate those many times as the number in the display?
Hello, Again thank you for your videos and past help. I have got my project working as i wanted, but my next question can i run 2 steppers with one arduino? I just want to use the one button i have got working with limit sensors, but i want duplicate on another stepper and limit switches but still all controlled with the one button. I am using a Nano every. many thanks
Hello, yes you can. Because I have explained it fully as how it works, it would be very easy to do so. just duplicate all variables for one motor, and make 2nd variable for each. For example if we have a variable like int Pin1 =10; then you define int Pin1_2 =6; and connect motor to to pin 6, so simply add _2 or _3 if you want 3rd motor. and do this for all variables. Then inside the loop or anywhere else, make sure to refer to that variable. this is lesson 107 and if you don't did not get what variable is then watch this data type video th-cam.com/video/n0z6fjww8eA/w-d-xo.html good luck
@@robojax I have understood defining the pins for the second motor, but i do not understand refering them in the loop, i can not see this in lesson 107. many thanks
Hello Sir, I want to turn the motor with the poti in the other way and stopp the motor . And than the Motor run in the same way or return it. We can I do that? Thanks for the answer Thomas
Hi, did not understand. So you want this to work in the opposite? if so just switch the two wires of the variable resistor (potentiometer) and the direction of knob will be reversed. keep the middle wire . do not change it.
Hello sir, I have the same motor in 12V inside my star-light light source that spins the wheel for the twinkle effect. Even on the lowest speed it is a bit too fast for my liking. Is there an easy way to modify this on the lowest speed wire by adding a resistor, rheostat, voltage regulator, diode, etc without causing any damage? I would appreciate your advice. If so, could you point me in the right direction please and which wire is used for the slowest speed?
@@robojax I am so sorry, I watched the video twice and couldn't figure it out. I don't use Arduino. I just need to know a way to make it turn slower please? Which wire? Which electronic components best to use please?
Hello sir! You made a very good and useful video. The examples you have shown are great. Can you help me with an example. I know this will be simple for you and will take you almost no time. Can you share some code where on start the arduino the motor returns to home position (hall sensor will be used as a limit switch) then on a button press the motor goes 200 (for example) steps and stops. After pressing the same button again, it will return to the home position. I would be grateful if you could help me with this example. Greetings
Hi sir, here we use ESP32 micro controller board but we can't able to control the stepper motor rotation and also the coding was doesn't support. please give the suitable solution for it
Hello ! Thanks a lot, very interesting, is there a way to merge project 4 (keep pressing CW or CCW) and project (control speed with portentiometer) ? Thanks :)
Hello, I believe I have explained every line in the code from the first project. So if you pay attention, you can easily combine them. Some of them need more attention than other if time control is involved. But doable.
when using step motor with driver. how can you stop the step motor by stop button. if using attachInterrupt after releasing stop button the CODE will still run continuously
@@robojax sorry about that, unfortunately I cannot find out a project with 3 button control step motor as Start run from A to B and comeback A, Reset return B and stop will stop immediately. That’s my difficulty
it means you don't have the function int getCommand() which is at the bottom of the code. I just visited the page where the code is, and this portion is there. make sure to copy the whole code.
I don't remember what I wrote, but the time is very precise. you can do very slow rpm which might take one day. why would you change it to decimal value? you could but you have to change all the value to decimal as in calculation when do mathematical operation, there are issues with you divide integer to decimal or vice versa . So if can fix all those issue, yes you can. but you don't need to do that. just use the integer as it accommodates all your needs.
DONT BOTHER WATCHING!! you CANNOT use any of this code as it requires HIS libraries and you have to pay for them. So you will do all the work first wiring, code and then you cannot compile it without his payed libraries.
Thanks!
That is very kind of you. Thank you.
Nice video and nice way you explain everything. I was looking at the cw, ccw, stop button. Can that be married with a potentiometer for direction change? Thanks again. Good work.
Perfect for what I need!
Hello, I am using project 4.
How would i transfer this circuit to a pcb, i have tried to do it myself and i think i killed the controller board ?
Is it only used on the arduino uno's as i tried to connect to an arduino nano ?
I am trying to use the 2 button control.
After re-connecting through the breadboard, it now comes up with "drivestepper was not declared in this scope", and i copied the code from yours and included the stepper library. When i very first hooked this up, it worked perfectly and now it doesn't. Is there something that i am missing ?
If you like, i can take a screenshot of the error for you to view.
Your help with this would be greatly received.
Hi Mr Shamshiri, I used your code for project #5 with NEMA17 and L298N driver to do the same job as you did in project #5. But, my project did not work as you demonstrated in your video. Do you have any suggestion to fix this issue? My stepper motor is making noise but is not moving in any direction; my switches are working, I checked the wiring of my stepper motor with its driver and nothing seemed wrong with that. I appreciate your help.
Only works with the motor shown in video. I have separate video for l298n
@@robojax can you please send me the link for that if you access to it? Thanks
Wanting top change a standard toy dc motor with a 28byj-48 or similar. Model train transfer table. Problem is the stepper as is with 64:1 is way too slow. Can I use the 28byj-48 without the gearbox? Are they available without gearbox? Not a big load to drive. Thanks
Hi, I have explained how the speed is controlled at the begining in first of 2nd project. This stepper is geared and it is slow. only you can slow it further. The first example shows the normal speed.
can the control for a DM542 be used for larger stepper motors?
continue o Robo, track your projects.
A control for photovoltaic solar tracking would be great.
No. This code is for this particular motors
Project 4 2 button control - I have setup the exact same way that you have and it works perfect. If i wanted to setup a second motor running from the same arduino, what things would i have to change. i did set the second one up using the same wiring but on different pins on the arduino (obviously), when i went to change the code, it came up with an error. i have since then gone back to one motor on the arduino. all the help you can give me, would be very much appreciated. i do not know much about coding as yet but i am working on it, bit by bit. The project that i will be using it for is push button to open up 2 light doors on a shelf that i have.
Hi,
The pins have been defined as variables and all instances of actions like move, stop ,run etc have variables and I mentioned each. you may learn about variables from this video th-cam.com/video/n0z6fjww8eA/w-d-xo.html
how to control steps movements, like lets say we have 400 circular points to move one by one and i need to move pointer in following example sequence starting from 0->10->240->45->28-> .......... -> 400 . How can we automate this ..
Thanks once again for such informative video, im halfway watching it and cant resist to write this.
Im just thinking to use stepper motors to control sunshade cover/uncover (made of cloth fabric) at my home pergola, so i have few questions.
1. Can we make maximum steps a motor can run in CW or CCW? so tht when we press CW/CCW button the motor should only run for predefined maximum steps and then stop automatically.
2. In my case, i will need two motors to run synchronized in such a way when i press CW button the First Motor should run CW and other Second Motor should run CCW and vice versa.
3. It would be nice if you make this project in real and share everything related to coding or hardware stuff.
I tried to make in my mind all possible scenarios so people can use them with their projects. 3-all the codes have been provided in the resource page. I checked it and the are there.
Project 5 on this I’m having a problem with. So i hooked everything up exactly to your diagram and copied and pasted the coding and it works. Until….it randomly turns itself on every 30 seconds and then spins for exactly 38 seconds and stops. Any idea what is wrong with it?
what if we want to try same projects with micro stepper tb6600 + Nema17, 200, which runs by 2 poles signal only, will change in pole(s) section of code make Nema to works as 28BYJ-48 like your projects? thanks for your time.
Here is video on NEMA th-cam.com/video/csf_G1pi0ps/w-d-xo.html, this code is needs full rewriting to work with different stepper motor.
In the project 3, i copied the code and driveStepper, when I compilate, the down thing say "driveStepper was not declared in this scope" how can I fix it? Thanks
any time you see ' not declared" it means that portion of the code is missing. meaning if library is needed you have no installed it. So get that portion of the code or library.
Sir how much external power supply can i provide ???
5v 200mA is enough for a motor
@@robojax thanks for your reply ❤️❤️❤️. My motor keeps vibrating but it does not turn. Any solutions ? The wiring is not bad
can you help with using a "rocker" switch in place of the 3 button. Rock up to move motor 1 direction, center to stop the motor, Rock down to move motor opposite direction. then when let go, it goes back to center for stop. Add hall effect sensors to both ends of "ball drive screw" to set limits. Using the Stepper Motor Driver DM542T. Can you help with this specific programming and wiring diagram? I will purchase for the work.
Please contact me via Robojax.com@gmail to discuss it.
@@robojax I did
Hi sir. great video . I have a problem in project 8 . My stepper motor is vibrating and not turning . Any solutions ???
bad wriing.
@@robojax Still vibrating
Great work man, i loved it, the code is helpful. Keep making more videos. How can we connect two stepper motors and multiple push buttons with led display such that , when i press A push button, the number should increase in display and when i press B push button, the number should decrease, and when i press start/stop button, the stepper motor has to rotate those many times as the number in the display?
Hello, Again thank you for your videos and past help.
I have got my project working as i wanted, but my next question can i run 2 steppers with one arduino? I just want to use the one button i have got working with limit sensors, but i want duplicate on another stepper and limit switches but still all controlled with the one button. I am using a Nano every.
many thanks
Hello, yes you can. Because I have explained it fully as how it works, it would be very easy to do so. just duplicate all variables for one motor, and make 2nd variable for each. For example if we have a variable like int Pin1 =10; then you define int Pin1_2 =6; and connect motor to to pin 6, so simply add _2 or _3 if you want 3rd motor. and do this for all variables. Then inside the loop or anywhere else, make sure to refer to that variable. this is lesson 107 and if you don't did not get what variable is then watch this data type video th-cam.com/video/n0z6fjww8eA/w-d-xo.html good luck
@@robojax perfect thank you, i thought i did see a 2 stepper video a while ago but could not find it.
many thanks
@@robojax I have understood defining the pins for the second motor, but i do not understand refering them in the loop, i can not see this in lesson 107.
many thanks
Hello Sir,
I want to turn the motor with the poti in the other way and stopp the motor .
And than the Motor run in the same way or return it.
We can I do that?
Thanks for the answer
Thomas
Hi, did not understand. So you want this to work in the opposite? if so just switch the two wires of the variable resistor (potentiometer) and the direction of knob will be reversed. keep the middle wire . do not change it.
@@robojaxHi,
that the way. Thank you sir,
I take a switch between the cabeles and with them i can change the two pins .
Hello sir, I have the same motor in 12V inside my star-light light source that spins the wheel for the twinkle effect. Even on the lowest speed it is a bit too fast for my liking. Is there an easy way to modify this on the lowest speed wire by adding a resistor, rheostat, voltage regulator, diode, etc without causing any damage? I would appreciate your advice. If so, could you point me in the right direction please and which wire is used for the slowest speed?
How come lowest speed is fast for your need? You can do single rotation to be 24 hours. Please watch fully
@@robojax I am so sorry, I watched the video twice and couldn't figure it out. I don't use Arduino. I just need to know a way to make it turn slower please? Which wire? Which electronic components best to use please?
There’s something wrong with your code on #5. It randomly turns on every 30 seconds for 38 seconds. Please help.
although disable ENA pin and Pul pin, the step motor cannot stop immediately . Please tell me the reason why it cannot run PLEASE Sir.
Hello sir! You made a very good and useful video. The examples you have shown are great. Can you help me with an example. I know this will be simple for you and will take you almost no time. Can you share some code where on start the arduino the motor returns to home position (hall sensor will be used as a limit switch) then on a button press the motor goes 200 (for example) steps and stops. After pressing the same button again, it will return to the home position. I would be grateful if you could help me with this example. Greetings
Hello, I believe the same features that you want in this video. Just watch them all. you should be able to make it.
Like 187 👏👏👏👏
Dear Mr. Shamshiri engineer, please include the control tutorial for 2 stepper motors and push button،Thanks
so can we control the stepper motor with push buttons with attiny?
If you have that number of pins available, yes
Hi sir, here we use ESP32 micro controller board but we can't able to control the stepper motor rotation and also the coding was doesn't support. please give the suitable solution for it
Hi, search for ESP32 to find video related to that.
Hello ! Thanks a lot, very interesting, is there a way to merge project 4 (keep pressing CW or CCW) and project (control speed with portentiometer) ? Thanks :)
Hello, I believe I have explained every line in the code from the first project. So if you pay attention, you can easily combine them. Some of them need more attention than other if time control is involved. But doable.
when using step motor with driver. how can you stop the step motor by stop button. if using attachInterrupt after releasing stop button the CODE will still run continuously
we have 8 projects and I there is a project with the stop.
you didn't reply? did you watch all projects and found one?
@@robojax sorry about that, unfortunately I cannot find out a project with 3 button control step motor as Start run from A to B and comeback A, Reset return B and stop will stop immediately. That’s my difficulty
26:31 getCommand code is not clear i copied the code at the bottom but i keep getting: 'getCommand' was not declared in this scope
it means you don't have the function int getCommand() which is at the bottom of the code. I just visited the page where the code is, and this portion is there. make sure to copy the whole code.
Can we change the rpm to decimal values?
I don't remember what I wrote, but the time is very precise. you can do very slow rpm which might take one day. why would you change it to decimal value? you could but you have to change all the value to decimal as in calculation when do mathematical operation, there are issues with you divide integer to decimal or vice versa . So if can fix all those issue, yes you can. but you don't need to do that. just use the integer as it accommodates all your needs.
@@robojax okay ... thanks ,nice video
@@robojax how to connect LCD to it so that I can see the rmp
delay(speedFactor); // ?? when i push a button fine works, but the stepper rotate full ~45sec. without push button always with pause , why ??
because you set how long should it take to complete the revolution. Please watch carefully.
spr
DONT BOTHER WATCHING!! you CANNOT use any of this code as it requires HIS libraries and you have to pay for them. So you will do all the work first wiring, code and then you cannot compile it without his payed libraries.
The code is free. Never pay. Just follow the link and it is free
@@robojax Im talking about Library drivestepper.h, math.h, primitivestepper.h