Auto Fish Feeder

Auto Fish Feeder

Description

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. Arduino Code: ------------------ /* Fish feeder * By Amin < aalrusayni @ gmail.com > */ include < Servo.h > // pls add # before include and remove all spaces between <> 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

Statistics

Likes

17

Downloads

0

Category

Pets