RTC DS3231 with NRF52840

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
olivier1870
 
Posts: 19
Joined: Mon Dec 18, 2017 5:12 am

RTC DS3231 with NRF52840

Post by olivier1870 »

Good morning,
I would like to store data in the Istby memory, with timestamps. I tried to connect a DS3231 and use the Adafruit RTC library but the system crashes (i.e. compilation through Arduino IDE foes fine, but the prog does not run for some reason)
Any idea?

Many thanks

User avatar
adafruit_support_carter
 
Posts: 29470
Joined: Tue Nov 29, 2016 2:45 pm

Re: RTC DS3231 with NRF52840

Post by adafruit_support_carter »

Please post a photo of your setup showing how everything is connected. What arduino sketch are you trying to run?

User avatar
olivier1870
 
Posts: 19
Joined: Mon Dec 18, 2017 5:12 am

Re: RTC DS3231 with NRF52840

Post by olivier1870 »

Many thanks for your quick reaction.
The setup is as follow:

Itsby NRF52840 + Oled display 1.3 (Adafruit) + pressure sensor (MS58303): connection via I2C -> all works fine

I added an RTC DS3231 (Adafruit) to I2C -> all ok.

I picked up the example here: File->Examples->RTClib->ds3231 -> rtc commands seem to be blocking the prog (e.g. DateTime now = rtc.now();)

User avatar
adafruit_support_carter
 
Posts: 29470
Joined: Tue Nov 29, 2016 2:45 pm

Re: RTC DS3231 with NRF52840

Post by adafruit_support_carter »


User avatar
olivier1870
 
Posts: 19
Joined: Mon Dec 18, 2017 5:12 am

Re: RTC DS3231 with NRF52840

Post by olivier1870 »

Hi

0x3D = OLED display
0x76 = Pressure sensor
0x68 = RTC (DS3231)

cheers

User avatar
olivier1870
 
Posts: 19
Joined: Mon Dec 18, 2017 5:12 am

Re: RTC DS3231 with NRF52840

Post by olivier1870 »

Noe the example ds3231 works fine! I must have made a mistake ...

Many thanks for your help!!!

Wish you a nice day

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”