The Cheapest Stepper Motor And How You Use It (28BYJ-48 & ULN2003 Arduino Tutorial!) (WITH CODE!)

preview_player
Показать описание
Do you have a 28BYJ-48 and a ULN2003 module that you would like to use? look no further! In this video I go over the basics and provide a bit of code for you to use to get started!

Here is the code:

Here are the physical specs:

If you want to buy your own:

Thanks for watching!

If you feel like supporting the channel please consider supporting on Patreon:

or get some cool merch!

or buy anything on Banggood's site using my affiliate link:

and if you feel so inclined, here is my Amazon wish list!
Рекомендации по теме
Комментарии
Автор

Thank you for explaining that both the arduino and stepper motor can be powered from the same 5V external source. I'm an electronics noob, and I just went through like 5 other videos to try to find out how to power both devices, and strangely enough no other video creator bothered to mention the power supply for the arduino. So thank you for clarifying!

Brandon-qpgq
Автор

I've been looking for so fucking long, a single code that allows me to reverse the stepper direcction and the "crappy" one is the only one that worked, thank you so much

glazedvc
Автор

bro nothing is garbage, you are doing your best and that it's important.... keep moving forward!!!

luigipasta
Автор

This guy says he’s not a programmer the same way teachers say their not an artist when drawing, love the content 👌🏻

parz
Автор

Half-steps and acceleration are fun to play with. You can get the thing spinning faster than it ordinary can, with acceleration control.
For 2 steppers, a ULN2803 has 8 outputs, so you can control two with 1 darlington array.

GnuReligion
Автор

Awesomeness… love the way you printed out your code and explained.

greaterthanbut
Автор

I'm a newbie to all this, your video is brilliant! Explains a lot, understandable and clear! Thank you!!!

britinrussia
Автор

Nice video! I like the honest way of presentation.
Yes. For that task, I would go with "attachInterrupt" to change direction whenever a button is pressed.

Whatever happens in the main loop, the interrupt will execute. Even if the mainloop "stuck" in a delay function.
Interrupts always have precedence.

But as you mentioned: the code you shown is not perfect. I really like the honest way of your presentation.
Your focus was on the very basic operation of the stepper and the code.
Mission accomplished! 😊

peterknoll
Автор

Thank you for this tutorial. Simple, to the point, amazing job :D!

thecodingfox
Автор

Thanks, I just wanted to find a way to make the motor constantly rotate, forever and your code was the easiest one !

falsillusion
Автор

These motors are common in microwaves, but in a 120 V version. They are very strong. Thanks for the code! Just getting started on Arduinos. Great work, your imagination is very impressive!

samwillard
Автор

5:10 So, if I need only it spinning on the lower speed in a constant motion, do I have to use an Arduino? All I need is it spinning in the lowest speed possible for my project. Other motors (DC motors) are way to loud and stepper motors are really quiet in comparison. Would it suffice only using the ULN2003 and the stepper motor? Maybe a turn on/off button maybe?

rgbcrafts
Автор

I really enjoyed your class, congratulations! I have a question what is the maximum speed of this engine?

wandersonsilva-fxcs
Автор

How can i change the direction of the steeper Motor in the first example, I am making a star tracker but I want to reverse the direction of rotation 🙏🏼

astro_aviral
Автор

For this motor do you HAVE to have it connected to an arduino? I have a motor speed control circuit and have it connected from the power to that. Then I am running the connections to the stepper motor board and it wont turn on :(

metallicaandchimaira
Автор

Hello, Why my stepper.h library not working? I tried accelstepper and it work just fine.

floroubaldo
Автор

How is it possible to rotate the motor 18degress each time the button is pressed? Thank you

xrphobby
Автор

Thumbs up mate!!! Please expand your knowledge some more, you are doing a great job here. My suggestion on where to go next would be to learn about millis(). This is way better than using delays considering delays completely stop the code from running whilst a delay is in progress. Start with looking at the blink without delay code built in to the arduino IDE. This will help you later on when making more complex programs :P

hydrolisk
Автор

I have 2 of these motors and I want to control them using the Arduino uno and a gyroscope mpu6050, do I need an external power supply to power them or cable connected to the PC and 5v from Arduino should be fine ? Please answer

onizuka
Автор

thanks, I'm going to use this for an automatic dog feeder

rmilo