I’ve been mucking around for about a month trying to get my motors to do this!!! I think I overthought thinking about what to think!!! Thanks from An Australian in Cairns
3:27 At line 73/74 in your code, I don't understand your code/comment. In line 73, it says if (p1buttonstate == low), which I took to mean "the current state of the p1 button is low. But then, your comment says "if the current state is HIGH." Shouldn't your comment say "if the current state is LOW"?
This is almost perfect. However I need the same circuit with acceleration/deceleration control. Any idea how I could use the acceleration library in your code? I'm moving a pool table back and forth so it needs to be very smooth.
When I power on START UP this construction the motor begins turning 180 degrees without push the button, can I disable that with disconnect Enable + and Enable - ?
int p1buttonState = 0; // current state of the button int lastp1buttonState = 1; // previous state of the button int p2buttonState = 0; // current state of the button int lastp2buttonState = 1; // previous state of the button
Hi Maker! thanks for the videos, The videos are the best for people like me who are visual. donation coming your way . continue the great work. Now i have a great question for you, I'm using a nema 23 and when I unplug the power the sketch restarts and makes the push button seem like it was pressed making my motor turn. How do I program it to start-up as the button was not pressed? thank you
Hello acajouBr, it does the same thing to me too, when I turn on, the engine goes on as if the button was pressed. Did you happen to solve the problem?
For those who have the problem (when I turn on, the engine goes on as if the button was pressed) only change 0 to 1 all ok. int p1buttonState = 1; // current state of the button int lastp1buttonState = 1; // previous state of the button int p2buttonState = 1; // current state of the button int lastp2buttonState = 1; // previous state of the button
How would I decrease the rotation increments? Instead of 180 degrees each button push, to about 5.625 degrees each press of the button? Thank you! I love your videos.
I figured out how to change the degree in rotation. I have another question, how would I change the code to make the motor move while the button is being pressed and stop when I let off the button? Thanks for any help!
@@W6OBB Hi mike, please let me know if you figure it out how to do that part which is making the motor move while the button is being pressed and ..............
@@W6OBB hi Mike can you please tell me how did you change the degree of rotation by pressing the push button actually I want it to rotate 360 degree and stops there until the push button is pressed again .
How can I control stepper at 90 degree for specific position every time i push button?????????????? (Every time I push button or replug arduino cable the position is changed ,I am controlling a rotating arm with motor which will rotate the arm via shaft) Please Help!!!
Hi , please can help me? I need to make the same project that you made, but with a little changes. You can send me a valid link to download arduino sketch ? Thanks
Maker Tutor Hi dear, maker tutor please can help me? I need to make the same project that you made, but with a little changes. You can send me a valid link to download arduino sketch ? Thanks
Hello, thank you very much for your contribution. My name is David. Build a project with your connection scheme and code; It works fine, I can modify several parameters to control the motor, but I want to make some modifications to the code, and I don't have the knowledge. How can I contact you? Do you know any professionals who can help me? Thank you very much
How can i do if I want to move 15 grades but when I press the button again it moves 50 grades and the next 70 grades, just with the same push button ???
Nice sample project, very helpful can you help me, instead of rotating in deg, i need to adjust my location while press the button, ( direction i need is "UP and Down " mm in unit distance. can you help me in my code, Thank you in advance
PLEASE MAKE A VIDEO without buttons you used button control degree but I wan button when I say 90in program it goes 90 degrees please help me thank you
Hi dear @maker tutor please can help me? I need to make the same project that you made, but with a little changes. You can send me a valid link to download arduino sketch ? Thanks
super, very very useful. and use proximity sensor on in position forward 90° and sensor off in position reverse 90° in 4 stepper motor 4 proximity sensor how to code you send me code I will send money so please communicate for mail
Can you help me ? i have some issue with when power on the Arduino the motor starts immidiatly spinning without pushing a button and thats not what i want in my project , can you that solve please, i wanne pay you, thanks I have left enable + and- but no effect
Hi. Did you solve this problem, please? I have just built this project using the video and getting the same issue. Can't understand why it starts immediately without any buttons being pressed.
int p1buttonState = 0; // current state of the button int lastp1buttonState = 1; // previous state of the button int p2buttonState = 0; // current state of the button int lastp2buttonState = 1; // previous state of the button
I’ve been mucking around for about a month trying to get my motors to do this!!!
I think I overthought thinking about what to think!!!
Thanks from An Australian in Cairns
3:27 At line 73/74 in your code, I don't understand your code/comment. In line 73, it says if (p1buttonstate == low), which I took to mean "the current state of the p1 button is low. But then, your comment says "if the current state is HIGH."
Shouldn't your comment say "if the current state is LOW"?
Many thanks to share this project! I could finish my device based in your explanation!
This is almost perfect. However I need the same circuit with acceleration/deceleration control. Any idea how I could use the acceleration library in your code? I'm moving a pool table back and forth so it needs to be very smooth.
Nice , can we do it from long distance with wireless communication... Please
Hi! can i use this device HY-DV268N and arduino for bigger stepper motor? like holding 12pcs of empty glass bottle? thanks.
Very nice for my project, but one more thing, in your previous video about left and rightlimitswitch, how
can I simply add combine that in this sketch
When I power on START UP this construction the motor begins turning 180 degrees without push the button, can I disable that with disconnect Enable + and Enable - ?
int p1buttonState = 0; // current state of the button
int lastp1buttonState = 1; // previous state of the button
int p2buttonState = 0; // current state of the button
int lastp2buttonState = 1; // previous state of the button
WOW! Very good and useful!!!
Hello, I need push button trigered ON by say 0,7 Amper input for 180 and ON again at 0,8 Amper input for 180. Thank You
The link to your sketch is broken, could you please provide an updated link?
Thank you very much.... 👍👍..improvement for me..
Really you are great, thanks for video
I can not finde Sketch. Can you upload again? Thanks
Hi Maker! thanks for the videos, The videos are the best for people like me who are visual. donation coming your way . continue the great work. Now i have a great question for you, I'm using a nema 23 and when I unplug the power the sketch restarts and makes the push button seem like it was pressed making my motor turn. How do I program it to start-up as the button was not pressed? thank you
up
Hello acajouBr, it does the same thing to me too, when I turn on, the engine goes on as if the button was pressed.
Did you happen to solve the problem?
Nice!! This is the program I was looking for!
I'm working on a indextable and want to control it by pushbuttons
What kind of motor that capable of the weight up to 3kg ? Can someone answer me!
For those who have the problem (when I turn on, the engine goes on as if the button was pressed) only change 0 to 1 all ok.
int p1buttonState = 1; // current state of the button
int lastp1buttonState = 1; // previous state of the button
int p2buttonState = 1; // current state of the button
int lastp2buttonState = 1; // previous state of the button
thanks to the Author
HI
This sketch doesn't work
When I give voltage the motor starts by itself for 180° then everything is ok
Can you fix it?
How would I decrease the rotation increments? Instead of 180 degrees each button push, to about 5.625 degrees each press of the button? Thank you! I love your videos.
I figured out how to change the degree in rotation. I have another question, how would I change the code to make the motor move while the button is being pressed and stop when I let off the button? Thanks for any help!
@@W6OBB Hi mike, please let me know if you figure it out how to do that part which is making the motor move while the button is being pressed and ..............
@@W6OBB hi Mike can you please tell me how did you change the degree of rotation by pressing the push button actually I want it to rotate 360 degree and stops there until the push button is pressed again .
can i use arduino uno instead of mega?
How can I control stepper at 90 degree for specific position every time i push button??????????????
(Every time I push button or replug arduino cable the position is changed ,I am controlling a rotating arm with motor which will rotate the arm via shaft)
Please Help!!!
your website is not working and not opening please can you share the code? Thanks so much!
Salut. Ajuta-ma te rog, intr-un sens vreau sa mearga un anumit timp iar in alt sens un alt timp. Cum fac asta?
Could someone plz post the sketch? The link no longer works
It is possible to control four stepper motors via pushbutton and inductive sensors?
yes, can be done
Looks good, but can you please provide proper link to sketch as internet reports “Page not Found” error 404
I want to rotate motor at 180 degree, any also have to come back at the same position of 0 degree
Will u plz help me
can we increase the speed of motor to rotate 90 degrees
// decrease number delayMicroseconds(xxx)
digitalWrite(stepPin,HIGH);
delayMicroseconds(500); //
Hi , please can help me? I need to make the same project that you made, but with a little changes. You can send me a valid link to download arduino sketch ? Thanks
Maker Tutor
Hi dear, maker tutor please can help me? I need to make the same project that you made, but with a little changes. You can send me a valid link to download arduino sketch ? Thanks
What will be circuit diagram and code, if we want to control two motors
what will happns if you hold button 1 ?
it goes to 180 and stop or it keep spinning
someone replay fast please
Hello, thank you very much for your contribution. My name is David. Build a project with your connection scheme and code; It works fine, I can modify several parameters to control the motor, but I want to make some modifications to the code, and I don't have the knowledge. How can I contact you? Do you know any professionals who can help me? Thank you very much
Add resistors, please
How can i do if I want to move 15 grades but when I press the button again it moves 50 grades and the next 70 grades, just with the same push button ???
Connection sketch plz
Facing hissing sound issue with motor when power is ON
Thank you 👍
Nice one
Nice sample project, very helpful can you help me, instead of rotating in deg, i need to adjust my location while press the button, ( direction i need is "UP and Down " mm in unit distance. can you help me in my code, Thank you in advance
ใช้ easy driver ทำให้มันกลับมาที่ 0 องศาได้ไหมคับ
ใช้ได้ครับ easy driver
คนขอนแก่นเหมือนกัน หาๆอยู่ผมก็นึกว่าเป็นของฝรั่ง ฮาๆ ขอบคุณคับไว้จะไปอุดหนุนคับ
Thanks for this project
bro what if i want to rotate only 20 degree forward and backward can u help me with the code for that
PLEASE MAKE A VIDEO without buttons
you used button control degree
but I wan button
when I say 90in program it goes 90 degrees
please help me
thank you
I need this project.how much of cost
The link to the code is broken and when I tried writing it on my own I had many errors. Could you please post the sketch again?
Hi, the link for your sketch is dead, can some one share on google drive or get a link that's working , thanks!
github.com/makertut/direction-ctrl-2
@@MakerTutor101 could this script be modified for a byj48 stepper motor?
esp32 board use same function
send me coding details
Hi dear @maker tutor please can help me? I need to make the same project that you made, but with a little changes. You can send me a valid link to download arduino sketch ? Thanks
Sweete !, I need help
Nice......!
süper thank you
super, very very useful.
and use proximity sensor on
in position forward 90° and sensor off in position reverse 90° in 4 stepper motor 4 proximity sensor how to code you send me code I will send money so please communicate for mail
Can you help me ? i have some issue with when power on the Arduino the motor starts immidiatly spinning without pushing a button and thats not what i want in my project , can you that solve please, i wanne pay you, thanks
I have left enable + and- but no effect
Hi. Did you solve this problem, please? I have just built this project using the video and getting the same issue. Can't understand why it starts immediately without any buttons being pressed.
int p1buttonState = 0; // current state of the button
int lastp1buttonState = 1; // previous state of the button
int p2buttonState = 0; // current state of the button
int lastp2buttonState = 1; // previous state of the button
👍
Hi
Send me code please I'm don't dwenlodo
Please , Arduino Sketch ➝ goo.gl/6F4CJM
s
Cirkitdigram