how is the code if we using switch sensor as a output of step = high (500 rotation) and dir =high and then button switch to delay then change the dir=low step=high (500 rotation)
@@miliohm Hi, I solve this problem, I am using driver L298N. It works perfect, but the motor is overheating after 10min of work. Do you know what is best option for solve this problem?
Hi, how do you configure the pins of the motor means which pin of motor is pin no.1(connected to 2B). I am not able to do as I am using BJ42D22- 23V01 NEMA17 motor. For me it is not working properly.
In your calculation the "2.5" value is a bit of a mystery. I assume it represents the "sense Resistor" value times the motors stepper setup percentage use (in my case this should be i00%). In another video the formula was "Imot x 8 x Sense Resistance (according to this guy the value "for most A4988"(?) for this resistance is 0.068 Ohms). With his calculation I get a VRef = 0.816 Volts and with your calculation I get a VRef = 0.600 Volts. Which is correct? How do I know (without burning up my stepper or driver)? The only Spec Sheet I found doesn't list a "Sense Resistor Resistance", where can I find this value reliably?
The truth is “not with any confidence” but it worked anyway. The two surface mount resistors next to pins 18 and 24 (on my board) when magnified have 100 imprinted on them. From there I did some research to determine what the value of the SMD’s were (it’s been a while and I’d have to rediscover my notes and research), however these appeared to be, also based on blogs and conversations like this, to be the correct resistors who’s value(s?) were used to calculate, hopefully correctly. The result in the end was that my NEMA 17 driven star tracker worked. However mechanical issues related to the PLA 3D printed frame and gears driven by a curved threaded rod produced other issues. If I do this again I will pivot a straight rod and make the frame from 3/8” plywood in order to safely support my heavy camera rig. A lot of frustrations in this project that ultimately left me with more problems than time to solve them. The A4988 was the least of my concerns!
@@sampuraktalukdar1374 It's Aluminum, to decrease heat of the IC. It's very important for the driver and motor to be able to use the rated current (around 2.5A for my Nema 17). Without the heatsink, it's only rated for half the current! Get some.
@@robertbrodersen4438 Oh thanks for the info? So the motor not running in my case may probably be due to the lack of heat sink?.... Also I kept an led at the 4 outputs of the driver and it didn't blink neither damage (due to excessive volts) , so does that mean the driver ain't giving no output?
// A4988 Stepper Motor Driver Pins const int dirPin = 7; const int stepPin = 6; const int enablePin = 5; // Stepper motor steps per revolution const int stepsPerRevolution = 200; void setup() { // Set the enablePin, dirPin, and stepPin as OUTPUT pinMode(enablePin, OUTPUT); pinMode(dirPin, OUTPUT); pinMode(stepPin, OUTPUT);
// Enable the motor by setting enablePin LOW digitalWrite(enablePin, LOW); } void loop() { // Set the motor direction to clockwise digitalWrite(dirPin, HIGH);
// Step the motor for one revolution for (int i = 0; i < stepsPerRevolution; i++) { digitalWrite(stepPin, HIGH); delayMicroseconds(500); // Adjust this delay to control motor speed digitalWrite(stepPin, LOW); delayMicroseconds(500); // Adjust this delay to control motor speed }
delay(1000); // Delay between rotations
// Set the motor direction to counterclockwise digitalWrite(dirPin, LOW);
// Step the motor for one revolution for (int i = 0; i < stepsPerRevolution; i++) { digitalWrite(stepPin, HIGH); delayMicroseconds(500); // Adjust this delay to control motor speed digitalWrite(stepPin, LOW); delayMicroseconds(500); // Adjust this delay to control motor speed }
Hi my friend, I have a question, and maybe you can help me, so, how can I control 2 motor to move at same time, can I take same signal for to drivers? Tks
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?
@@miliohm can you please tell me the reason that why motor is coils is showing continuity in all pairs ? wont it just show in any 2? but its showing continuity with every coil, like I Checked continuity on pin 1 and 2 Ammeter beeps and then I connected pin 1 and 3 it again shows continuity and same goes with pin 2 and 4. it's Nema 17 stepper motor with 4 pins. Can you tell me the reason behind this? AFAIK It should show continuity on any 2 and not on all. Correct me if I am wrong Thanks.
It's really nice and helping vedio.How I can change the program as per my application. can you help me to change the program as per my requirement, for which I shall be very thankful to you. S.N.MALIK India.
Eu estou com um projeto para uma maquina na area da serigrafia . Com motor nema 17 e um eixo T8 na vertical e uma chave fim de curso em cima e outra em baixo . E dois botoes um para ativa o moto para decer e para quando ativa a chave fim de curso e outro botao para subeir o motor e para quando ativa a chave fim de curso . Mais nao sei como vou fazer isso nao sei mexe com arduino e nem programa .esse meu projeto e bem simples espero um dia consegui .
@@vincentiusdhimasr.p.2695 Coba-coba aja diputar naik turun, kalau tetep ga jalan cek apa wiringnya sudah benar. Dan kalau tetep tidak jalan coba pake ganti drivernya. kadang kalau yang bajakan suka ada yang rusak
nice buddy..but show us to use multimeter to measure the required current how slowly..
Hi sir, I have a question. How can I use A4988 on 3v 300mA micro stepper motor? Thank you
how is the code if we using switch sensor as a output of step = high (500 rotation) and dir =high
and then button switch to delay then change the dir=low step=high (500 rotation)
6:13 I can't get this voltage on my driver with little potentiometer. I get maximum 0,03V. Where is the problem?
Did you use the conductive screwdriver?
@@miliohm Hi, I solve this problem, I am using driver L298N. It works perfect, but the motor is overheating after 10min of work. Do you know what is best option for solve this problem?
Hi, how do you configure the pins of the motor means which pin of motor is pin no.1(connected to 2B). I am not able to do as I am using BJ42D22- 23V01 NEMA17 motor.
For me it is not working properly.
i need to know what kind of stepper motor, please
does this work also in cnc shield?
In your calculation the "2.5" value is a bit of a mystery. I assume it represents the "sense Resistor" value times the motors stepper setup percentage use (in my case this should be i00%). In another video the formula was "Imot x 8 x Sense Resistance (according to this guy the value "for most A4988"(?) for this resistance is 0.068 Ohms). With his calculation I get a VRef = 0.816 Volts and with your calculation I get a VRef = 0.600 Volts. Which is correct? How do I know (without burning up my stepper or driver)? The only Spec Sheet I found doesn't list a "Sense Resistor Resistance", where can I find this value reliably?
Hi! where you able to find the solution? I have the same issue
The truth is “not with any confidence” but it worked anyway. The two surface mount resistors next to pins 18 and 24 (on my board) when magnified have 100 imprinted on them. From there I did some research to determine what the value of the SMD’s were (it’s been a while and I’d have to rediscover my notes and research), however these appeared to be, also based on blogs and conversations like this, to be the correct resistors who’s value(s?) were used to calculate, hopefully correctly. The result in the end was that my NEMA 17 driven star tracker worked. However mechanical issues related to the PLA 3D printed frame and gears driven by a curved threaded rod produced other issues. If I do this again I will pivot a straight rod and make the frame from 3/8” plywood in order to safely support my heavy camera rig. A lot of frustrations in this project that ultimately left me with more problems than time to solve them. The A4988 was the least of my concerns!
@@NedSar85 Note! That there is a reply to your question but you have to open the discussion to see it. I replied the wrong way, sorry!
hello, please help, my motor is just vibrating. Also im usin 24v, is that the issue?
why my stepper cant move ?
What is the silver thing you stick on the top of the chip?
that's called a heatsink, a metal to increase the heat of the IC.
@@miliohm Thanks for replying so fast.....I just googled it and found out from there also.
@@sampuraktalukdar1374 It's Aluminum, to decrease heat of the IC. It's very important for the driver and motor to be able to use the rated current (around 2.5A for my Nema 17). Without the heatsink, it's only rated for half the current! Get some.
@@robertbrodersen4438 Oh thanks for the info?
So the motor not running in my case may probably be due to the lack of heat sink?....
Also I kept an led at the 4 outputs of the driver and it didn't blink neither damage (due to excessive volts) , so does that mean the driver ain't giving no output?
// A4988 Stepper Motor Driver Pins
const int dirPin = 7;
const int stepPin = 6;
const int enablePin = 5;
// Stepper motor steps per revolution
const int stepsPerRevolution = 200;
void setup() {
// Set the enablePin, dirPin, and stepPin as OUTPUT
pinMode(enablePin, OUTPUT);
pinMode(dirPin, OUTPUT);
pinMode(stepPin, OUTPUT);
// Enable the motor by setting enablePin LOW
digitalWrite(enablePin, LOW);
}
void loop() {
// Set the motor direction to clockwise
digitalWrite(dirPin, HIGH);
// Step the motor for one revolution
for (int i = 0; i < stepsPerRevolution; i++) {
digitalWrite(stepPin, HIGH);
delayMicroseconds(500); // Adjust this delay to control motor speed
digitalWrite(stepPin, LOW);
delayMicroseconds(500); // Adjust this delay to control motor speed
}
delay(1000); // Delay between rotations
// Set the motor direction to counterclockwise
digitalWrite(dirPin, LOW);
// Step the motor for one revolution
for (int i = 0; i < stepsPerRevolution; i++) {
digitalWrite(stepPin, HIGH);
delayMicroseconds(500); // Adjust this delay to control motor speed
digitalWrite(stepPin, LOW);
delayMicroseconds(500); // Adjust this delay to control motor speed
}
delay(1000); // Delay between rotations
}
What’s the name of the part that you screw with the screwdriver?
It's called trimpot or potentiometer
Hi my friend, I have a question, and maybe you can help me, so, how can I control 2 motor to move at same time, can I take same signal for to drivers? Tks
Yes you can, but you should know that the amperage maybe become a problem. The driver will get hot easily.
I would like to adjust the engine revs using various buttons, does anyone know if this is feasible?
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?
are you already set the max current using the potentiometer?
@@miliohm yup current is up to the mark
@@miliohm can you please tell me the reason that why motor is coils is showing continuity in all pairs ? wont it just show in any 2? but its showing continuity with every coil, like I Checked continuity on pin 1 and 2 Ammeter beeps and then I connected pin 1 and 3 it again shows continuity and same goes with pin 2 and 4. it's Nema 17 stepper motor with 4 pins. Can you tell me the reason behind this? AFAIK It should show continuity on any 2 and not on all. Correct me if I am wrong
Thanks.
Hello , Iam really so gratful for this project because its worked well for my prototype. May God bless you abundantly
How much amps and do you need for moving the motor? Does it get a good torque? Thanks!
Not so much seeeing power cable is 20-18awg. My bet it's less than 2 amps.
How to drive two stepper motor using two drivers????? Is it possible?????
It's really nice and helping vedio.How I can change the program as per my application. can you help me to change the program as per my requirement, for which I shall be very thankful to you.
S.N.MALIK
India.
Eu estou com um projeto para uma maquina na area da serigrafia . Com motor nema 17 e um eixo T8 na vertical e uma chave fim de curso em cima e outra em baixo . E dois botoes um para ativa o moto para decer e para quando ativa a chave fim de curso e outro botao para subeir o motor e para quando ativa a chave fim de curso . Mais nao sei como vou fazer isso nao sei mexe com arduino e nem programa .esse meu projeto e bem simples espero um dia consegui .
Untuk barang2 nya apakah bisa di beli di online market place indonesia? Boleh tau untuk nama/jenis motor stepper nya?
Banyak mas, bisa cari dengan kata kunci stepper nema 17
Makasih mas, sangat membantu
@Istiqlal Silaban namanya breadboard broo
maximal voltage a4988 ??
Motor max voltage is 35V
Mas ada schematic wiring nya ga ya
Coba dibaca deskripsinya mba
Untuk power supplynya 12v dc 5A apakah bisa?
Bisa
Berarti gambar rangkaian yang di web itu kapasitor 47uF cukup menggantinya menggunakan power supply seperti di video ya?
Mau tanya bang, kalau motor nya tidak bisa berputar ccw itu kenapa ya? Padahal sudah sama seperti di video juga
Apakah sudah diatur arus maksimalnya?
@@miliohm Vref nya saya atur 0,5 V. Apakah kurang kalo utk motor nema 17?
@@vincentiusdhimasr.p.2695 Coba-coba aja diputar naik turun, kalau tetep ga jalan cek apa wiringnya sudah benar. Dan kalau tetep tidak jalan coba pake ganti drivernya. kadang kalau yang bajakan suka ada yang rusak
@@miliohm siap, terimakasih infonya 🙏
In my case. It does not work. I tried different arduino boards (uno, mega), different steppers (nema 17) and a4988
Sometimes there is fake A4988 in the market. It really easy to get hot, and doesn't work. Check the temperature of your A4988
@@miliohm Hey do you know how to check if A4988 is working or not?...
Min ini punya saya awalnya bisa normal terus skrg muternya ga jelas cuma geter2 aja gitu knp ya? Saya sudah cek wiring tidak ada yg salah
Coba putar potensio yang buat arus mas
Di perbesar apa diperkecil ya min?
Dicoba adjust aja, naik turun biasanya gerak
u change my life thx
Thank you bro!
thank you for this you are very good in teaching
Thanks!
Boleh minta codingnya paman
baca deskripsinya bro
@@miliohm ok siap trimakasih
Thanks
Because you have a strong accent it's a little difficult to understand you. The completely unnecessary background "music" makes it all but impossible.
Thanks for the suggestion, will do better next time. And please turn on the subtitle to understand more
Mosok didin iki?
Wkwkwk
iyo mas, rak percoyo ik. wkwk