ROBOTIC
TUTORIALS.COM

Popular Tutorial

Click on the image interested  to know what they are, how to do them and more...
Scroll down to check out to specific topic of tutorials on Electronics and Robotics.
Digital Clock with RTC and Arduino
1

Items Required


  Product Name    Quantity   Link
 SPduino  1 Buy Now
 RTC Module (DS1302)  1  
 USB A-B Cable   1  Buy Now
Female to male connector wires
1  Buy Now
Starter shield   5  Buy Now
2

Application

  • Digital Clock / Watch
  • Attendance System
  • Digital Camera
  • In Display Units in Automobiles
  • In Computer and Smartphones
3

Component specification

1) DS1302 Real Time clock module 
Description :
The DS1302 module helps to add time/calendar options to your project.The interface is simple SPI method.
Specifications:
  • Supply voltage: 5v
  • Interface: SPI 

2) SPduino:
  • Microcontroller: ATmega328
  • Operating Voltage: 5V
  • Input Voltage (recommended): 7-12V
  • Input Voltage (limits): 6-20V
  • Digital I/O Pins: 14 (of which 6 provide PWM output)
4

Interfacing with RTC ( DS-1302 )

  1. Mount the Starter shield over the SPduino.
  2. Connect the VCC and GND of RTC Module to +5V and GND of the Starter shield board respectively.
  3. Now, connect the CLK pin of RTC to pin-6 of Starter shield 
  4. Also connect the 'DAT' and 'RST' pins of RTC to 9,10 pin of Starter shield .
  5. The circuit after connection should appear something as shown below:
NOTE:
  • When Uploading the program to the arduino, The jumper in starter shield must be in USB Mode.
  • At laster stage when Stand alone with a battery pack, the jumper must be in Power supply Mode.
5

Sample Code and Output

Sample Program :

Please Upload the sample program for Digital Clock as given in below link.



Sample Output :






NOTE:
 


HAPPY ROBOTING !!!
Home | Shop | Terms & Conditions | Privacy Policy | Disclaimer | Contact Us
Copyright © SP Robotic Works. All Rights Reserved.