I am building a daughter-board type single sided PCB for all components.
When I come to decide which connectors and their position, PCF8575 is very confusing.
When I am using PCF8575, I de-comment line like so..
#define USE_PCF8575 // Descomente essa linha para usar um PCF8575
so now it is correct that anything between #ifdef USE_PCF8575 and #endif will be correct for wiring?
So this applies, and is easy to understand when it comes to making PCB..
Code: Select all
// Do not change this part if you have not a PCF8575 installed.
// Não altere esta parte se você não tem um PCF8575 instalado.
#ifdef USE_PCF8575 // Do not change this line!
const byte ozonizadorPin = 0; // P0 // Pino que liga o ozonizador
const byte reatorPin = 1; // P1 // Pino que liga o CO2 do reator.
const byte bomba1Pin = 2; // P2 // Bomba que tira água da quarentena.
const byte bomba2Pin = 3; // P3 // Bomba que tira água do sump.
const byte bomba3Pin = 4; // P4 // Bomba que coloca água no sump.
const byte temporizador1 = 5; // P5 // Pino que liga o timer 1.
const byte temporizador2 = 6; // P6 // Pino que liga o timer 2.
const byte temporizador3 = 7; // P7 // Pino que liga o timer 3.
const byte temporizador4 = 8; // P8 // Pino que liga o timer 4.
const byte temporizador5 = 9; // P9 // Pino que liga o timer 5.
const byte solenoide1Pin = 10; // P10 // Liga a reposicao de água doce.
const byte alimentadorPin = 11; // P11 // Pino que controla o alimentador automático.
const byte skimmerPin = 12; // P12 // Pino que controla o skimmer
#endif // Do not change this line!
So, where are pins 54-69 and 80-87?
I am very confused, do you have some diagram of wiring for all of these accessories?
I am trying to reverse the code to understand so I dont bother you, but it is very frustrating with comments like above where it says
"// Do not change this part if you have not a PCF8575 installed."
I think this should read "do not change if you DO have PCF8575 installed", as it clearly defines the pins P0-P12 and would make more sense.
So I have no idea where other pins are, what am I missing, is this the RFM module?
I am mostly interested in this
Code: Select all
const byte sensor1 = 54; // A0; // Pino analógico que verifica se há tensão na bóia da quarentena.
const byte sensor2 = 55; // A1; // Pino analógico que verifica se há tensão na bóia inferior do sump.
const byte sensor3 = 56; // A2; // Pino analógico que verifica se há tensão na bóia superior do sump.
const byte sensor4 = 57; // A3; // Pino analógico que verifica se há tensão na bóia inferior do reservatório.
const byte sensor5 = 58; // A4; // Pino analógico que verifica o nível do reef.
const byte sensor6 = 59; // A5; // Pino analógico que verifica o nível do fish only.
I just need to understand pins 54-69 and 80-87 I believe...

And finally to clear up, 58 reef and 59 fish only, make no sense? Willies code says:
58 automatic top off float
59 automatic top off reservoir float
I am sure asked many times but why is the comment saying and translating to fish only/reef, these are not making much sense at all when translating and trying to work this out without asking questions..
I dont want to pester you..
Thank you for any help
Jay.
-------------------------------- Last edited Sat Oct 29, 2016 1:26 pm --------------------------------
I have noticed also that pins P0 - P12 have pins not present on PCF8575, as PCF only has pins p00-07 and p10-17
So I am unsure how to wire it..
Code: Select all
const byte temporizador4 = 8; // P8 // Pino que liga o timer 4.
const byte temporizador5 = 9; // P9 // Pino que liga o timer 5.
these are not present on PCF8575 silkscreen..
Here is what I have got so far, from the sparkfun PCF8575, I know it is discontinued, but plenty of sources in china..
So I have here pins p0 to p7 correct I believe?