Update on Big Project: Buying some bigger motors for making full-scale fish feeders(See Below), and probably ordering LEDs/the PH and Nitrogen Sensors/Solar Panels by next week.
So, I cleaned up the gravel for the 30 gallon water part, and in the end had to buy a timer outlet instead of making one with a relay due to electrical fire concerns for the water pump. It can pump over 100 gallons of water an hour, more than enough for a small 30 gallon model. I plan to finish it by the end of this week, and begin the biofilter and developing a bigger model, which I am looking for at the local rubbermaid trashcan store. (They can be bought at around 100-300 dollars). I was working on a previous Servo fish feeder design(a fish food bottle with a hole at the bottom and a servo connected to a cover that occassionally rotated, allowing a hole in the cover to match with the hole at the bottom of the can and stuff come out) , whose code I will show here. However, I had a few problems with spreading food throughout the model and controlling the servo. So I decided to use a method similar to deer feeders, with a rotating plate using the centrifugal force to send the food pellets around the pool. Probably, I will be working on this for the rest of today and tommorrow and will try to have pictures and code uploaded with the completed product.
(Below is the old code that did not work this is in Arduino)
#include <Servo.h>
Servo myservo;
void setup()
{
myservo.attach(9);
myservo.write(0);
delay(500);
Serial.begin(9600);
while (! Serial);
Serial.println("TIME");
}
/*************************************************/
void loop()
{
if (Serial.available())
{ int time = Serial.parseInt();
if (time >=1000)
{
myservo.write(90);//goes to 15 degrees
delay(time);//wait for a second
myservo.write(0);//back to 0 degrees
delay(time);//wait for a second
}
}
}
/**************************************************/