How to connect DC motor | Как подключить двигатель постоянного тока
Բարև ձեզ, այժմ կներկայացնեմ, թե ինչպես միացնել շարժիչը կառավարչին։ Շարժիչը պետք է միացնել կառավարչի Motor Pin-երից ինչ-որ մեկին։
Նշենք, որ վերջին 4,5-րդ Pin-երը դանդաղ պտտվող՝ 5Վ շարժիչների համար են նախատեսված, իսկ մնացած 0-3-ը ներառյալ՝ 12Վ շարժիչների համար:
Անցնենք ծրագրային մասին․ սկզբում պետք է ներմուծել գրադարաններից «ՍԵՌոբ-3 գրադարանը»։ Մեր շարժիչը աշխատացնելու համար պետք է օգտվենք «Լիմ-Ս շարժիչ»բլոկից։ Առաջին հատվածում գրում ենք, թե որ Pin-ին է միացված շարժիչը․ մեր դեպքում՝ 0։ Երկրորդ մասում նշում ենք արագությունը։ Եթե «+» նշանով կամ առանց նշանի՝ այն պտտվում է առաջ, իսկ եթե «-» նշանով՝ հետ։ Կախված ներմուծված թվից՝ արագությունը
տարբեր է լինում՝ 10-ից մինչեւ 100։
Եթե տանք «50» արագություն՝ կպտտվի իր արագության կեսով
«-50» արագության դեպքում կպտտվի հակառակ ուղղությամբ
SERob3 (snap)․ ինչպե՞ս միացնել հաստատուն հոսանքի շարժիչը
-
Tatevik Orbelyan
- Posts: 50
- Joined: Thu Apr 09, 2020 5:42 pm
How to connect DC motor
Hi! Now I will show you how to connect a DC motor to a controller.
The motor must be connected with one of the Motor Pins of the controller. Note that the last 4th and 5th Pins are for slow - 5 V motors, and the other 0-3 pins are for 12 V motors. Let’s turn to the software part. Firstly we need to import the “SERob-3 library” from the libraries.
In order to run our motor, we need to use a “Lim-S motor” block. In the first part, we type to which Pin is the motor connected-for this case it is 0. In the second part, we mention the speed. If we mention the speed with “+” or without any sign the motor spins forward and if we use “-”, it spins back. Depending on the inserted number the speed can be different- from 10 to 100.
If we give 50 speed, the motor will spin half its speed, if -50, it will spin in the opposite direction. if -50, it will spin the opposite direction. Let’s see the result.
The motor must be connected with one of the Motor Pins of the controller. Note that the last 4th and 5th Pins are for slow - 5 V motors, and the other 0-3 pins are for 12 V motors. Let’s turn to the software part. Firstly we need to import the “SERob-3 library” from the libraries.
In order to run our motor, we need to use a “Lim-S motor” block. In the first part, we type to which Pin is the motor connected-for this case it is 0. In the second part, we mention the speed. If we mention the speed with “+” or without any sign the motor spins forward and if we use “-”, it spins back. Depending on the inserted number the speed can be different- from 10 to 100.
If we give 50 speed, the motor will spin half its speed, if -50, it will spin in the opposite direction. if -50, it will spin the opposite direction. Let’s see the result.
-
Tatevik Orbelyan
- Posts: 50
- Joined: Thu Apr 09, 2020 5:42 pm
Как подключить двигатель постоянного тока
Добрый день, сейчас я Вам представлю, как подключить двигатель к контроллеру. Двигатель необходимо подключить к одному из Motor Pin-ов контроллера. Отметим, что последние - 4-ый и 5-ые Pin-ы, предназначены для медленно вращающихся, двигателей 5В, а остальные - от 0 до 3 включительно - для двигателей 12В.
Перейдем к программной части. Сначала необходимо из библиотек импортировать библиотеку SERob-3.
Для запуска нашего двигателя мы должны воспользоваться блоком "Двигатель Lim-S". В первой части пишем, к какому Pin-у подключен двигатель. В нашем случае - 0. Во второй части указываем скорость. Если со знаком "+" или без знака - он вращается вперед, а если со знаком "-", то - назад. В зависимости от импортированного числа скорость варьируется от 10 до 100.
Если зададим скорость "50", он будет вращаться с половиной своей скорости, или скорость "-50", тогда будет вращаться в противоположном направлении. Посмотрим на результат.
Для запуска нашего двигателя мы должны воспользоваться блоком "Двигатель Lim-S". В первой части пишем, к какому Pin-у подключен двигатель. В нашем случае - 0. Во второй части указываем скорость. Если со знаком "+" или без знака - он вращается вперед, а если со знаком "-", то - назад. В зависимости от импортированного числа скорость варьируется от 10 до 100.
Если зададим скорость "50", он будет вращаться с половиной своей скорости, или скорость "-50", тогда будет вращаться в противоположном направлении. Посмотрим на результат.