Camaradas es la primera vez vez que uso el ds1302 y valla que me esta dando dolor de cabeza la estoy usando con una libreria la cual encontre en internet y uso su ejemplo para programar la hora y fecha y que luego me lo muestre en el lcd pero no lo hace no la cambia lo tengo conectado a los pines digitales 22 rst 24 i/o 26 sclk pero no logo cambiarla nose que podria ser le dejo el codigo que estoy usando quizas me puedan ayudar desde ya gracias
// DS1302_LCD (C)2010 Henning Karlsen
// web: http://www.henningkarlsen.com/electronics
//
// A quick demo of how to use my DS1302-library to make a quick
// clock using a DS1302 and a 16x2 LCD.
//
// I assume you know how to connect the DS1302 and LCD.
// DS1302: CE pin -> Arduino Digital 2
// I/O pin -> Arduino Digital 3
// SCLK pin -> Arduino Digital 4
// LCD: DB7 -> Arduino Digital 6
// DB6 -> Arduino Digital 7
// DB5 -> Arduino Digital 8
// DB4 -> Arduino Digital 9
// E -> Arduino Digital 10
// RS -> Arduino Digital 11
#include <LiquidCrystal.h>
#include <DS1302.h>
// Init the DS1302
DS1302 rtc(22, 24, 26);
// Init the LCD
LiquidCrystal lcd(10, 8, 6, 7, 3, 2);
void setup()
{
// Set the clock to run-mode, and disable the write protection
rtc.halt(false);
rtc.writeProtect(false);
// Setup LCD to 16x2 characters
lcd.begin(20, 4);
// The following lines can be commented out to use the values already stored in the DS1302
rtc.setDOW(FRIDAY); // Set Day-of-Week to FRIDAY
rtc.setTime(01, 10, 00); // Set the time to 12:00:00 (24hr format)
rtc.setDate(17, 01, 2014); // Set the date to August 6th, 2010
}
void loop()
{
// Display time centered on the upper line
lcd.setCursor(4, 0);
lcd.print(rtc.getTimeStr());
// Display abbreviated Day-of-Week in the lower left corner
lcd.setCursor(0, 1);
lcd.print(rtc.getDOWStr(FORMAT_SHORT));
// Display date in the lower right corner
lcd.setCursor(6, 1);
lcd.print(rtc.getDateStr());
// Wait one second before repeating :)
delay (1000);
}