Forum Software Ferduino code Pin explenation for float switches

Pin explenation for float switches  [SOLVED]


Post Number:#1 Post Fri Nov 06, 2015 7:20 am
Posts: 32
Topics: 13
Images: 3
Solve rating: 0
Joined: Wed Oct 01, 2014 3:53 pm
Topics: 13
Age: 38
Gender: None specified
National Flag:
Great Britain
Hello.

Is it possible to have an explanation of the pins for float switches.

Fernandos version

const int sensor1 = A0;        // Pino analógico que verifica se há tensão na bóia da quarentena.
const int sensor2 = A1;        // Pino analógico que verifica se há tensão na bóia inferior do sump.
const int sensor3 = A2;        // Pino analógico que verifica se há tensão na bóia superior do sump.
const int sensor4 = A3;        // Pino analógico que verifica se há tensão na bóia inferior do reservatório.
const int sensor5 = A4;        // Pino analógico que verifica o nível do reef.
const int sensor6 = A5;        // Pino analógico que verifica o nível do fish only.


redtop/willies version

const int sensor1 = A0;             // Analog pin that checks for voltage from the saltwater mixing tank float.....these 4 lines are for auto water change
const int sensor2 = A1;             // Analog pin that checks for voltage at the bottom of the sump float.     
const int sensor3 = A2;             // Analog pin that checks for voltage at the top of the sump float.         
const int sensor4 = A3;             // Analog pin that checks for voltage at the reservoir float.               
const int sensor5 = A4;             // Analog pin that checks the level of the reef tank sump......................these 2 lines for the ATO
const int sensor6 = A5;             // Analog pin that checks the level of the ATO reservoir.   


There seem to be duplications in comments,
here we have A0 reservoir
we have A3 reservoir
A5 ato reservoir??

It is all messy and makes no sense? And translation doesn't help.
A5 translates to "Analog pin that checks the level of fish only." 'fish only' does not fit into subject, so translating the comments does not make clear sense for me to fix this problem without asking.

I am not happy with the current commenting in the 7" version maintained by Redtop, the comments make no sense, and any changes have not been documented at all very well! Not good for opensource. X( All PCF pins are changed to digital pins already in use, with PFC=false, I don't think it really works without lots of messing, I only ever tested LCD in the past, now I wont test until PCB is made so I need to confirm everything.

I will be rewriting the 7" english code accordingly. It will be much easier if Fernando you could please explain what these pins are doing ^:)^

Fish only makes no sense here. And with redtops comment, that makes no sense either when using solenoid for topoff, but there is no mention of this anywhere..

I think correctly, it should say this:

const int sensor1 = A0;    // QUARANTINE WATER CHANGE, BOTTOM LEVEL TRIGGER (STOPS QUARANTINE PUMP-OUT)
const int sensor2 = A1;    // SUMP WATER CHANGE, BOTTOM LEVEL TRIGGER (STOPS SUMP PUMP-OUT)
const int sensor3 = A2;    // SUMP WATER CHANGE, TOP LEVEL TRIGGER (STOPS SUMP PUMP-IN)
const int sensor4 = A3;    // SALTWATER RESERVOIR LOW/EMPTY WARNING - (ALERT WHEN SALTWATER RESERVOIR GETTING LOW/EMPTY)
const int sensor5 = A4;    // ATO SUMP SENSOR TRIGGER - (THIS CHECKS EVAPORATION AND STOPS PUMP/SOLENOID AT CORRECT LEVEL)
const int sensor6 = A5;    // ATO RESERVOIR EMPTY/LOW WARNING TRIGGER (ONLY WHEN USING PUMP AND RO RESERVOIR)


Translated

const int sensor1 = A0;    // Quarentena, inferior gatilho (paradas quarentena bombeamento fora)
const int sensor2 = A1;    // carter, inferior gatilho (paradas sump bombeamento fora)
const int sensor3 = A2;    // carter, superior gatilho ( bomba pára sump dentro)
const int sensor4 = A3;    // água salgada gatilho baixo reservatório (alertar quando reservatório de água salgada baixo)
const int sensor5 = A4;    // ATO, carter evaporação gatilho  (tanto evaporação e limite top-off)
const int sensor6 = A5;    // Água RO gatilho baixo reservatório (somente quando usar a bomba e reservatório)



Can you please confirm these are correct.

Finally, we must use 5v for float switch to analog pins yes?

5v ------- float -------- arduino pin A#

Is this correct also?

Thank you :)

Jay

Post Number:#2 Post Fri Nov 06, 2015 11:58 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

In fact the comments should have some particularity of Willie's system.

My comments haven't anything related with ATO function.

All comments are related to my system and can be different from others users. Each user should adjust according to your system.

Maybe this schematic can explain better my system.

Image


Fish only = Tank without corals.

This comments are acceptable but, makes no sense in portuguese. :)
const int sensor1 = A0;    // QUARANTINE WATER CHANGE, BOTTOM LEVEL TRIGGER (STOPS QUARANTINE PUMP-OUT)
const int sensor2 = A1;    // SUMP WATER CHANGE, BOTTOM LEVEL TRIGGER (STOPS SUMP PUMP-OUT)
const int sensor3 = A2;    // SUMP WATER CHANGE, TOP LEVEL TRIGGER (STOPS SUMP PUMP-IN)
const int sensor4 = A3;    // SALTWATER RESERVOIR LOW/EMPTY WARNING - (ALERT WHEN SALTWATER RESERVOIR GETTING LOW/EMPTY)


For sensors 5 and 6 it should be better:

const int sensor5 = A4;    // REEF TANK TOP LEVEL - WARNING TRIGGER FOR WATER LEAK
const int sensor6 = A5;    // FISH ONLY TANK TOP LEVEL - WARNING TRIGGER FOR WATER LEAK


"sensor3" is used too for ATO function and the pump or solenoid to fill the sump is activated by "solenoide1Pin".

Regarding circuit, should be like this:

Image


Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.




Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 1 guest

cron