background top icon
background center wave icon
background filled rhombus icon
background two lines icon
background stroke rhombus icon

Download "Урок 40 Часть 1 Шаговый двигатель Nema17 и драйвер А4988 в программе Flprog"

input logo icon
Video tags
|

Video tags

ардуино без написания кода
flprog
в flprog
ардуино аrduino
ключ к arduino
ключ к ардуино
ардуино для всех
arduino для всех
уроки flprog
уроки для начинающих
купить
сенсоры
датчики
шилд
arduino
ардуино
для начинающих
для чайников
это просто
buy
sensors
shield
for beginners
for dummies
this is simple
Урок 40
Часть 1
Шаговый двигатель
Nema17
драйвер А4988
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:01
arduino in this video we will learn how to
00:00:03
work with a nemo 17 stepper motor in
00:00:07
my case the oven model with 8401 such
00:00:11
motors are mainly used on
00:00:13
different chupa machines such as 3d printers
00:00:16
laser engraver and so on and
00:00:18
we work with this stepper motor We’ll go through the
00:00:21
driver
00:00:22
and 49 88 of course in the program and let’s
00:00:25
go with filters
00:00:28
[music]
00:00:32
but I think there’s
00:00:34
no need to talk too much about what stepper motors are, in principle,
00:00:36
everyone knows very well about it that it’s a
00:00:39
motor that can rotate a
00:00:42
certain number of steps and is valued
00:00:44
for its accuracy positioning of the shaft and
00:00:47
also on this stepper motor you can
00:00:49
make the most accurate
00:00:51
positioning of the shaft by
00:00:53
crushing the steps into micro steps, one step
00:00:57
can be divided into
00:00:58
either half into one half or into 4
00:01:01
parts into one quarter into eight parts one
00:01:04
eighth and the maximum last
00:01:07
option is one step into 16 parts 1 16 in
00:01:12
this video we will also learn how to do this, the
00:01:13
stepper motor itself
00:01:16
has two windings and therefore in this
00:01:19
case nani mo 17 the motor has 4
00:01:23
connection contacts, two from one winding and two from
00:01:26
the other, now the most important thing we
00:01:28
need is to figure out the driver
00:01:31
stepper motor a 49 88 the name of
00:01:35
this driver as you can guess is
00:01:37
that it is made on a 49 88 microcircuit its
00:01:41
characteristics power supply to stepper
00:01:43
motors from eight to thirty-five
00:01:45
volts supply voltage to the logic itself
00:01:48
this means the microcircuit itself from 3
00:01:52
to 5 5 volts there is protection against
00:01:55
overheating
00:01:56
maximum current without cooling the
00:01:58
microcircuit
00:01:59
1 ampere with a radiator on the microcircuit da2
00:02:02
amperes the size of the driver itself is very
00:02:05
miniature 20 by 15 millimeters well,
00:02:08
now let's look at the pinout of the driver
00:02:10
the driver has 16
00:02:13
connection pins at first glance it seems oh
00:02:16
how complicated but in fact everything is quite
00:02:18
it’s easy and now you’ll see for yourself in
00:02:21
this diagram you can clearly see how and
00:02:24
what is connected where, let’s start with the contacts
00:02:27
they have with the 1st s2 and s3, just these three
00:02:31
contacts are needed for that very splitting of the
00:02:34
step, we won’t even connect them
00:02:36
anywhere a little later Let's deal with them
00:02:38
in general, we dropped 3 contacts, there are
00:02:42
already less left, we move on to the
00:02:44
next
00:02:45
4 contacts, these are 4 contacts for connecting the
00:02:48
stepper motor, the diagram shows that
00:02:51
one winding of the stepper motor is connected
00:02:53
to contacts 2 b2 and the second
00:02:57
winding is connected to contacts 1a and 1b, we
00:03:00
also dropped 4 contacts
00:03:03
already left much smaller further
00:03:05
contact and nable the same as the input on the
00:03:08
blocks n that is, this contact turns on the
00:03:11
driver by default when this
00:03:14
pin is 0 that is, nothing is connected
00:03:16
the driver is turned on as soon as we supply
00:03:18
5 volts the driver turns off
00:03:21
so we don’t have this contact either we will
00:03:23
also connect it anywhere for now, we
00:03:25
exclude it, we have even fewer
00:03:28
contacts, we go to these two
00:03:31
contacts reset if only I think the name of
00:03:34
these contacts is also known to you
00:03:36
recess means reset slip is a sleep
00:03:39
mode if the slip pin is pulled to a
00:03:42
low level, that is, the
00:03:45
driver will come to the ground as a sleeper mode, we
00:03:50
are not going to use reset and sleep mode yet and for the
00:03:53
driver to work they need to be connected to each other
00:03:56
as shown in the diagram, we
00:03:59
only have six connection contacts and 4 of
00:04:02
them are power contacts, the upper
00:04:04
contacts on the right side are
00:04:07
motor power, as already said
00:04:09
from eight up to thirty-five volts and also
00:04:12
what you need to remember about powering
00:04:14
the motor, you definitely need to install a
00:04:17
smoothing capacitor of at least
00:04:20
100 microfarats, the driver really doesn’t like
00:04:22
voltage surges and therefore we
00:04:26
definitely put a capacitor on the power supply to the motor, so
00:04:28
you need to remember about this when connecting
00:04:30
from below on this In the same country, we
00:04:33
have contacts for connecting the
00:04:35
logic, that is, we power the logic chip itself
00:04:38
from 3 to 5 5 volts.
00:04:42
In this case, we will take the power from the
00:04:45
arduino and we have the most necessary
00:04:48
contacts with
00:04:49
which we will control the
00:04:51
stepper motor via arduino, this is the
00:04:54
contact
00:04:55
step and contact der
00:04:58
contact der we control the reverse
00:05:01
rotation, that is, when on this contact
00:05:03
1 the
00:05:04
motor rotates in one direction when on
00:05:07
this contact 0 the motor rotates in the
00:05:10
other direction and with the help of the step contact
00:05:13
we control the steps of the motor with
00:05:16
each positive pulse the
00:05:18
motor takes one step, well or
00:05:21
one micro step, if we broke one step
00:05:24
into micro steps, in other words, with an impulse
00:05:28
on the stop contact, the engine
00:05:30
makes a movement, if we apply units to the step contact
00:05:35
quickly, quickly, then the movement of the engine
00:05:38
will already turn into rotation, I think
00:05:42
with connection and control with the engine
00:05:44
everything is clear and from the acquired knowledge
00:05:47
let's go to the program and fal proc
00:05:49
since in the fal proc program there is no block
00:05:52
for the stepper motor driver a 49 88
00:05:57
but we know by what principle it
00:05:59
works and through the program and fal proc
00:06:02
we need to control
00:06:03
only two contacts this
00:06:07
step contacts and der contacts, let's first
00:06:09
create inputs and outputs in the fairy proc program,
00:06:12
we've already prepared them in advance, which
00:06:15
means we'll need one input, a button, a
00:06:18
second input, analog to a resistor, a button,
00:06:21
we'll make anti-bounce protection and a
00:06:23
pull-up resistor, then the outputs,
00:06:26
just let me sign it here to make it
00:06:30
clear what is the pin on the driver the steps
00:06:33
are we have step and reverse we have contact
00:06:41
der as you can see we are working with the
00:06:46
program version and the proc file 7.3.0
00:06:49
and here the buttons are located a little
00:06:52
differently now the confirmation button okay
00:06:54
we don’t have at the bottom but here in the upper
00:06:57
left corner Here’s a checkmark: now we
00:07:00
pull out the input button on the board and
00:07:03
pull out the reverse output, immediately connect them to
00:07:07
each other, put them on the button, put
00:07:09
inversion,
00:07:10
maybe we have a
00:07:12
pull-up resistor on the buttons, now we have
00:07:15
ready the circuits for controlling the reverse, that
00:07:19
is, in which direction
00:07:21
our motor will spin, we feed it at using the button
00:07:24
on the pin der one, the engine spins
00:07:27
in one direction,
00:07:28
remove the one on the contact der, we have
00:07:31
zero and the motors begin to
00:07:33
rotate in the other direction, now we
00:07:35
pull out the step output onto the board,
00:07:36
that is, the steps now we need
00:07:41
to contact the step driver which we
00:07:44
will have connected to on the third pin, the
00:07:47
der contact, as you can see, is connected to the
00:07:50
second pin, now we need to
00:07:54
send pulses to the step driver contact, go to the
00:07:58
block tree in the timers tab and
00:08:00
pull out the generator from here, go to the
00:08:03
generator and set the generator to set the
00:08:06
symmetrical multivibrator
00:08:08
and purity, let's say we set it to one
00:08:11
millisecond,
00:08:12
click Makey on We set the generator input to
00:08:16
inversion so that it works constantly and
00:08:19
connect the generator through the two-step contact output.
00:08:26
Now we have assembled the
00:08:29
simplest circuit with which we
00:08:32
can control the engine reverse and
00:08:35
our engine will rotate with a
00:08:38
frequency of one millisecond. Now
00:08:41
we connect all the contacts
00:08:43
as I showed. in the picture and the outputs of the
00:08:46
step cores we connect the step to the third pin of
00:08:50
the arduino dirk to the second pin of the arduino and from the arduino we
00:08:54
also power the driver logic and
00:08:56
check what we got and so we have everything
00:08:59
ready for demonstration for now don’t pay
00:09:02
attention to the variable resistor and display
00:09:04
we will need them for the
00:09:07
next demonstrations, we have already
00:09:10
loaded arduino and here we see three
00:09:12
unconnected wires,
00:09:14
these are exactly the same contacts ms-1 with
00:09:17
2m s3 for crushing the step,
00:09:19
how to split the step, I will also
00:09:22
show you now, so we supply power to the stepper
00:09:24
motor and see the stepper motor
00:09:30
everything is rotating as planned according to the
00:09:32
sketch, we
00:09:33
check the reverse, the
00:09:45
reverse also works fine, so as
00:09:48
for the splitting of the step,
00:09:50
now our engine is running at
00:09:52
full steps and we know that for one
00:09:54
revolution of the engine we need 200 steps,
00:09:57
so for now I’ll turn it off, see if
00:10:02
we have 200 steps for a full revolution
00:10:04
then when we divide one step in half, then
00:10:07
we already have a full revolution of
00:10:09
the pulley, we get 400 steps, when we divide the
00:10:13
step into 4 parts, it’s already 800 into eight parts,
00:10:16
already 1600 and into 16 parts, 3200 steps, one
00:10:23
revolution of the pulley
00:10:24
with crushed steps, of course the engine
00:10:27
runs much softer,
00:10:29
let’s look at another we have a sign
00:10:31
for splitting the step, as they said worse,
00:10:34
there are three contacts and a mass of 1m s2 and s3
00:10:37
now we look at the full step, all 3
00:10:40
contacts are
00:10:41
with them and are not connected 0 and in order for
00:10:44
us to split the step in half we need
00:10:48
ms-1 to be connected to the unit they are s2 and s3 not
00:10:53
connected, let's try,
00:10:57
here we have contact ms-1, I connect it,
00:11:06
we see that our engine has begun
00:11:08
to rotate slower since the number of
00:11:11
steps per revolution has increased,
00:11:13
let's further look at the sign to
00:11:16
split the step into four parts, we need to
00:11:19
connect only contact
00:11:22
ms2, disconnect ms-1 and we connect it, we
00:11:31
attract it to the unit, that is,
00:11:33
we connect it to the pole to drink 5 volts and we see
00:11:40
that the engine began to rotate even
00:11:42
slower than when splitting the step into two, we
00:11:45
look further to divide the step into 8
00:11:48
parts, we need to connect
00:11:50
them s1 and s2, at the moment we have ms2
00:11:55
connected, we connect
00:11:57
on the plus 5 volt contacts with 1 we see the
00:12:07
engine began to spin even slower
00:12:10
but with this movement it is smoother and we see
00:12:14
the largest crushing of one
00:12:16
step into 16 parts, all three contacts are
00:12:20
pulled up to a high level, that is, we connect all
00:12:23
3 contacts
00:12:24
to the power supply plus 5 volts
00:12:27
arduino
00:12:28
we connect contact ms-3 and we see that
00:12:34
our motor has begun to spin very
00:12:37
slowly because for one revolution
00:12:40
we now need three thousand two hundred steps
00:12:44
guys, at the moment there is only
00:12:47
one problem with the working of the stepper
00:12:49
motor in the program and the purpose of the use is that the
00:12:52
pulse generator is only useful for future use
00:12:55
software and the more programs we have,
00:13:00
the larger our sketch, the more
00:13:02
different modules are connected in it
00:13:04
and the more programs, the
00:13:07
slower it runs guys, no matter how hard
00:13:11
you try to set the highest
00:13:13
frequency on the generator block with a large
00:13:16
program, that is, a large sketch, the
00:13:18
program will be executed slower and
00:13:22
we won’t be able to spin the motor as far as it has the ability
00:13:25
because the impulse will be constantly
00:13:28
slowed down as the program increases.
00:13:30
In general, this nema 17 stepper motor
00:13:34
develops up to 8 revolutions per second, this is its
00:13:37
maximum capability, but here we’ll
00:13:40
remove even thoughts and turn it on at
00:13:43
full speed turned off wires
00:13:46
or rather contact m, as you can
00:13:49
see here there are no 8 revolutions per second
00:13:53
but a maximum of 2.
00:13:55
Well, I think we got basic knowledge in the
00:13:57
next two parts of the stepper
00:14:00
motor, we will collect a couple more examples of
00:14:03
controlling a stepper motor in the
00:14:05
filter program,
00:14:06
links to the stepper motor and the driver
00:14:09
will be found, as always, in in the description under the
00:14:11
video, only about the engine,
00:14:13
I advise you to take it from this seller
00:14:15
because this seller is verified,
00:14:18
I can definitely recommend it to you, and
00:14:21
lately others have a
00:14:23
lot of fakes,
00:14:24
the quality leaves much to be desired, but for me,
00:14:27
everyone who liked the video, please like and
00:14:29
subscribe to the channel don't
00:14:31
forget to click on the bell bye everyone
00:14:33
[music]

Description:

Файлы на Яндекс диске, искать по названию https://yadi.sk/showcaptcha?cc=1&mt=29EB2A719EF01F04D7CCB02F517D723E67E090EEDFE8449C3D16709DC789A8B076B16CA72F932516E9917701EA73D02F945B203D1499C6F2CEBBF68E8751DDF7D895264E2D99D78265387056D6C2F4A43C2AA90371B9E8D35FFB939F07CDF16D3B3965F6E341AF5F61B90C62C343FF18A1E39D&retpath=aHR0cHM6Ly95YWRpLnNrL2QvYUtwdVJEbUJTTlFtOGc__c78b8bb038c43129a36c1861ce3140c4&t=2/1705915420/46726eb50257d3b133bb6ffcf816955a&u=1a1d5d83-4556f3ad-3f83c691-b809b04c&s=c5bfcaaa6d6ca178f0b85d65a3d8003e Сайт программы Flprog flprog.ru 📎Прошу в комментариях сообщить если какая то ссылка не работает!!! Arduino NANO http://shp.pub/63lexf Arduino Pro Mini http://shp.pub/63lf1i Arduino sensor shield v5.0 http://ali.pub/1bfevy DFPlayer Mini http://shp.pub/63lhvs GSM модуль SIM800L http://shp.pub/63lm4m HC-12 Дальнобойное радиоуправление http://shp.pub/63lgkx MOSFET 5A http://shp.pub/63ln22 MOSFET на 15А http://shp.pub/63ln6c MOSFET на 220V http://ali.pub/1raw3q RGB Светодиоды http://shp.pub/63lgat SD модуль Arduino http://shp.pub/63lcyn USB UART/TTL (конвертер прошивальщик) http://shp.pub/63lf3u АЦП ADS1115 http://shp.pub/63lcem Дальномер HC-SR04 http://shp.pub/63lna8 Дальномер HY-SRF05 http://shp.pub/63lnpz Датчик BMP180 (Барометр) http://shp.pub/63lo4r Датчик BMP280 (Барометр) http://shp.pub/63lo7h Датчик газа и дыма MQ-2 http://shp.pub/63lh6w Датчик индуктивности http://shp.pub/63lofu Датчик освещённости (Фоторезистор) http://shp.pub/63lmgv Датчик препятствий http://ali.pub/1dl0rn Датчик препятствий E18-D80NK http://shp.pub/63lgp7 Датчик температуры DS18B20 http://shp.pub/63lgto Датчик температуры и влажности DHT11 (DHT21 DHT22) http://shp.pub/63ldnj Двухстрочный дисплей(синий, зелёный) http://ali.pub/19iccq Десяти сегментный индикатор http://shp.pub/63lhid Дисплеи Ардуино с разными подсветками http://shp.pub/63lelk Драйвер А4988 http://got.by/5jb4p0 Драйвер двигателей на ШИМ http://shp.pub/63loxx ИК Управление http://shp.pub/63ldyf Клещи для зачистки изоляции http://shp.pub/63j0dn Кнопки Ардуино http://shp.pub/63lg2n Колёса для Ардуино http://ali.pub/1a23dz Контактные реле http://shp.pub/63lpij Кран Электромагнитный клапан http://shp.pub/63lkyt Кримпер Клещи для обжима клемм http://shp.pub/63izbx Люксметр http://shp.pub/63lsoh Макетные платы http://shp.pub/63lpnz Матричная Клавиатура http://got.by/5bb6tg Микро SD карты (флешки) http://shp.pub/63ld61 Микроконтроллер NODE MCU http://shp.pub/63lfvg Модуль EEPROM AT24C256 http://ali.pub/1qsaa3 Модуль Вольт-Амперметра INA-219 http://shp.pub/63lhr4 Модуль расширителя ШИМ выходов PCA9685 http://shp.pub/63lcja Мотор с редуктором http://shp.pub/63lsgi Погружной водяной насос http://shp.pub/63lm7x Понижающий преобразователь на 3А http://shp.pub/63lma9 Расширитель входов - выходов MCP23017 http://shp.pub/63lcbb Сдвиговый регистр 74HC595 http://shp.pub/63lcpw Сенсорные выключатели http://shp.pub/62u3ns Серводвигатели сила 20кг http://shp.pub/63lpz9 Серводвигатели сила 25кг http://shp.pub/63lr3w Серводвигатели сила 60кг http://shp.pub/63lrnc Стартовый набор Ардуино http://shp.pub/63ls06 Твердотельные реле http://shp.pub/63ls60 Тихие Драйверы шаговых двигателей http://shp.pub/63lp7n Тумблера со светодиодами http://shp.pub/63lldl Цифро-аналоговый преобразователь ЦАП MCP4725 http://shp.pub/63lcm7 Часы реального времени Ардуино http://shp.pub/63le5t Четырёхстрочный дисплей http://ali.pub/19ide2 Шаговый двигатель Nema17 http://got.by/5jb4rc Энкодер http://shp.pub/63lh28

Preparing download options

popular icon
Popular
hd icon
HD video
audio icon
Only sound
total icon
All