I have updated all documents. The code on page 1 is the latest code I have and pin mappings match the pins in the diagrams (
iAqua.zip). I haven't written the CO2 PSI sensor feature yet, but I know what I'm going to do with it. The Fritzing documents are up to date (
iAqua.fzz), including the breadboard and schematic — but not the circuit board design, I'm not doing that. I also updated the pic of the breadboard wiring on page 3 of this thread.
EDIT: I have to edit the schematics because I realized I don't need a voltage regulator, and it won't even work right since the Mega needs more voltage.
I have not included the wiring of the screen in the documents, other than the backlight pin. It's unnecessary if you get the ElecFreaks TFT shield for less than $10. If you don't use that shield (or one like it) you'd have to make a crazy number of solder joints by the time you get all of the resistors and such in place, not to mention the rats nest of wires. If you are brave enough to try it, there's a diagram for you on page 3, post 32. Also, it's up to you if you want to modify the ElecFreaks TFT shield like I did to move the touch pins. If you do all of the info is on page 5, post 73. If you don't you'll need to change the pins in the code.
I hope to start final mounting and assembly in the next few days. I also have to code the PSI sensor. Here are my plans for how to make use of it:
- button to set low PSI (when CO2 is off)
- button to set high PSI (when CO2 is on)
- feature to alert if PSI falls below high PSI when CO2 should be on
- feature to dim lights and cut dosing if CO2 PSI drops below 1/2 way between high and low settings (running empty or a leak)
- feature to power off CO2 solenoid if threshold drops below 1/2 way between high and low settings to prevent loosing CO2 if it's a leak
The last 2 would be great features for if I'm out of town. If there is no CO2, I want low light with no ferts. The last thing I want to have is high light and tons of ferts with no CO2 for several days.
The prototype board, the display shield, the power supply board with the motor MOSFETs, and everything else is wired the same as my diagrams below. I'm not going to diagram out the exact placements of my components, because that would vary a lot depending on what prototype board you got. I can post more/better pictures of those boards if anybody needs or wants them.
Here is the current breadboard diagram:
I've never built a schematic before, so I'm sure there will be some head scratching at my methodology, but oh well. Here is the current wiring schematic: