가지고 있는 Motor + Driver Set
https://www.devicemart.co.kr/goods/view?no=1327608
Unipolar Driver -> Unipolar Motor: OK
Bipolar Driver -> Unipolar Motor: OK
Unipolar Driver -> Bipolar Motor: X
ULN2003 Datasheet
https://www.ti.com/lit/ds/symlink/uln2003a.pdf?ts=1708986618541
https://blog.naver.com/darknisia/221652111026
Arduino: Controller
ULN2003: Driver
Motor
4S42Q-L03434S3
3.4V, 4.2Ohm, 1.8/step
#include <Stepper.h>
const int stepsPerRevolution = 200; // change this to fit the number of steps per revolution
// for your motor
// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
void setup() {
// set the speed at 60 rpm:
myStepper.setSpeed(60);
// initialize the serial port:
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);
}
1.8/Step 이므로 360도/1.8 => 200
8,9,10,11 번 핀이 기본
1초에 한바퀴를 돌려면 1*60 => 60 RPM
중간에 Uploading 에러가 계속 나서 구굴링.
Serial Port쪽 연결하지 말라고 해서 핀맵 다시 확인.
중간에 점퍼를 자주 바꾸다 5V 출력을 연결안하고 RST와 Driver쪽으로 연결문제
드라이버 IC에 발열이 심함
=> TB6800 검색
auction에 같은 판매자 있어서 구매
'IT > Platform' 카테고리의 다른 글
[Arduino] Nano SPI 테스트 (0) | 2024.05.24 |
---|---|
[Micro:bit] Bluetooth 연결 (0) | 2024.03.28 |
[Micro:bit] 초기화 (0) | 2023.11.01 |
[Arduino] ESP32-CAM 개발 환경 (0) | 2022.07.03 |
[FPGA] 부품 가격@2010 (0) | 2022.06.07 |