Go Down

Topic: Aquarium Controller with webserver ,SD data logging, web ctrl, PH, temp, &more! (Read 683 times) previous topic - next topic

quartapound

Here's my Aquarium Controller. It's a huge sketch, I've tried posting it in code tags but I'd have to break it up into like 10 posts because of the 9000 character limit per post on this forum.

It generates an HTML webpage to display information as well as input and control.
logging data to SD card and Sparkfun Data server every 10min
Arduino Mega 2560 R3
RTC D3231
W5100 Ethernet & SD
DS18B20 Temp sensor
4 channel relay board (only using 2 atm)
PH v1.1 Probe
LED ramping via 1-10v meanwell drivers and simple transistor cct.
auto fish feeder with manual override via relay board
LED fan control via relay board controlled by DS18B20 sensor
NTP time server sync (for time of day only, I set dates manually at the moment)

Everything works, although I'm sure there's more efficient ways to get things done, it's quite stable and functions well.  I've hacked this code together from many different sources.

I hope this helps someone!  lots of useful code attached

Here's a link to quickly view the code Github

ODwyerPW

Thank you for taking the time to post this code. I'll have a look at it...

Have you taken any video of your project in action?

Peter
Quiero una vida simple en Mexico...nada mas.

Go Up