L9110 with Arduino Code – Part 3: How to Stepper Motor Speed and Direction

preview_player
Показать описание
L9110 with Arduino Code – Part 3: How to Stepper Motor Speed and Direction

This video is the third part of the tutorial where I will discuss how to use small stepper motors such as this NEMA-17 with the L9110 motor control board using Arduino. I will also explain how to perform micro stepping and prevent your stepper motors and control boards from overheating.

This board can be used to control two small DC motors simultaneously or can be used to control a small stepper motor, such as a NEMA 17. The board operates between 2.5- and 12-volts DC. It is capable of sourcing 800 mA per phase sustained and 1.5 Amps momentarily.

This tutorial is divided into 3 videos. Part 1 covers the speed and direction control of DC motors. Part 2 discusses the control of linear actuators. Part 3 demonstrates how to control the speed and direction of stepper motors. Each video includes step-by-step set-up instructions as well as basic Arduino coding that can be incorporated into your own projects.

The following are affiliate links for products I used in this video. Using these links will not affect the price for your purchase but may result in a small commission for me, allowing me to keep making helpful and entertaining videos.

L9110S H-bridge Dual Channels Motor Driver Control Board for Arduino

Bipolar Stepper Motor

14 Function Multimeter with light meter and thermocouple

Arduino
Рекомендации по теме
Комментарии
Автор

I couldn't ask for a better video! From a old EE who is trying to catch up. lol

williamdenham
Автор

Great video, answered the questions I had and some I didn't know I had... Thanks!

Frejjan
Автор

Hi - really like this approach. Clear explanation of the fundamentals which opens up a lot of experimentation opportunities to get to understand the performance of a stepper. Thanks!

ardespmaker
Автор

The shown code seems to have two errors:
"for ( int i=0; i<1599; i--)" - you point to the "i--" but that does not change the direction. That for loop will run a long time, i becoming more and more -ve until "i" wraps after 32K to a large +ve number.
The move() function in the loop uses the same "stepnumber" ... the motor wont move. Only by including a "stepnumber--" in that loop will what you demonstrate happen.

On the + side - I like the demo of using the sin/cos to make a microstepping (I'd probably use a lookuptable for speed)

Mskvaer
Автор

Is these applicable for braking in automobile, we remove the hyrobooster, and we replace it into electric actuator, we will diy that so that we can push or pull the brake cylinder, is it arduino can control the movement of rotation in terms of slow braking and emergency braking?

autodocs
Автор

Hi, nice video but I can't figure how the code can work. How can the rotation stop if in the move function there are no combination where all the PWM output are LOW or HIGH at the same time? And in the secon for loop (in the loop) the variable stepnumber is not decreased, why it should go backwards?.

EgdoMaker
Автор

Hi! I have the NEMA 17 motor and the L9110. But arduino nano instead of uno. My motor just vibrates when i run this code and doesn't spin. What could be the problem?

fleur
Автор

hi, I try to reproduce the same thing with an arduino due, an L9110S and a stepper motor KYSAN 1124090 but the beer motor without running. can you help me ?

Bidouillerfr
Автор

Is there a link to download the code here?
Thanks great video!

njcvyellow
Автор

Actually I copied the code line for line being this is my first project. The Compiler called out

exit status 1

Compilation error: 'move' was not declared in this scope
I'm stuck! lol

williamdenham
Автор

Video is good👌 .i have one doubt bro I have 1 DC motor for rotation and I have 1stepper motor .Based on DC motor speed the stepper motor move in linearly.but accuracy of stepper motor not that much.i want accuracy is (.05).what can I do bro.

arulmurugan
Автор

is it possible to add 2 limit switches to the code?

motazmsaddak
Автор

Hi everyone.

Can someone tell me or guide me for changing polarity for one coil with L 298 N ?
I want to see how is work 100 times per second.
Thanks

MIHAI
join shbcf.ru