create new tag
view all tags

I2C Real Time Clock and serial EEPROM

While our Raspberry Pi is usually connected to the network from which it can get date and time, other micro-controllers (the Arduinio is an example) do not necessarily have an Ethernet connection. Also out Raspberry may run temporarily without network connection. In order to know date and time also in these cases there is the DS1307 Real Time Clock (RTC), which can be programmed through I2C and which can keep date and time through a 32.768 kHz oscillator running on a 3 V battery. Date and time is stored in 56 bytes of battery backed RAM memory.

The PCB also includes an AT24C32 I2C serial EEPROM onto which 4 kByte (32 kbits) of data may be stored. Since it is rather simple to access the EEPROM through the I2C bus we will use this device to collect experience in I2C programming. A top secret message has been programmed into the chip, which the student detectives are asked to discover.

The PCB also has provisions to mount a ds18b20 digital thermometer, which on our boards however is not mounted.

rtcfront.png rtcback.png
RTC module front RTC module back with battery
As you can see, the I2C connections exist twice on the board, only one of which is needed to run the board.

-- Uli Raich - 2017-02-01


Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng rtcback.png r1 manage 774.8 K 2017-02-01 - 14:17 UnknownUser  
PNGpng rtcfront.png r1 manage 2290.3 K 2017-02-01 - 14:17 UnknownUser  
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2017-02-01 - uli
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback