Forum Software Ferduino code ATO and Pwc for Freshwater ?

ATO and Pwc for Freshwater ?


Post Number:#1 Post Sun Jun 23, 2019 4:14 pm
Posts: 15
Topics: 2
Solve rating: 0
Joined: Sun Mar 24, 2019 10:46 am
Topics: 2
Age: 42
Gender: None specified
National Flag:
Portugal
Hi

I am almost ready to mount my ferduino in my aquarium most functions i want i have been able to sort out ( with help from Fernando)

My last step is making me very confused.

I want to to ATO and PWC from the same reservoir using the same pumps. Seeing i have a freshwater tank this is enough for me.

Can anybody suggest how this can be done?

Thank You
Marco

Post Number:#2 Post Sun Jun 23, 2019 5:28 pm
Posts: 1578
Topics: 38
Images: 271
Solve rating: 213
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 34
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

You should edit this part to make the sequence in PWC according to your setup.

The function for ATO is here.

Best regards.
Please do not PM me for support unless it is absolutely necessary.

I'll not write custom function to nobody unless you can pay for my job.

Post Number:#3 Post Wed Jun 26, 2019 2:57 pm
Posts: 15
Topics: 2
Solve rating: 0
Joined: Sun Mar 24, 2019 10:46 am
Topics: 2
Age: 42
Gender: None specified
National Flag:
Portugal
Can´t get it to work ;(

do i have to activate PWC anywhere on the code ?

Post Number:#4 Post Wed Jun 26, 2019 3:25 pm
Posts: 1578
Topics: 38
Images: 271
Solve rating: 213
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 34
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

The function is activated only via menu.

It won't work for you unless your setup is exactly like this:

Image


I have explained this functions many times on forum, Take a look at:

viewtopic.php?f=8&t=308

viewtopic.php?f=8&t=73

If you did your custom function let me see your code.

Also you can add this debug messages on loop after LOGLN(FreeStack()); to see the status of each sensor and pump.

       LOG(F("Sensor 1: "));
       LOGLN(myAnalogRead(A0));
       LOG(F("Sensor 2: ");
       LOGLN(myAnalogRead(A1));
       LOG(F("Sensor 3: "));
       LOGLN(myAnalogRead(A2));
       LOG(F("Sensor 4: "));
       LOGLN(myAnalogRead(A3));
       LOG(F("Sensor 5: "));
       LOGLN(myAnalogRead(A4));
       LOG(F("Sensor 6: "));
       LOGLN(myAnalogRead(A5));
       LOG(F("marcadoriniciotpa: "));
       LOGLN(marcadoriniciotpa);
       LOG(F("shiftedmillis: "));
       LOGLN(shiftedmillis);
       LOG(F("Duration for stage: "));
       LOG(tempo/60000);
       LOGLN(F(" minutes"));

       if (PCF8575.digitalRead(bomba1Pin)==HIGH)
       {
       LOGLN(F("Pump 1: ON"));
       }
       else
       {
       LOGLN(F("Pump 1: OFF"));
       }
       if (PCF8575.digitalRead(bomba2Pin)==HIGH)
       {
       LOGLN(F("Pump 2: ON"));
       }
       else
       {
       LOGLN(F("Pump 2: OFF"));
       }
       if (PCF8575.digitalRead(bomba3Pin)==HIGH)
       {
       LOGLN(F("Pump 3: ON"));
       }
       else
       {
       LOGLN(F("Pump 3: OFF"));
       }


Best regards.
Please do not PM me for support unless it is absolutely necessary.

I'll not write custom function to nobody unless you can pay for my job.




Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 1 guest