본문 바로가기
IT/Platform

[Arduino] Step Motor 제어

by 블랙오닉스 2024. 2. 27.

가지고 있는 Motor + Driver Set

https://www.devicemart.co.kr/goods/view?no=1327608

 

아두이노 5V 스텝모터 + ULN2003 모터 드라이버 모듈 세트 [SZH-EKBL-007]

5V 스텝모터와 ULN2003 모터드라이버 모듈을 한 번에 저렴하게! / 5V stepper motor : 360도 회전 가능, ULN2003 모듈로 회전 각도 및 방향, 속도 제어 가능 / Motor Diameter : 28mm / PCB board size : 35mm x 33mm

www.devicemart.co.kr

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

 

[아두이노 중급] 29. 스텝모터, 스테핑모터(28BYJ-48)

이번 포스팅에는 스텝 모터에 대해 좀 알려달라는 분들이 많아 써보는 포스팅이다. 스텝 모터에 대해 포스...

blog.naver.com


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 검색

https://parts-parts.co.kr/product/pp-a730-tb6600-%EC%8A%A4%ED%85%8C%ED%95%91-%EB%AA%A8%ED%84%B0-%EB%93%9C%EB%9D%BC%EC%9D%B4%EB%B2%84-4a-9-42v/1262/

 

(PP-A730) TB6600 스테핑 모터 드라이버 4A 9-42V

이주의 인기검색어

parts-parts.co.kr

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