Introduction: Eazy Automatic Fish Feeder

Picture of Eazy Automatic Fish Feeder

Supplies

- Fish food case

- Servo

- Wood

- Arduino

- Tools to cut wood

- Jumper wires

- Drill

- Hot glue and wood glue

Step 1: Wiring Your Circuit

Picture of Wiring Your Circuit

Wire your circuit to this picture.

Step 2: Code (Change Time to What You Want)

Picture of Code (Change Time to What You Want)

/* Sweep

by BARRAGAN This example code is in the public domain.

modified 8 Nov 2013 by Scott Fitzgerald http://www.arduino.cc/en/Tutorial/Sweep */

#include 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(9); // attaches the servo on pin 9 to the servo object } void loop() { for(pos = 0; pos <= 180; pos += 1) // goes from 0 degrees to 180 degrees { // in steps of 1 degree myservo.write(pos); // tell servo to go to position in variable 'pos' delay(15); // waits 15ms for the servo to reach the position } for(pos = 180; pos>=0; pos-=1) // goes from 180 degrees to 0 degrees { myservo.write(pos); // tell servo to go to position in variable 'pos' delay(15); // waits 15ms for the servo to reach the position } }

Step 3: Step 3: Build Your Box

Picture of Step 3: Build Your Box

Cut 5 pieces of wood all the same size

Size should be determined by your servo

The box should be glued together. Not with nails or screws.

DO NOT GLUE BACK OF BOX ON YET!!!!!

Step 4: Step 4: Screwing

Picture of Step 4: Screwing

To allow easy access to your arduino, that will be shoved in your box. I did not glue the back of the box on. Instead I put 2 screws in. That allowed me to take the arduino out, or allow me to access it without breaking the glue or anything.

I also screwed two small screws into the servo to help hold the servo in place.

Step 5: Step 5: Front of Box (Optional)

Picture of Step 5: Front of Box (Optional)

This is not required, I just did it because it looks better. I measured the two gaps that I had in the front of the box and cut more wood to fit that length. After I got the wood cut, I glued it on.

Step 6: Step 6: Paint (Optional)

Picture of Step 6: Paint (Optional)

Paint the box how ever you want!

Comments

About This Instructable

295views

0favorites

License:

More by Scor728:Eazy Automatic Fish Feeder
Add instructable to: