Forum Members section DIY Ferduino controller Timers don't work

Timers don't work  [SOLVED]

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

Post Number:#1 Post Sun Aug 17, 2014 6:32 am
Len Nederlof Random avatar
Hello,

The timers connected on the PCF 8575 Don't work.I can switch them on or off on the ferduino but the output of the PCF8575 stays high.
I tried to use the instruction on this topic but then my clock and date get strange (time 27:85:85).

Len

Post Number:#2 Post Sun Aug 17, 2014 9:24 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!

Try change the pins of the RTC as I told here.

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 Mon Aug 18, 2014 1:24 pm
Len Nederlof Random avatar
Hi,

Maybe a stupid question, but how do i change the pins Because my RTC is on the tft shield.Just rewire pin 20/21 of the tft shield to 18/19?
And thats all of do i have to change something in the sketch after that.
Len

Post Number:#4 Post Mon Aug 18, 2014 1:37 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!

Move the pins 20 and 21 to 18 and 19.

Make a bypass like this:

Image



Change on code:

DS1307 rtc(20, 21);


to:

DS1307 rtc(18, 19);


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 Tue Aug 19, 2014 5:04 pm
Len Nederlof Random avatar
Hi.
Clock is working pin 20/21 from the tft shield are not connected anymore .On the topside i made the bypass to pins 18/19.
But still the output of the PCF8575 stays high when timer actived or deactived.I changed the code to use the PCF8575, but i think i do something wrong.
Len

Post Number:#6 Post Tue Aug 19, 2014 5:21 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!

Try use the code availabe here to test your PCF8575.

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:#7 Post Tue Aug 19, 2014 6:31 pm
Len Nederlof Random avatar
Hi ,

i tried that in the serial monitor theres only a $ and the led on the pcf8575 board glows a bit nothing more.
Len

Post Number:#8 Post Tue Aug 19, 2014 6:59 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

Change the baud on serial monitor to 38400 and
delay(100);
to
delay(2000);
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#9 Post Wed Aug 20, 2014 4:31 pm
Len Nederlof Random avatar
Hi,

when loaded the test code the relais switch on and off so that is working fine.
But when the complete code loaded i can switch them on or off in the screenn but the relais won't switch on or off.

Len

Post Number:#10 Post Wed Aug 20, 2014 4:36 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!

You can show me pictures of changes that you did on Ferduino?

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:#11 Post Thu Aug 21, 2014 4:44 am
Len Nederlof Random avatar
Hi,

You mean of the arduino or the code
Len

Post Number:#12 Post Thu Aug 21, 2014 9:29 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!

On Ferduino.

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:#13 Post Fri Aug 22, 2014 6:12 am
Len Nederlof Random avatar
Hi .
Here is a picture if the PCF8575
Image
.
Brown and black wire from Ferduino A0/A1/A2 are connected to GND on the bottom side
Can the problem be in the code i changed for use with the PCF8575 that i did not do it correct
i will post the code i changed ok.Because 1 of the line i'm not sure about
Len

-------------------------------- Last edited Fri Aug 22, 2014 10:01 am --------------------------------

Hi,

You sugeested to uncomment the next lines.
https://github.com/FernandoGarcia/Fedui ... a.ino#L843
and add

PCF8575 PCF8575;

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


is it correct to uncomment the line because in the text after that line "Change to "false" If you do not have a PCF8575"?Or do i change false to true?

this is now the code after adding PCF8575 PCF8575; to that line. Is this correct?
//*****************************************************************************************
boolean PCF8575TS_S = false; // Altere para "false" caso não tenha um PCF8575
byte endereco_PCF8575TS = 0x20; // Endereço em hexadecimal = 0x20
PCF8575 PCF8575;


//*******

Post Number:#14 Post Fri Aug 22, 2014 10:21 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!

It's right.

Change:

boolean PCF8575TS_S = false;


To:

boolean PCF8575TS_S = true;



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:#15 Post Sun Aug 31, 2014 6:23 am
Len Nederlof Random avatar
Thanks tha twas the problem after i asked the question i saw the problem.
I will finishe the ATO function and then i will show the controller

Len

Post Number:#16 Post Sun Aug 31, 2014 10:14 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!

Glad to hear.

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 DIY Ferduino controller





Who is online

Users viewing this topic: No registered users and 1 guest

cron