Forum Software Ferduino code Guide for using PCF8575 with Ferduino

Guide for using PCF8575 with Ferduino  [SOLVED]


Post Number:#1 Post Sat Oct 28, 2017 9:42 pm
Posts: 50
Topics: 13
Solve rating: 0
Joined: Wed Sep 06, 2017 7:45 pm
Topics: 13
Age: 40
Gender: None specified
National Flag:
Italy
Hi guys,

reading a ton of posts here on the forum I found out one that could be useful for me. But all the links to github are not working and I'm not able to understand which lines has to be commented or modified. Furthermore I'm not sure it is up to date with respect to present version of Ferduino.
The thread is this one:

viewtopic.php?f=24&t=71

Can somebody help?

thank you.

Post Number:#2 Post Sun Oct 29, 2017 9: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!

Actually you should only uncomment this line:

#define USE_PCF8575


Then look for this pinout to connect your relay board correctly.

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 reposição 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


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:#3 Post Sun Oct 29, 2017 4:33 pm
Posts: 50
Topics: 13
Solve rating: 0
Joined: Wed Sep 06, 2017 7:45 pm
Topics: 13
Age: 40
Gender: None specified
National Flag:
Italy
Exactly what I did and it works very well.

Thank you!




Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 1 guest

cron