Có một số sản phẩm hết hàng chưa được cập nhật và lỗi thông số kỹ thuật bị ẩn.Mong quý khách thông cảm !!!
Linh Kiện Điện Tử
THIẾT BỊ CƠ KHÍ

Module Điều Khiển Động Cơ ULN2003 Và Động Cơ 5V

Giá bán
29,000₫

Module điều khiển động cơ ULN2003 kèm động cơ 5VDC 28BYJ-48 với cấu tạo đơn giản dễ sử dụng thích hợp cho người mới làm quen với động cơ.

Thông số kỹ thuật :

  • Điện áp hoạt động ULN2003 : 5~12VDC
  • Có hiển thị đèn led tính hiệu 
  • Động cơ bước 28BYJ-48 
  • Điện áp hoạt động : 5VDC
  • Góc bước : 5.625x1/64
  • Tỷ lệ : 1/64
  • Trọng lượng : 40g

// Include the Arduino Stepper.h library:

#include <Stepper.h>

 

// Define number of steps per rotation:

const int stepsPerRevolution = 2048;

 

// Create stepper object called 'myStepper', note the pin order:

Stepper myStepper = Stepper(stepsPerRevolution, 8, 10, 9, 11);

 

void setup() {

  // Set the speed to 5 rpm:

  myStepper.setSpeed(5);

 

  // Begin Serial communication at a baud rate of 9600:

  Serial.begin(9600);

}

 

void loop() {

  // Step one revolution in one direction:

  Serial.println("clockwise");

  myStepper.step(stepsPerRevolution);

  delay(500);

 

  // Step one revolution in the other direction:

  Serial.println("counterclockwise");

  myStepper.step(-stepsPerRevolution);

  delay(500);

}

Facebook Zalo Youtube