Automatic feeder for dogs made of PVC pipe

By GIL'S LAB길스랩

12
2
Free
It's free to download

Technical

pla , infill 30% ARDUINO SOURCE CODE ========================================================== #include // 스테핑 모터 라이브러리를 정의 한다 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); }
36 objects 20 Followers 1717 Downloads
Joined almost 5 years ago South Korea
Enjoy a 10% sitewide
Discount at checkout
Get a 10% Discount