I´m trying to do a simple datalogger that records 3 sensors valules in a SD. I also need to storage the date and time so I decided to use a PCF8583 module (RTC Click)
I´m using the PCF8583.h library that already exists, but I needed to adapt it because it didn´t compile. (I had to change Wire.write(0x00) by Wire.write(bytte(0x00)))
The program compiles but when I load it to the arduino the COM port disappears and I don´t know why.
This happens every time I use the PCF8583 library, even in the example, and the program doesn´t do anything.
Does anyone know why that happens? Any way to solve that?
No, I am using this one, because my device is PCF8583, but I will try using that one. In that one the device defined is PCF8523, will it work as the 8583?
I am using the 1.7.11 IDE from arduino.org, the indicated one for arduino M0.
When I try to compile the PCF8583 library with the changes you mention it keeps me showing an error in the Wire.write(0x00) sentence.
Doing the changes I told you (byte(0x00)), it compiles but the program doesn´t do anything and the COM port disappears.
With the other library (RTClib.h) I have been able to make it run but it shows me 2165/165/165 165:165:85. I have been reading about it and most people say that it´s because of an connection error, but the device is right connected.
Finally I solved the "165" problem. I made an I2C Scanner and I realized that my I2C address was 0x50 instead of 0x68 defined by RTClib.h. Now, I can set the hour by the PC hour but it increase very slowly, only 1 second in 30 seconds time, may it be due to the battery?
I use the arduino.org one because the 1.7.11 IDE is the indicated for my Arduino M0 board. With the 1.6.12 IDE (The one in arduino.cc) it is not contemplated the arduino M0.
By the way, I have been able to make it run with this other library. In this one PCF8583, which is my device, is included.
The RTC runs right but it shows the year 2208 ans I have no idea why. The only thing that comes to my mind is rest 192 to the year value and pray that this 192 difference will be always the same... but it´s quite dirty