Newbie question: Reef Tank Controller?
#1
Posted 28 April 2011 - 06:53 PM
#2
Posted 28 April 2011 - 07:31 PM
../
My questions:
1) Is this something that the Netduino would be well suited for?
2) Is this something I can assemble on my own, without a pre-existing intimate knowledge of electronics? This seems to be more of an electrician's job with some logic turning the switches on and off.
Thank you, in advance, for reading this and your consideration in answering.
Welcome to the community Johnny! There is no reason you can't do this. I'm not terribly good with electronics, but I've managed to design a circuit to read data in via TTL serial, twiddle and LED or two, and toggle some relays.
For your sensors, you will need to verify the voltage levels they output. Unless you buy super spendy sensors, your sensors are going to output an analog voltage. You will want to make sure you either a) get sensors who's range is 0-3.3v (easiest method), or use a voltage divider to get the analog signal into the 0-3.3v range. Anything outside of that, and you will burn up an analog pin on the Netduino.
For driving a relay, this circuit on the Arduino site will work. The safe way to design this is have the relay switch on and off the hot wire (black in the US). I would use a power receptical like this one that way the end-device isn't hardwired in. And then use a power entry module like this to get power into your system.
Provided the total load doesn't exceed 10-15 amps (which I doubt it would given what your driving) you can have one power entry module feeding multiple power outlets. This is how I wired up the add-on relay board for my CNC machine.
Getting started with all this stuff, I would buy everything under the "Prototyping" header of the getting started article. Get a pack of NPN transistors and a pack of resistors (suppliers linked to in the article). Everything in the prototyping section I personally have purchased, except for the male-to-female jumper wire pack and can vouch for how much easier the jumper wire makes things.
For a display, you can either use a HD44780 compatible display, it will cost you 6-7 pins on your Netduino though (the HD44780 can be run in 4 bit or 8 bit mode, the big difference being in 8 bit mode you need 4 more microcontroller pins, I run mine in 4 bit mode). Or you can also use a serial LCD. This one only requires 1 pin from the Netduino, but its $10 more expensive.
For the web server portion, search the forums. One of the regular contributors has posted working webserver code.
Any other questions, just ask in the appropriate forum, everyone here is very friendly and always willing to help!
-dan
#3
Posted 29 April 2011 - 06:02 AM
I am just curious: what pH sensor are you going to use?Sensors: PH meter
#4
Posted 29 April 2011 - 01:23 PM
#5
Posted 30 April 2011 - 04:36 PM
#6
Posted 30 April 2011 - 11:40 PM
My reef setup, though small, is very technical. I have a main display tank and two refugiums. Each on their own light cycle. Techincally, I have more refugium space than display tank space. The refugiums have plants that grow and waste oxygen in the water while the lights are on. with a creative light cycle, I have a light on in the system somewhere, at all times. This helps even out any PH swings and saves my rare and precious corals from stressing. This system is set up so a lazy person (me) can enjoy it without all the headaches of a reef system.
WOW! Any chance of seeing some photos?
#7
Posted 01 May 2011 - 06:49 PM
I'm actually building the exact same thing as you're looking to do. I'm only a wee bit further into it than you are.
I've just recently got my code to a point where things are actually compiling. I setup my system to handle "Plugins" for the controller. So once I get the main control working solid, I can toss extra assemblies onto the SD card, and add features quasi-dynamically.
Currently I've got a temp sensor input plugin, and a logfile output plugin.
As for the pH, I've been banging my head for the best way to do it. This looks pretty good
Anyway, any luck I have I'll mention here, and if you want to see how mine's going, check the sig.
Cheers
#8
Posted 02 May 2011 - 08:12 AM
Well, I don't have anything specific to recommend - the pH meter I am working on is supposed to be a part of a swimming pool data logger, for me the most tedious task is to select a suitable pH probe. Initially, I was thinking about an ISFET probe, but I could not find any for reasonable price here - industrial probes are way too expensive, as is an ISFET pH meter, which I could eventually take apart; and it still requires a reference electrode. So, I am going to get the cheapest pH meter with a (replaceable) combination glass electrode. But in my case, there is no life depending on it ;- )CW2, I'm not sure which PH sensor I'll use yet. I'll be looking into that shortly. Do you have any recommendations?
For the electric part - pH meter is basically a millivoltmeter - I will probably use circuit similar to phduino, or any of the referenced projects. My priority is to have an op-amp with minimum external components (i.e. I might 'cheat' with two batteries to avoid voltage inverter etc.). For automatic temperature compensation I am going to use DS18B20 1-Wire digital thermometer - it is not cheapest, but it is precise (factory calibrated) and easy to work with, and is also suitable for immersion (unless I am missing something, most cheap pH meters I've seen have ATC wrong - they use environment temperature, but to compensate for the pH probe temperature error, the temperature of the probe tip has to be known).
#9
Posted 02 May 2011 - 11:11 AM
I forgot to mention that I probably would not need to include ATC in the final project, as the meter is intended to operate in range 7 ±1 pH (slightly alkaline water, 7.4 - 7.6 pH) and there is virtually no temperature error around 7 pH (an isothermal intersection for an ideal electrode). But I will have the water temperature anyway and I am really curious about ATC significance, so I'll do some experiments for the sake of educationFor automatic temperature compensation...
#10
Posted 14 May 2011 - 05:06 AM
#11
Posted 23 September 2013 - 10:40 AM
Johnny- Any chance you finished this project off? I'm looking to do something similar. I could get an Apex like what DanW suggests, but I'd like to have a little fun with this.
A minimum, I'd like to have probes to monitor:
> temp
> ph
But a stretch goal would be to monitor:
> ammonia
> nitrates
> float switch to monitor water level
> ability to control the power on my lights (also a DIY setup)
Curious what probes you got or where you got them...
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users