Page 1 of 1

Real Time Clock Interface?

Posted: Thu Jul 23, 2020 10:13 pm
by bryan.hayes
Has anyone been able to implement a real time clock (RTC) with the Red Pitaya via i2c or some other means? I would be very interested in learning how to do this.

Re: Real Time Clock Interface?

Posted: Thu Jul 23, 2020 10:32 pm
by pavel
I think that the instructions from the following link should work for the Red Pitaya boards:

https://thepihut.com/blogs/raspberry-pi ... spberry-pi

However, you'll most probably have to enable the RTC modules and rebuild the Linux kernel.

Re: Real Time Clock Interface?

Posted: Fri Jul 24, 2020 4:56 pm
by kasaudio
Has anyone been able to implement a real time clock (RTC) with the Red Pitaya via i2c or some other means?
I managed to do it with the ds3231. I have to find the SD card with the code... But the clock information was not "visible" to the linux kernel - only within my application.

Re: Real Time Clock Interface?

Posted: Wed Sep 09, 2020 11:16 pm
by earlforeal
kasaudio wrote:
Fri Jul 24, 2020 4:56 pm
Has anyone been able to implement a real time clock (RTC) with the Red Pitaya via i2c or some other means?
I managed to do it with the ds3231. I have to find the SD card with the code... But the clock information was not "visible" to the linux kernel - only within my application.
I am looking to use a ds3231 RTC as well. Any advice on how you got it to work?

Re: Real Time Clock Interface?

Posted: Thu Sep 10, 2020 12:21 am
by kasaudio
I'm rewriting code from scratch. I created wrappers around i2c interface to use arduino code with minimum effort. As I prefer object oriented programming I use c++ instead of c.