ronc98
New member
Here is my final DIY controller, I have been working on this for about 8 months and I have gotten to a point to where I am ready to share this with everyone. Those of you that have been wanting to make your own controller to tweak it for your tank this is it.
The plan for this is to be an open source/ schematic project so I can get some more programmers to hammer out some code. At this point it is 99 percent done for my tank however there are some wish list things that would be cool to add to it. Anyone interested playing around with this let me know.
Here is a description along with schematics.
The unit is 68hc11F1 based with a Real Time clock and 32K of NV ram and 64 of PROM. PC communication is standard RS-422 multidrop(small converter hangs of the PC RS-232 port)
Firmware is written in C.
There are four connectors that supply 7 open collector outputs for use with relays or outlet strips. I have also made an outlet strip that is optocoupled with high current triacs for outlet switching. You can really design your own strip depending upon what you need. These outlet strips are hardwires however then can be remote to about 20 feet as long as you can run a wire similiar to CAT-5.
There is one connector that supplies four level switches(contact closures) as well as 4 open collector outputs.
Two RTD temp probes.
two 12-bit DA(0-5V) outputs.
Four BNC probe inputs that can be configured for PH/ORP/ect. All these circuits are similar and can use the same types of circuits with different components. All of these connect to the HC11 via a 12 bit ADC.
Current firmware
There is calibration and temp compensation for three PH probes and a direct reading of ORP. There is not much need for ORP calibration since it is a direct MV reading. I have not played with any other probes however I doube it will be too hard. Each of these probes can be software routed to control an AC output for controlling purposes
There is Calibration routines for both Temp probes and PH/OPR Probes.
All outputs are programmed via Time on and Time off. These are also linked to one of the Temp probes so you can turn on heaters, fans and then start turning off lights when certain temp thresholds are reached. Again this is really user defined and the user can modify the firmware himself to meet these needs.
There is an input level switch and outlet used to does and mix a Kalk reactor. Mixing interval and duration can be programmed. Will not dose to the tank unless mixing has been off for 15 minutes.
Eight random\period AC outputs used for wave making and pump control.
All of this can run standalone however I also wrote a Host program that connects to the controller and monitors all the probes/temps/outputs and inputs. These can all be saved to a ASCII file and graphed. All of the time and setpoints can be viewed and modified via the PC. Since the controller is RS-422 it can communicate with multiple controllers with the same program. The cool thing about this is you can VPN to your computer to monitor while away. This saved me a few times.
In the works:
phase moon controller.
Intensity control for lighting.
Dosing pump control.
[/IMG] Main controller schematic
[/IMG] Main controller PCB
[/IMG] Outlet schematic
[/IMG] Outlet PCB
[/IMG] Bottom view of finished controller
[/IMG] Rear View of finished controller
The plan for this is to be an open source/ schematic project so I can get some more programmers to hammer out some code. At this point it is 99 percent done for my tank however there are some wish list things that would be cool to add to it. Anyone interested playing around with this let me know.
Here is a description along with schematics.
The unit is 68hc11F1 based with a Real Time clock and 32K of NV ram and 64 of PROM. PC communication is standard RS-422 multidrop(small converter hangs of the PC RS-232 port)
Firmware is written in C.
There are four connectors that supply 7 open collector outputs for use with relays or outlet strips. I have also made an outlet strip that is optocoupled with high current triacs for outlet switching. You can really design your own strip depending upon what you need. These outlet strips are hardwires however then can be remote to about 20 feet as long as you can run a wire similiar to CAT-5.
There is one connector that supplies four level switches(contact closures) as well as 4 open collector outputs.
Two RTD temp probes.
two 12-bit DA(0-5V) outputs.
Four BNC probe inputs that can be configured for PH/ORP/ect. All these circuits are similar and can use the same types of circuits with different components. All of these connect to the HC11 via a 12 bit ADC.
Current firmware
There is calibration and temp compensation for three PH probes and a direct reading of ORP. There is not much need for ORP calibration since it is a direct MV reading. I have not played with any other probes however I doube it will be too hard. Each of these probes can be software routed to control an AC output for controlling purposes
There is Calibration routines for both Temp probes and PH/OPR Probes.
All outputs are programmed via Time on and Time off. These are also linked to one of the Temp probes so you can turn on heaters, fans and then start turning off lights when certain temp thresholds are reached. Again this is really user defined and the user can modify the firmware himself to meet these needs.
There is an input level switch and outlet used to does and mix a Kalk reactor. Mixing interval and duration can be programmed. Will not dose to the tank unless mixing has been off for 15 minutes.
Eight random\period AC outputs used for wave making and pump control.
All of this can run standalone however I also wrote a Host program that connects to the controller and monitors all the probes/temps/outputs and inputs. These can all be saved to a ASCII file and graphed. All of the time and setpoints can be viewed and modified via the PC. Since the controller is RS-422 it can communicate with multiple controllers with the same program. The cool thing about this is you can VPN to your computer to monitor while away. This saved me a few times.
In the works:
phase moon controller.
Intensity control for lighting.
Dosing pump control.





