Logic for 3 Dosing Pumps

Request new hardware or ideas for the controller
Post Reply
carlii
Posts: 91
Joined: Sat Mar 17, 2012 7:22 pm

Logic for 3 Dosing Pumps

Post by carlii »

I would love for the portal to have logic for wireless control of a third dosing pump. I though that two pumps were enough but I find myself dosing mg now. So I have three dosing pumps. The portal make adjusting my dosing schedule much easier.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Logic for 3 Dosing Pumps

Post by lnevo »

+1' but then I'm going to need another dosing pump :(
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Logic for 3 Dosing Pumps

Post by rimai »

It's done :)
https://github.com/reefangel/Libraries/issues/74
I'll need to update the Portal when the libs get released.
Roberto.
Piper
Posts: 296
Joined: Fri Jul 20, 2012 7:13 am
Location: Oakley, CA

Re: Logic for 3 Dosing Pumps

Post by Piper »

Outstanding! I copy/pasted the dosing pump code from the ReefAngel lib and used my own memory locs for my 3rd pump. I'll switch over to this next time I update the libs. It will be a nice to control it from the Portal (when that part is done) instead of using the Android app and trying to remember what memory locations I used :)

~Charlie
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: Logic for 3 Dosing Pumps

Post by ahmedess »

I would like to add a third and fourth dosing pump, one for dosing Mg and the other for vinegar. I ll be using the dosingpumprepeat function.

Do I just add these lines in the reefangel.cpp file:

Code: Select all

void ReefAngelClass::DosingPumpRepeat3(byte Relay)
{
	// 0 minute offset
	DosingPumpRepeat(Relay, 0,
					InternalMemory.DP3RepeatInterval_read(),
					InternalMemory.DP3Timer_read());
}

void ReefAngelClass::DosingPumpRepeat4(byte Relay)
{
	// 0 minute offset
	DosingPumpRepeat(Relay, 0,
					InternalMemory.DP4RepeatInterval_read(),
					InternalMemory.DP4Timer_read());
}

and add these in internal memory:

InternalMemory.DP3RepeatInterval
InternalMemory.DP3Timer
InternalMemory.DP4RepeatInterval
InternalMemory.DP4Timer

is that correct?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Logic for 3 Dosing Pumps

Post by rimai »

Just be aware that DosingPumpRepeat3() has already been added to the dev branch and is scheduled to be released on next update.
https://github.com/reefangel/Libraries/issues/74
Roberto.
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: Logic for 3 Dosing Pumps

Post by ahmedess »

whens it goin to be released?
Post Reply