Dose on command

Do you have a question on how to do something.
Ask in here.
Post Reply
alexwbush
Posts: 327
Joined: Tue Mar 22, 2011 12:45 am
Location: San Diego, CA

Dose on command

Post by alexwbush »

I know the code for dosing throughout the day is:

Code: Select all

ReefAngel.DosingPumpRepeat1( Port1 );
or something like...

Code: Select all

ReefAngel.DosingPumpRepeat( Port1,30,360,10 );
Anyone have any ideas on how one could set one dose. It would be useful for getting your tank back in parameters. For example, I could do a one time dose of 30mL, which for me would be 90 seconds for me. I would love it if I could go to a screen and select dose. Then input how many mL. I would have it already programmed knowing it take my pumps 30 seconds to pump 10 mL.
alexwbush
Posts: 327
Joined: Tue Mar 22, 2011 12:45 am
Location: San Diego, CA

Re: Dose on command

Post by alexwbush »

I may have posted too soon... reading through this:
http://forum.reefangel.com/viewtopic.ph ... 2&start=20

If I find it, I will post it here for others
Piper
Posts: 304
Joined: Fri Jul 20, 2012 7:13 am
Location: Oakley, CA

Re: Dose on command

Post by Piper »

There are several ways to do this. I would think the most logical solution we be something along the lines of what Lee (lnevo) did with the phantom relays to trigger functions. Add code that will run your dosing pump for a set amount of time when you trigger the phantom relay from the portal or one of the apps.

~Charlie
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: Dose on command

Post by lnevo »

You don't need a phantom relay. I do it with my swabbie which i treat as a doser but i have it enabled to work for a set time in manual mode. Check what i do in RunSwabbie()

However i highly advise against it. Buttons can be hit too easily for my taste. Last thing i need is to accidentally hit the shot of alk button...

I would feel safer having a memory location trigger instead if you must have that functionality, or use a phantom port but require two for safety.
Piper
Posts: 304
Joined: Fri Jul 20, 2012 7:13 am
Location: Oakley, CA

Re: Dose on command

Post by Piper »

Good points, Lee. You can also put in a max run time for the port instead of or in addition to requiring two ports to be triggered.

~Charlie
Post Reply