A little secret to rock your YouTube subscribers
Get Free YouTube Subscribers, Views and Likes

[TMT] Lập trình điều khiển động cơ bước 28BYJ vs Arudino UnoR3 - Code Arduino dễ như ăn bánh

Follow
TMT Electronic

[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://1drv.ms/u/s!AhghGzJt2tJLhPAsP...

Khóa học Arduino cho mọi nhé ạ: https://minhthuelectronic.com/hocard...

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://www.minhthuelectronic.com
FanPage1:   / linhkiendientul2d  
FanPage2:   / minhthuelectronic  
Facebook cá nhân:   / danielthu167  
YouTube:    / minhthuelectronic  
Số điện thoại hỗ trợ: 0354171600

posted by Cobanyb