[TMT] Lập trình điều khiển động cơ bước 28BYJ vs Arudino UnoR3 - Code Arduino dễ như ăn bánh
TMT Electronic - Smart Control, Smart Life
0:00 / 0:00
[TMT] Lập trình điều khiển động cơ bước 28BYJ vs Arudino UnoR3 - Code Arduino dễ như ăn bánh
31 877 просмотров · 6 лет назад
TMT Electronic - Smart Control, Smart Life
23,5 тыс. подписчиков
31 877 просмотров · 6 лет назад
[TMT] Lập trình điều khiển động cơ bước 28BYJ vs Arudino UnoR3 - Code Arduino dễ như ăn bánh
#TMT #L2D #Arduino
Tài liệu: https://smartconnect.tmtelectronic.co...
Code:
#include "Stepper.h"
const int stepsPerRevolution = 2048;
Stepper myStepper = Stepper(stepsPerRevolution, 8, 10, 9, 11);
Stepper myStepper2 = Stepper(stepsPerRevolution, 8, 10, 9, 11);
void setup() {
myStepper.setSpeed(15);
myStepper2.setSpeed(5);
}
void loop() {
myStepper.step(2 * stepsPerRevolution);
delay(1000);
myStepper2.step(-stepsPerRevolution / 2);
delay(1000);
}
Like, share & Đăng ký kênh để cập nhật video mới nhé... :)
Nếu có bất kỳ vấn đề thắc mắc gì vui lòng liên hệ fanpage. Điện tử Minh Thư sẽ phản hồi trong thời gian sớm nhất.
-------------------------------------------------------------------------------
Liên hệ:
Website: https://tmtelectronic.com/
FanPage1: / linhkiendientul2d
FanPage2: / minhthuelectronic
Facebook cá nhân: / danielthu167
YouTube: / minhthuelectronic
Số điện thoại hỗ trợ: 0354171600