Forum Software Ferduino code RTC problem

RTC problem  [SOLVED]


Post Number:#1 Post Sat Jan 23, 2016 3:38 pm
Posts: 30
Topics: 7
Images: 32
Solve rating: 0
Joined: Fri May 09, 2014 2:30 pm
Topics: 7
Age: 64
Location: waremme
Gender: Male
National Flag:
Belgium
Fernando,

Once again I need your help,since the installation of the last version of Ferduino, I have problem with date and time.
If I try to adjust to correct values, the data are not saved.
I have perform the test code for searching I2C device and the result was 1 device found at 0X20 from what I saw in the forum and in the test code for RTC , it should be 0x68.
In the previous version, it was requested to modify DS1307cpp and Henning H are those modifications still required ?
Could you give me some help
Thanks in advance

Jean-Yves

Post Number:#2 Post Sat Jan 23, 2016 4:46 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!

Your RTC is connected on pins 20 and 21 so change this line on code:

DS1307 rtc(18, 19);


On this case you can't use a PCF8575 without change RTC pins to 18 and 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:#3 Post Sat Jan 23, 2016 4:53 pm
Posts: 30
Topics: 7
Images: 32
Solve rating: 0
Joined: Fri May 09, 2014 2:30 pm
Topics: 7
Age: 64
Location: waremme
Gender: Male
National Flag:
Belgium
Thank you very much, it's OK now but I don't understand because normaly those pins are for Ferduino mega ?

Post Number:#4 Post Sat Jan 23, 2016 5:00 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

Not exactly, all controllers with PCF8575 should use 18 and 19 to RTC.
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 Sat Jan 23, 2016 5:03 pm
Posts: 30
Topics: 7
Images: 32
Solve rating: 0
Joined: Fri May 09, 2014 2:30 pm
Topics: 7
Age: 64
Location: waremme
Gender: Male
National Flag:
Belgium
OK once again thank you for your help and for your work.
Best regards,

Jean-Yves




Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 1 guest

cron