28BYJ-48 stepper motor and ULN2003 Arduino (Quick tutorial for beginners)

28BYJ-48 stepper motor and ULN2003 Arduino (Quick tutorial for beginners)

Nikodem Bartnik

6 лет назад

693,823 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@mohammadafdal774
@mohammadafdal774 - 03.12.2023 23:00

A lot more information then what is in the datasheet. Thank you.

Ответить
@jamesbarratt593
@jamesbarratt593 - 13.11.2023 11:03

I cant wait. Just bought a beginner arduino kit. I have almost completed an internal security lock for a van on my 3d printer with wireless control. I work doing car keys and mechanics plus auto electrics. Im so excited to be able to make electro mechanical things. Solar panel raiser for sunshine passing. Remember that word sunshine 🌞

Ответить
@Cam-wu9jw
@Cam-wu9jw - 05.11.2023 10:31

Thanks man. Made it easy to get started. Ur making the world smarter!

Ответить
@alinciucan2406
@alinciucan2406 - 25.10.2023 11:28

can you post the code for moving clockwise/anticlockwise, please!?

Ответить
@Smolbeanxyz
@Smolbeanxyz - 24.10.2023 18:32

can we use the 28byj-48 stepper motor in replace for a dc motor? when I saw in the vid it looks impossible.

Ответить
@arunkumarsawant6523
@arunkumarsawant6523 - 15.10.2023 15:43

Please make a video on Circuit diagram of transister based controller used in printer.
.

Ответить
@neerajymsavita3453
@neerajymsavita3453 - 28.09.2023 13:10

Hinde me batao

Ответить
@lol-et1fz
@lol-et1fz - 18.09.2023 15:15

Ладно, я понял что могу писать на русском языке )
Кстати , не плохой английский )

Ответить
@kylan6631
@kylan6631 - 12.09.2023 05:44

I increased the amps of my power supply and changed it to 3ms and it increased the torque so much.

Ответить
@wael_z7824
@wael_z7824 - 11.09.2023 13:35

you don't declared a ???

Ответить
@guillaumedupin9732
@guillaumedupin9732 - 21.08.2023 14:55

Strange behavior on mines...
Using half-stepping.
I use PORTB instead of the awfull digitalWrite...
Delay of 2 ms motor is turning ok.
Delay of 4 ms motor stays still ??? same for delayMicroseconds(4000).
Delay of 8 ms motor is turning ok again...

Ответить
@kpa1168
@kpa1168 - 29.07.2023 13:04

Servo motor not rotating but vibrating, why thats happening?

Ответить
@TapChan_
@TapChan_ - 26.06.2023 21:27

porządny materiał ziomuś

Ответить
@balvindermatharu922
@balvindermatharu922 - 08.06.2023 18:52

Could you big diagram

Ответить
@oldm8alfie
@oldm8alfie - 10.05.2023 17:45

sorry noob question as I’m just starting to play with arduino.
Once you’ve programmed it with the arduino, you can disconnect the arduino and the stepper motor will be a standalone circuit ?

Ответить
@andypwebb
@andypwebb - 01.05.2023 13:15

What software are you using?
I’m on a Apple Mac & I’ve found pololu tic but can’t find driver in usb so says not connected

Ответить
@jajajiji8447
@jajajiji8447 - 23.04.2023 16:44

How do you control 2 stepper motor I saw the datasheet there's a cw and acw on rd2 how about the other wheel if not the wheel will lock at one location I'm using mplab for pic18f4550 instead of arduino

Ответить
@AmineGM73
@AmineGM73 - 20.04.2023 00:02

That's work Nice

Ответить
@omsingharjit
@omsingharjit - 11.03.2023 00:09

If you have two different types of stepper motor with different Steps can you use it in single project together like in cnc or 3d printer ?

Ответить
@magoreyansh
@magoreyansh - 21.01.2023 11:33

pliz give code

Ответить
@magoreyansh
@magoreyansh - 21.01.2023 11:32

while(1)
{
// body of the loop...
} // this can loop any code just put the code inside.

Ответить
@CRODodo211
@CRODodo211 - 19.01.2023 14:07

How to control it more precisely, so it just doesn’t spin but stays and moves as I order it?

Ответить
@ahmetkuddusugurbuz107
@ahmetkuddusugurbuz107 - 11.01.2023 22:30

can you post the codes?

Ответить
@giannisiosifidis3521
@giannisiosifidis3521 - 26.12.2022 14:47

How can I make the motor rotate slower?

Ответить
@Rulzan
@Rulzan - 18.11.2022 17:21

Thanks

Ответить
@m.c.y.5406
@m.c.y.5406 - 15.11.2022 10:02

hey thanks for the video but i got a problem it gives me an error that says; "OneStep was not declared in this scope". what do i do? I checked the code 5 time to see if i did any mistake but no.

Ответить
@sakshikaveri
@sakshikaveri - 28.10.2022 10:38

Hi can you please explain the conditions you wrote for the for loop in the void loop function, please reply urgently if possible

Ответить
@hemaganapathya3682
@hemaganapathya3682 - 19.10.2022 09:44

works great!!
but only rotates in one direction..

Ответить
@oxy_one
@oxy_one - 10.10.2022 15:21

thx for making this vidio

Ответить
@jasonamosco318
@jasonamosco318 - 06.10.2022 17:13

Thank you so much it works without interrupting the other functions. love it from Philippines.

Ответить
@ahmedgamal873
@ahmedgamal873 - 29.09.2022 13:13

sketch_sep29a\sketch_sep29a.ino:1:27: fatal error: PIDController.h: No such file or directory that appears to me what is the solution please

Ответить
@user-mz6xp4yj8d
@user-mz6xp4yj8d - 23.09.2022 02:39

does it work for arduino mega 2560 or just uno?

Ответить
@planker
@planker - 13.09.2022 02:05

Excellent.

Ответить
@fiandaja2594
@fiandaja2594 - 07.09.2022 14:41

thanks for this , now im ready for the step motor project

Ответить
@dter706
@dter706 - 02.08.2022 10:57

I'm pretty sure you're not supposed to power the motor directly from your arduino

Ответить
@kali8854
@kali8854 - 23.05.2022 14:37

nice video. can i get a copy of the code. Thanks

Ответить
@markuslemerise5812
@markuslemerise5812 - 16.05.2022 06:06

i cant make it work, no lights on the driver/no movement

Ответить
@ntandodube4350
@ntandodube4350 - 12.05.2022 16:00

I have the same stepper motor. I connected it and wrote the code, but it only vibrates. No rotation.

Ответить
@giovannicappello8852
@giovannicappello8852 - 10.05.2022 00:16

hi, how much weight (kilos) can this motor lift?

Ответить
@rimenaouissaoui9933
@rimenaouissaoui9933 - 03.05.2022 12:57

Thank you for the video. the code pls!

Ответить
@amitkumar6784
@amitkumar6784 - 29.04.2022 11:16

Bro my motor driver motherboard is new but not working plz help

Ответить
@pterois5914
@pterois5914 - 18.04.2022 01:52

thank you , here is my code that lets you select the seconds per revolution with the "n_seconds_per_revolution" variable, to change the direciton you can toggle the "b_backwards" boolean from 0 to 1 or vice versa
```c
int a_b_stepper_pin_number[4] = {9,10,11,12};

int step_number = 0;
void setup()
{
int n_i = 0;
while(n_i < 4){
pinMode(a_b_stepper_pin_number[n_i], OUTPUT);
n_i++;
}

}
long n_time = 0;

int n_max_stepper_pins = 4;

int a_b_stepper_pin_voltage[4] = {0,0,0,0};

long n_stepper_pin_modulo = 0;

int n_steps_for_full_resolution = 2048;

float n_seconds_per_revolution = 10.0;

int n_minimum_millisecond_delay_between_steps = 2;

// 10sec * 1000ms = 10000ms / 2048steps = 4.88...
int n_calculated_delay_microseconds_for_seconds_per_revolution = ((float) n_seconds_per_revolution*(1000) / n_steps_for_full_resolution)*1000;
int b_backwards = 0; // direction

void loop()
{
// one loop counts as one step!!
n_time++;
n_stepper_pin_modulo = abs((3*b_backwards)-(n_time % n_max_stepper_pins));
int n_i = 0;
while(n_i < 4){
digitalWrite(a_b_stepper_pin_number[n_i], n_stepper_pin_modulo == n_i);
n_i++;
}

if(n_time >= (__LONG_MAX__)){
n_time = 0;
}
delayMicroseconds(n_calculated_delay_microseconds_for_seconds_per_revolution);

}
```

Ответить
@micktapper9677
@micktapper9677 - 08.04.2022 12:47

its was a good explentaion but it showed a erro ron my screen

Ответить
@Z3DZ3R0
@Z3DZ3R0 - 22.03.2022 21:20

I don't think you are supposed to drive this motor at 12V. This motor comes in two versions, one 5V and another 12V. So the 12V option on the driver is probably for the 12V version. I also tried to raise the voltage to above 5V on the 5V motor and it did overheat.

Ответить
@larrybud
@larrybud - 14.03.2022 05:14

If you want to get really down to the nitty gritty, you can hook this up to a decade counter which is triggered with a 555 timer.

Ответить
@mtalhakhalid1679
@mtalhakhalid1679 - 02.03.2022 15:45

it is cheep good but slow

Ответить
@Lawh
@Lawh - 28.02.2022 21:01

Why does it need the driver?

Ответить
@xeither289
@xeither289 - 15.02.2022 10:15

❤❤😊☦

Ответить
@xeither289
@xeither289 - 15.02.2022 10:15

LOVE GOD AND EVERYONE!

Ответить