SparkFun Forums 

Where electronics enthusiasts find answers.

For the discussion of Arduino related topics.
By user820985
#196908
Hi,

I cannot make sense of the information from the serial monitor using the DeadOn RTC DS3234 breakout and latest Arduino Yun board.
I get almost random data. 1/2 times there is output to the serial monitor. 2/10 times it is the correct time.

I have the SPI connected on the Yun ICSP header.
- RTC CS/SS - Yun D10
- RTC MOSI - ICSP Pin 5
- RTC CLK - ICSP Pin 2
- RTC MISO - ICSP Pin 1
- RTC VCC - ICSP Pin 4
- RTC GND - ICSP Pin 6

All components brand new few days ago.
I have bought 2x separate DeadOn RTC's and both behave the same way.
I have tried the Arduino power pins and the ICSP power pins and both behave the same way.

I am using the example sketch provided with the SparkFun_DS3234_RTC_Arduino_Library.
Arduino Create web editor (same results with desktop app)
Chip Select is Digital Pin 10.
Serial Baud is set 9600.

Thoughts:
- I don't have the SQW pin connected (sketch lists optional for alarm output)
- I have not used the Linux part of the Yun yet - could this interfere with the Yun ICSP?
- Could the Yun ICSP interfere with the USB for upload?

This was the closest to the time being correct but the alarm pin wasn't even defined in the sketch. Output lasted 2 seconds.
Code: Select all
19:32:12 | Thursday - 11/9/17
ALARM 2!
24:02:71 | 
Otherwise usually get this...
Code: Select all
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 - 165/165/165
ALARM 1!
ALARM 2!
25:165:165 PM | 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 - 165/165/165
ALARM 1!
ALARM 2!
25:165:165 PM | 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 - 165/165/165
ALARM 1!
ALARM 2!

Final year degree project and I would appreciate some help.

Best Regards,

Alex