Evaporation reduces the amount of water in an aquarium and if left uncompensated, will lead to changes in the chemistry of the remaining water. Such changes will have negative impacts on the lifeforms within the aquarium. Hence it is important to maintain the water at the appropriate level. This can be done manually, or by a system that does it automatically. In this project, we will be making such a system.
- Helps to maintain stable water chemistry such as pH and salinity.
- Once set up, human intervention is not needed unless maintenance is required.
- Saves time.
MATERIALS AND TOOLS:
Step 1: EVALUATE THE EVAPORTION RATE OF AQUARIUM
The aquarium evaporation rate is vital as it will be used when setting up the peristaltic pump.
a) Ensure that the water in the aquarium is at the correct level. Use a piece of clear tape to mark this point.
b) Let the aquarium sit for a few days without adding water to it. Once the change in the water level is noticeable, proceed to the next step.
c) Use the measuring cup to add water to the aquarium until it is brought back to the correct level (indicated by the mark made in step a). Record the amount of water that is added based on the gauge of the cup. This will be the total volume of water that has evaporated over the number of days in which the tank was left unattended.
d) Calculate the aquarium evaporation rate using the following formula:
Aquarium evaporation rate = (Total volume of water evaporated in milliliters) / (Number of days tank left unattended x 24 x 60) = Rate in milliliters per minute
24 -> number of hours in a day
60 -> number of minutes in an hour
Example: The test was conducted for 4 days where 4000mL of water was lost.
Aquarium evaporation rate = (4000) / (4 x 24 x 60) = 0.69 mL/min
Step 2: ASSEMBLE HARDWARE
Connect the pump to the Arduino as shown in the schematic above.
The pump has two power lines. The line that goes to the Arduino's 5V pin is for the circuitry attached to the pump while the external 12V supply is for the motor. Use the five-pin header to mount the data cable of the pump to the breadboard and jumper wires make the appropriate connections from the breadboard to the Arduino.
Since this is a stand-alone unit, it is recommended that the Arduino has its own power supply so that it will not rely on USB power from a computer.
DATASHEET: EZO PMP
Step 3: LOAD PROGRAM ONTO ARDUINO AND CALIBRATE PUMP
a) Download the sample code from this LINK. It will be in a folder titled "arduino_UNO_PMP_sample_code."
b) Connect the Arduino to your computer.
c) Open the code downloaded from step a, in your Arduino IDE. If you do not have the IDE, you can download it from HERE.
d) Compile and upload code to the Arduino UNO.
e) Open the serial monitor. For access go to Tools -> Serial Monitor or press Ctrl+Shift+M on your keyboard. Set the baud rate to 9600 and select "Carriage return". You should now be able to communicate with the pump. As a test, enter the command i which will return the device information.
f) Calibrating the pump is optional, but for improved accuracy, it should be done. Refer to the pump datasheet for instructions.
Step 4: COMPARE MAX POSSIBLE FLOW RATE OF PUMP WITH AQUARIUM EVAPORATION RATE
The pump has four modes of operation. These are continuous dispensing, volume dispensing, dose over time and constant flow rate. Refer to the pump datasheet for information on these modes. For this particular application, the constant flow rate mode is used. Its syntax is shown above. In the command, [ml/min] is the aquarium evaporation rate that was found in step 1.
Note: The maximum flow rate is determined after calibration. If the flow rate is too fast, the pump will produce an error message and will not rotate. Comparing the maximum possible flow rate with your aquarium evaporation rate would let you know if the system will work.
Use the command DC,? to get the maximum possible flow rate.
- If the max possible flow rate is greater than the tank evaporation rate, the system will work.
- If the max possible flow rate is less than the tank evaporation rate, try calibrating the pump at a different volume and re-comparing the rates.
Step 5: CONNECT PUMP TO AQUARIUM
- The input side of the pump goes into the water reservoir while the output goes into the aquarium as shown in the sketch above.
- It is recommended to have the purest water possible in the reservoir as this will reduce the influence on water chemistry within the aquarium.
Step 6: INSTRUCT PUMP TO DISPENSE AT THE APPROPRIATE RATE
After a successful comparison between the max possible flow rate and the aquarium evaporation rate, send the following command in the serial monitor DC, aquarium evaporation rate,*
In the example from step 1, we calculated the aquarium evaporation rate as 0.69mL/min, therefore the command would be DC,0.69,*
At this point, the computer can be disconnected. The pump will dispense at the specified rate continuously.
ONCE THE DISPENSE COMMAND IS ISSUED, WILL THE PUMP RUN FOREVER?
The pump will run continuously for 20 days after which it will reset. To restart the pump, resend the command DC, aquarium evaporation rate,*
WHAT HAPPENS IF THE POWER GETS INTERRUPTED?
As mentioned before the pump has two power supplies: 5V for the circuitry and 12V for the motor. If the 12V is disconnected the pump will output an under-voltage error and stop dispensing, but once reconnected it will continue to dispense. On the other hand, if the 5V line is disconnected, dispensing will not continue when reconnected. In this case, you will have to resend the command DC, aquarium evaporation rate,*