Thingiverse
AutomaticFishFeeder
von Maker_12345
0
Downloads
0
Likes
0
Makes
This thing is only to give food so you have to design a socket for a microkontroller/Raspberry
Servo fits not like on the picture
Arduino code:
"#include
const unsigned long SECOND = 1000;
const unsigned long HOUR = 3600*SECOND;
Servo myservo; // create Servo object to control a servo
// twelve Servo objects can be created on most boards
int pos = 0; // variable to store the servo position
void setup() {
myservo.attach(10); // attaches the servo on pin 13 to the Servo object
myservo.write(0); //sets the servo to 0
}
void loop() {
delay(24*HOUR);
for (pos = 0; pos = 0; pos -= 1) { // goes from 190 degrees to 0 degrees
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15 ms for the servo to reach the position
}
}"
important remove the (") on the top and end of the code
Servo fits not like on the picture
Arduino code:
"#include
const unsigned long SECOND = 1000;
const unsigned long HOUR = 3600*SECOND;
Servo myservo; // create Servo object to control a servo
// twelve Servo objects can be created on most boards
int pos = 0; // variable to store the servo position
void setup() {
myservo.attach(10); // attaches the servo on pin 13 to the Servo object
myservo.write(0); //sets the servo to 0
}
void loop() {
delay(24*HOUR);
for (pos = 0; pos = 0; pos -= 1) { // goes from 190 degrees to 0 degrees
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15 ms for the servo to reach the position
}
}"
important remove the (") on the top and end of the code
Maker_12345 veröffentlicht auch auf
7 zusätzliche Modelle auf 1 weiteren Plattformen
Hast du dieses Modell gedruckt? Einloggen und dein Make teilen!
Melde dich an, um einen Kommentar zu hinterlassen
AnmeldenNoch keine Kommentare – sei der Erste!