Hi Guys,
This project I was working on it last weekend. I thought it is good idea to share it with you.
My main goal to limit parts as much as I can. As you know this is the power if 3D printing.
It is simple idea could be improve more in future. It is auto fish feeder using Arduino. It can help you to feed your fish daily.
I'm still working on it!
Please feel free to contact me if you need any help.
/* Fish feeder
Servo mainServo;
int mainServoPin = 9;
int servoStart = 0; // Start Degree
int servoEnd = 105; // End Degree
int feeding = 1 ; // Number of hours to feed
int shakTims = 10; // Number of shaks
int shakDeg = 25; // shaking degree postions
int shakStro = 10; // Shaking speed
int feedTims = 1; // Number of scoops each time
int feedSpee = 20; // Moving speed
int pos;
int tim;
int feed;
void setup() {
mainServo.attach(mainServoPin);
mainServo.write(servoStart);
}
void loop() {
delay(6000); // Delay befor first feeding
for(feed = 0; feed < feedTims; feed += 1){
for(tim = 0; tim <= shakTims; tim += 1){
for (pos = 0; pos <= shakDeg; pos += 1) {
mainServo.write(pos);
delay(shakStro);
}
}
for (pos = 0; pos <= servoEnd; pos += 1) {
mainServo.write(pos);
delay(feedSpee);
}
for(tim = 0; tim <= shakTims; tim += 1){
for (pos = servoEnd; pos >= servoEnd-shakDeg; pos -= 1) {
mainServo.write(pos);
delay(shakStro);
}
}
for (pos = servoEnd; pos >= servoStart; pos -= 1) {
mainServo.write(pos);
delay(feedSpee);
}
}
delay(feeding*3600000); // 3600000 milliseconds in an hour
}
Regards
fish_feeder_2-can.stl | 317.3KB | |
fish_feeder_2-cap.stl | 15.5KB | |
fish_feeder_2-panel.stl | 245.7KB | |
fish_feeder_2-scoop.stl | 60.8KB |