






PayPal Donations :https://www.paypal.me/01044488692
pla ,infill 30%
ARDUINO SOURCE CODE
==========================================================
#include <Stepper.h> // 스테핑 모터 라이브러리를 정의 한다 int in1Pin = 13; // [A] 상을 정의 한다 int in2Pin = 12; // [B] 상을 정의 한다 int in3Pin = 7; // [/A] 상을 정의 한다 int in4Pin = 6; // [/B] 상을 정의 한다 Stepper motor(200, in1Pin, in2Pin, in3Pin, in4Pin);
void setup() { pinMode(in1Pin, OUTPUT); // [A] 상을 출력으로 지정한다 pinMode(in2Pin, OUTPUT); // [B] 상을 출력으로 지정한다 pinMode(in3Pin, OUTPUT); // [/A] 상을 출력으로 지정한다 pinMode(in4Pin, OUTPUT); // [/B] 상을 출력으로 지정한다 motor.setSpeed(10); }
void loop() { motor.step(200); // 360도 정회전 delay(1000); motor.step(-50); // 90도 역회전 delay(1000); motor.step(200); // 360도 정회전 delay(1000); motor.step(-50); // 90도 역회전 delay(1000); motor.step(200); // 360도 정회전 delay(1000); motor.step(-50); // 90도 역회전 delay(1000); motor.step(200); // 360도 정회전 delay(1000); motor.step(-50); // 90도 역회전 delay(1000); digitalWrite (13,LOW) ; digitalWrite (12,LOW) ; digitalWrite (7,LOW) ; digitalWrite (6,LOW) ; delay(3600000); }
Loading prints...
Automatic feeder for dogs made of PVC pipe
Creative Commons Attribution
You can distribute, remix, adapt, and build upon the material in any medium or format, as long as attribution is given to the creator.
Loading comments...