d0ughb0y
Active member
I've been adding doser code this week and will test this weekend. arduino side of code is probably 80% complete. Nothing in index.htm yet. I ordered a project box for my dosers but the delivery got delayed, so I'll have to test using temporary connections this weekend.
I kept the design simple.
for each pump, you define the following in config
name, ml per day, times per day, interval between dose, start time of cycle.
in the code, I keep track of ml dosed since last reset that is saved between arduino reboot.
all volumes are in ml, and times are in minutes.
interval =0 means auto. if times per day is 4, then interval is 6 hours (360 minutes).
or interval can be manually set, say 60 minutes. So with 4 times a day and start time of 8pm, it will dose at 8,9,10,11 pm.
I think that is simple enough to program dosing or even water change.
I have to test if it is really feasible to use the doser for water change, as the volume may not be enough for a large tank, plus the pumps may not be able to handle the long duty cycle.
calibration method will be
set a volume value, say 5ml (your typical API test tube).
click start to start dosing, click stop right before it gets to 5ml mark.
Then click on + until it reaches 5ml mark. The program will internally keep track of total number of ticks to get to 5ml. Then you can run a test for 5ml and doser will be turned on for that number of ticks. Repeat until you get the right volume. The calibration value for the doser is then saved.
calibrate using the same liquid that you are going to dose, with the same hose setup, as the hose type, placement, height, etc may affect the dosing rate.
I don't know what will be in web page yet. Maybe showing the ml dosed since last reset, the config values, enable/disable the doser, and a way to manually dose (say for catch up).
I kept the design simple.
for each pump, you define the following in config
name, ml per day, times per day, interval between dose, start time of cycle.
in the code, I keep track of ml dosed since last reset that is saved between arduino reboot.
all volumes are in ml, and times are in minutes.
interval =0 means auto. if times per day is 4, then interval is 6 hours (360 minutes).
or interval can be manually set, say 60 minutes. So with 4 times a day and start time of 8pm, it will dose at 8,9,10,11 pm.
I think that is simple enough to program dosing or even water change.
I have to test if it is really feasible to use the doser for water change, as the volume may not be enough for a large tank, plus the pumps may not be able to handle the long duty cycle.
calibration method will be
set a volume value, say 5ml (your typical API test tube).
click start to start dosing, click stop right before it gets to 5ml mark.
Then click on + until it reaches 5ml mark. The program will internally keep track of total number of ticks to get to 5ml. Then you can run a test for 5ml and doser will be turned on for that number of ticks. Repeat until you get the right volume. The calibration value for the doser is then saved.
calibrate using the same liquid that you are going to dose, with the same hose setup, as the hose type, placement, height, etc may affect the dosing rate.
I don't know what will be in web page yet. Maybe showing the ml dosed since last reset, the config values, enable/disable the doser, and a way to manually dose (say for catch up).