Forum Software Ferduino code PCF8575 Sparkfun

PCF8575 Sparkfun


Post Number:#1 Post Thu Jan 12, 2017 2:46 pm
Posts: 31
Topics: 9
Solve rating: 0
Joined: Tue Jan 10, 2017 2:19 pm
Topics: 9
Age: 41
Gender: None specified
National Flag:
Brazil
I need to do this changes on the code like explainded on this topic to make pcf8575 work ok?

PCF8575 problem code

PCF 8575

but the links of GitHub didn´t open.


i´m on the right way?
Last edited by Fernando Garcia on Thu Jan 12, 2017 3:17 pm, edited 1 time in total.
Reason: DO NOT use all letters in uppercase unless it's an abbreviation!

Post Number:#2 Post Thu Jan 12, 2017 3:24 pm
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

Last time: DO NOT use all letters in uppercase unless it's an abbreviation!

In latest version this changes are not needed.

Only uncomment this line:

#define USE_PCF8575


Then connect the relays according to this definition:

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


Before you SHOULD test the circuit using the code for test available on forum.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#3 Post Fri Jan 13, 2017 1:55 am
Posts: 31
Topics: 9
Solve rating: 0
Joined: Tue Jan 10, 2017 2:19 pm
Topics: 9
Age: 41
Gender: None specified
National Flag:
Brazil
Last time: DO NOT use all letters in uppercase unless it's an abbreviation!


my english is not so good, i dont´t understand very well, Not to use Uppercase in the title of the fórum?
I just use because is the name of the componente PCF8575
I should have use pcf8575??

-------------------------------- Last edited Fri Jan 13, 2017 2:59 am --------------------------------

i tested.. its ok.. shows.. i´m live on serial monitor
make the change of the code using the the new conection pins

error msg
Ferduino_Portuguese:115: error: redefinition of 'const byte ozonizadorPin'
Ferduino_Portuguese:93: error: 'const byte ozonizadorPin' previously defined here
Ferduino_Portuguese:116: error: redefinition of 'const byte reatorPin'
Ferduino_Portuguese:94: error: 'const byte reatorPin' previously defined here
Ferduino_Portuguese:117: error: conflicting declaration 'const byte bomba1Pin'
Ferduino_Portuguese:104: error: 'bomba1Pin' has a previous declaration as 'const int bomba1Pin'
Ferduino_Portuguese:118: error: conflicting declaration 'const byte bomba2Pin'
Ferduino_Portuguese:105: error: 'bomba2Pin' has a previous declaration as 'const int bomba2Pin'
Ferduino_Portuguese:119: error: conflicting declaration 'const byte bomba3Pin'
Ferduino_Portuguese:106: error: 'bomba3Pin' has a previous declaration as 'const int bomba3Pin'


i´m not using ferduino web control code... i tryed.. but hava a lot of erros msg, so i,m using the old one


the new code did not work
all pins still powered

Post Number:#4 Post Fri Jan 13, 2017 9:20 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 this topic the title was: PCF8575 SPARKFUN.

In other topic the title was: : DISABLE FAN PIN ALWAYS ON

Use all letters in uppercase only if it's an abbreviation

Use latest version of Ferduino code, download the IDE 1.6.10 and follow this tutorial: viewtopic.php?f=8&t=34

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

Post Number:#5 Post Fri Jan 13, 2017 12:22 pm
Posts: 31
Topics: 9
Solve rating: 0
Joined: Tue Jan 10, 2017 2:19 pm
Topics: 9
Age: 41
Gender: None specified
National Flag:
Brazil

Post Number:#6 Post Tue Jan 17, 2017 7:35 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!

Don't forget that to use a PCF8575 is needed connect the RTC on pins 18 and 19.

You should move pins from 20 and 21 to 18 and 19 then make a bridge like this.

Image



Also uncomment this line:

#define USE_PINS_18_AND_19_FOR_RTC


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