Forum Members section DIY Ferduino controller PCF 8575

PCF 8575  [SOLVED]

Ask here about your controller made with pieces purchased in other shops.

Post Number:#1 Post Sat Jun 14, 2014 3:35 am
Posts: 15
Topics: 6
Solve rating: 0
Joined: Tue May 13, 2014 8:12 am
Topics: 6
Age: 50
Gender: None specified
National Flag:
Germany
Hello i hab Problem .
The Demo Code for pcf blink Works

My Problem is in the ferduino Code the Funktion Timer Not Works , i haf Controll LED plugget on ground pcf an pinn
P00 .

If plugget arduino on 5v -Controll LED ls ca 3 sec on an is the tft on is LED of .

LED Not on or Timer 1 on or Off .

Pinn's pcf A0 A1 A2 plugget on ground

Please help me

Post Number:#2 Post Sat Jun 14, 2014 12:03 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

Hi!

To use the PCF8575 with Ferduino you need change some lines on code.

Uncomment this line:

https://github.com/FernandoGarcia/Fedui ... ta.ino#L71

Change:

const byte temporizador1 = 80; // P0 // Pino que liga o timer 1.
const byte temporizador2 = 81; // P1 // Pino que liga o timer 2.
const byte temporizador3 = 82; // P2 // Pino que liga o timer 3.
const byte temporizador4 = 83; // P3 // Pino que liga o timer 4.
const byte temporizador5 = 84; // P4 // Pino que liga o timer 5.
const byte solenoide1Pin = 85; // P5 // Liga a reposicao de água doce.


To:

const byte temporizador1 = 0; // P0 // Pino que liga o timer 1.
const byte temporizador2 = 1; // P1 // Pino que liga o timer 2.
const byte temporizador3 = 2; // P2 // Pino que liga o timer 3.
const byte temporizador4 = 3; // P3 // Pino que liga o timer 4.
const byte temporizador5 = 4; // P4 // Pino que liga o timer 5.
const byte solenoide1Pin = 5; // P5 // Liga a reposicao de água doce.


Uncomment this lines:

https://github.com/FernandoGarcia/Fedui ... a.ino#L843


Add:

PCF8575 PCF8575;


After:

byte endereco_PCF8575TS = 0x20; // Endereço em hexadecimal = 0x20


Change:

boolean PCF8575TS_S = false;


to:

boolean PCF8575TS_S = true;


Comment this lines:

https://github.com/FernandoGarcia/Fedui ... up.ino#L49

Uncomment this lines:

https://github.com/FernandoGarcia/Fedui ... up.ino#L73

Change all "digitalWrite" to"PCF8575.digitalWrite" on this tab.

https://github.com/FernandoGarcia/Fedui ... adores.ino

Change all "digitalWrite" to"PCF8575.digitalWrite" on this function:

https://github.com/FernandoGarcia/Fedui ... s.ino#L220

Best regards.
Last edited by Fernando Garcia on Sun Aug 31, 2014 2:28 pm, edited 1 time in total.
Reason: Added more changes.
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 Mon Jun 16, 2014 7:50 am
Posts: 15
Topics: 6
Solve rating: 0
Joined: Tue May 13, 2014 8:12 am
Topics: 6
Age: 50
Gender: None specified
National Flag:
Germany
Hello, Fernando, many thanks, is.
absolutely super.

thank you thank you thank you :ymhug:




Return to DIY Ferduino controller





Who is online

Users viewing this topic: No registered users and 2 guests

cron