Arduino Beginners Getting Started With NEMA 17 Stepper Motor and The L298N Motor Driver Module

preview_player
Показать описание
This video is for Arduino beginners who are getting started with the a basic bipolar stepper motor. We will be using the popular NEMA 17 stepper motor and the L298N motor driver module to run this motor. Over view of stepper specs and how to connect a stepper to a driver board. Thanks for checking it out. Join the conversation below!

🔔🔔 SUBSCRIBE 🔔🔔 don't forget to subscribe and click the bell!

++get the code from the STEPPER library in Arduino IDE

check out our Arduino play list!

chapters:
0:00 intro
0:23 components for this video
1:37 introduction to the NEMA 17 stepper motor
2:15 bipolar vs unipolar stepper motors
3:24 what is step angle of a stepper motor
3:45 what is a 2 phase stepper motor
7:31 intro to the L298N driver motor driver module
10:19 stepper motor connection diagram
11:16 run example code from Arduino IDE STEPPER library
15:57 run example #2 code from Arduino IDE STEPPER library

Here is the Amazon info for some items I used in the video. Just go to Amazon and type in the ASIN.
Of course, if you can find them cheaper on Ebay or your local electronics shop, buy them there.
NEMA 17 2-pack stepper motors - ASIN: B09STZTR5H
L298N motor driver - ASIN: B07BK1QL5T
Рекомендации по теме
Комментарии
Автор

It’s very simple… but I truly appreciate seeing everyone’s instructions on how to use these.

I need to see how the pins on other motor drivers actually impact speed etc….

gelatinskeleton
Автор

Awesome video. I bought my own controller/driver to use in conjunction with my captive actuator. You helped me overcome some conceptual mountains!

josephnudelman
Автор

Great video, exactly what I was looking for. Thank You!

andrewgeorge
Автор

Really great tutorial! Thanks for the thorough explanations.

alexmstudio
Автор

Hey, be carefull when copying the schematic from the video. I tried to copy what was done in the video, but the motor kept spinning in random directions. I followed the instructions as closely as possible, but it still didn't work for me. I even used the same model of motor and driver. As a last ditch effort i swapped a couple of the wires going from the driver to the stepper motor in an act of desperation, and after dozens of hours of brain-rott it magically worked. Not sure if the diagram is wrong or i had a faulty product but it finally worked. Im not mad at the creator, i just want share my experience, so that it may help at least someone out there.
Kind regards Hen ry

Henry-tyqd
Автор

Really instructional, I am about to automate a little Christmas scene using a stepper motor with a NEMA 17 10.4 V 0.33 A . I am just trying to figure out why you need two power sources? The 9V and the computer powering the Arduino? I didnt know why you cant run the entire thing off of the power jack? Im pretty illiterate with electricity honestly though. Thank You!

waymanypsswrds
Автор

Couple questions:
1. Is the power 1-2 amps at 12 volts safe for humans? Do you need to take precautions?
2. How do you know it's safe to power the arduino via the computer? Eg that electricity isn't feeding back through the signal wires from the driver board? Also the driver is powered from the house circuit, but what if the laptop is on battery power? What does it mean to connect the ground of the battery to the ground of the DC power supply from the wall?

Brandon-qpgq
Автор

Awesome video, very informative Thanks.. will this work (code) with a Arduino Nano, need space! thank you!

json
Автор

Great video! I followed your instructions, but I can only get my motor to move in random directions. Any idea what this might be? I'm using the A4988 and I adjusted the code for that. Thanks for the help!

romaintarayre
Автор

Thanks for the tutorial! Quick question: Do the 4 pins on the Arduino connected to the L298N motor drive module have to be PWM pins, or can they be regular digital pins? Also, would analog pings A0 - A5 work as well?

elizabethb_
Автор

How much torque does it produce with the 9 volt input pls ?

bellaciao
Автор

5:00 Sadly you are not explaining how to calculate your values.

SantaDragon