ULN2003 Stepper Motor driver (X113647) [B002]
https://www.youtube.com/watch?v=yFyNh_hIRFA
* GitHub : https://github.com/rdiot/rdiot-b002.git
* Specs
Driver ID : ULN2003AN
Description:
Rated Voltage: DC5V
4-phase
Reduction Ratio: 1/64
Step Torque Angle: 5.625/64
DC Resistance: 200±7% (25)
Insulation Resistance: >10M (500V)
Dielectric Strength: 600V AC / 1mA / 1s
Insulation Grade: A
No-load Pull in Frequency: >600Hz
No-load Pull out Frequency: >1000Hz
Pull in Torque: >34.3mN.m(120Hz)
Detent Torque: >34.3mN.m
Temperature Rise: <40K(120Hz)
Noise: <40dB (120Hz, No load, 10cm)
Board Size: Approx. 29 ×21 mm
* Contents
- Connect
5V - ----- 5V
5V + ----- GND
IN1 ----- D8
IN2 ----- D9
IN3 ----- D10
IN4 ----- D11
- Key Code
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <Stepper.h>
LiquidCrystal_I2C lcd(0x27,20,4); // LCD2004
const int stepsPerRevolution = 2048; // 2048(360 Degree), 1024(180 Degree)
// IN4, IN2, IN3, IN1
Stepper myStepper(stepsPerRevolution,11,9,10,8);
int val;
void setup()
{
lcd.init(); // initialize the lcd
lcd.backlight();
lcd.print("start LCD2004");
delay(1000);
myStepper.setSpeed(14);
lcd.clear();
}
void loop()
{
lcd.setCursor(0,0);
lcd.print("D021:28BYJ-48");
lcd.setCursor(0,1);
lcd.print("B002:X113647");
// Left 1 Round
myStepper.step(stepsPerRevolution);
val = stepsPerRevolution;
lcd.setCursor(0,2);
lcd.print("right=" + (String)val + " ");
delay(500);
// Right 1 Round
myStepper.step(-stepsPerRevolution);
val = -stepsPerRevolution;
lcd.setCursor(0,2);
lcd.print("left=" + (String)val + " ");
delay(500);
}
'3) Actuator > Motor_Driver' 카테고리의 다른 글
L9110S 2-Channel Dual Motor Driver (L9110S) [B042] (0) | 2016.10.05 |
---|---|
Control H Bidge Gear Motor Control [P003] (0) | 2016.10.05 |
L298N Dual Motor Driver H Bridge (L298N) [B005] (0) | 2016.10.05 |
6~28V 3A Motor Speed Controller [B056] (0) | 2016.10.05 |