Sale!

3 Pieces DS1307N IC Integrated Circuits

Original price was: 5,10 €.Current price is: 2,64 €. Excluding VAT

DS1307N IC: 3 integrated circuits for Arduino. Excellent for implementing RTC clock functions in projects.

Available on back-order

Domande su questo prodotto? Scrivi a Lana su WhatsApp

🎬 The product on video

Description

Tutorial: How to Use DS1307N IC

The DS1307N IC is a low-power real-time clock that stores date and time. It is ideal for Arduino projects that require high temporal accuracy.

What you need

  • Arduino Uno
  • USB A-MicroB Cable
  • 5V Power Supply

Steps

  1. Connect the DS1307N to the VCC and GND pins of the Arduino for power.
  2. Connect the following pins of the DS1307N: SDA to A4, SCL to A5 on Arduino Uno.
  3. Install the RTClib library from the Arduino library manager.
  4. Include RTClib in the code and declare an RTC object.
  5. Set the time and date with rtc.adjust(DateTime(YYYY, MM, DD, HH, mm, ss));
  6. Read the digital clock with rtc.now() to get the current time.
  7. Print the clock data to the serial monitor.
  8. Check that the DS1307N is working by reviewing the code output.

Example code

RTC_DS1307 rtc;

void setup() {
  Serial.begin(9600);
  if (!rtc.begin()) {
    Serial.println("Errore: non riesco a trovare l'orologio.");
    while (true); 
  }
}

void loop() {}

Mini project

Create a digital clock that displays the time and date on the serial monitor.

Common mistakes

  • Power supply issue: make sure VCC is correctly connected to 5V or 3.3V.
  • Issues with SDA/SCL pins: check connections and RTClib library.
  • Incorrect clock configuration: verify that the time is set correctly.

Recommended accessories

  • USB A-MicroB cable
  • 5V power supply
  • LCD or OLED display to show time and date

Frequently asked questions

How can I synchronize the clock with an NTP server?
Use a library like TimeNTP to automatically synchronize the clock.

What is the precision of the DS1307N clock?
Check the datasheet, but generally it has a precision of about 2 minutes per month.

Reviews

There are no reviews yet.

Be the first to review “3 Pieces DS1307N IC Integrated Circuits”

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