Sale!

DS1307 Raspberry Pi RTC Real Time Clock Module with Replaceable Battery IIC I2C Serial Port

Original price was: 7,85 €.Current price is: 6,06 €. Excluding VAT

DS1307 RTC Module with replaceable battery for Raspberry Pi. Works with I2C Serial Port to manage date and time in projects.

Available on back-order

Domande su questo prodotto? Scrivi a Lana su WhatsApp

Category:

🎬 The product on video

Description

What it is

The DS1307 RTC module is a component for Raspberry Pi that includes a replaceable battery to maintain the correct time and date even when the device is turned off. It uses the I2C serial port to synchronize the clock and date with the Raspberry Pi.

Features

  • DS1307 RTC Module
  • Replaceable Battery
  • I2C Communication
  • Compatible with Raspberry Pi

What it is for

This RTC module ensures that the date and time of the Raspberry Pi remain accurate even when the device is turned off. It is useful for projects that require precise time synchronization, such as time monitoring systems or applications that need to log events based on the time.

Tutorial: How to Use RTC DS1307 for Raspberry Pi

The DS1307 RTC module for Raspberry Pi allows you to maintain the correct time and date even when your Raspberry Pi is turned off, ensuring accurate time synchronization when you turn it back on.

What you need

  • Raspberry Pi
  • Micro USB cable
  • DS1307 RTC Module
  • CR1220 battery
  • Software for Raspberry Pi

Steps

  1. Connect the DS1307 RTC module to the Raspberry Pi using the I2C pins (SDA and SCL).
  2. Check that the module is recognized by the Raspberry Pi operating system.
  3. Install the necessary software to interface with the DS1307 RTC module.
  4. Set the time and date on the DS1307 RTC module.
  5. Verify that the time and date are correctly stored and maintained even when the Raspberry Pi is turned off.
  6. Replace the CR1220 battery in the DS1307 RTC module to ensure long-term timekeeping.

Example code

import time
import datetime
import board
import busio
import adafruit_ds1307

i2c = busio.I2C(board.SCL, board.SDA)
date_time = adafruit_ds1307.DS1307(i2c)
date_time.datetime = datetime.datetime.now()
print(date_time.datetime)

Mini project

Create a time monitoring system that automatically records the time and date every time the Raspberry Pi restarts.

Common mistakes

  • The RTC module is not recognized by the operating system.
  • The time and date are not maintained correctly when the Raspberry Pi is turned off.
  • The CR1220 battery is not installed correctly in the RTC DS1307 module.
  • The necessary software has not been installed correctly.

Recommended accessories

  • CR1220 Battery
  • I2C Connectivity Kit
  • Micro USB cable
  • Raspberry Pi Prototyping Kit

Frequently asked questions

How can I verify that the RTC DS1307 module is recognized by the operating system?
Use the command i2cdetect -y 1 to check for the presence of the RTC DS1307 module on the I2C bus.

What is the lifespan of the CR1220 battery in the RTC DS1307 module?
Check the datasheet of the RTC DS1307 module.

Reviews

There are no reviews yet.

Be the first to review “DS1307 Raspberry Pi RTC Real Time Clock Module with Replaceable Battery IIC I2C Serial Port”

Your email address will not be published. Required fields are marked *