Forum Software Ferduino code Reloj DS1302

Reloj DS1302  [SOLVED]


Post Number:#1 Post Thu Jan 15, 2015 1:43 pm
Posts: 5
Topics: 2
Solve rating: 0
Joined: Wed Jan 14, 2015 8:20 pm
Topics: 2
Age: 57
Gender: None specified
National Flag:
Spain
Eu tela 320 * 240 I instalado como a biblioteca relógio DS1302, mas a tela não me mostrar o relógio, apenas o dia, data e ano,
Assim que o relógio pode aparecer?
Obrigado

Post Number:#2 Post Thu Jan 15, 2015 2:12 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Welcome Juanjo!

1 - Write only in English because is language chosen to this forum;

2 - This translation to Portuguese is horrible; =))

3 - I can understand Spanish; :D

4 - This TFT isn't compatible with my Ferduino version. Buy a TFT 400 x 240 or try this version but, I'll not give support to it;

5 - Buy a DS1307.

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#3 Post Thu Jan 15, 2015 2:48 pm
Posts: 5
Topics: 2
Solve rating: 0
Joined: Wed Jan 14, 2015 8:20 pm
Topics: 2
Age: 57
Gender: None specified
National Flag:
Spain
Now I have resized version, not use the ds1307 because the time is advanced.
Thanks for all modes

-------------------------------- Last edited Thu Jan 15, 2015 7:59 pm --------------------------------

Fernando , perdona por la mala traduccion, tengo la pantalla pero el codigo es es redimensionado para dicha pantalla, el reloj ds1302 funciona bien , pero el problemas es que en la pantalla principal solo aparece el dia el mes y el año, y las horas y minutos no aparecen, lo unico que queria saber es si tu sabes a que puede ser debido, ya que con el ds 1307 el reloj con los dias se adelanta la hora.
Gracias y perdon.

Post Number:#4 Post Thu Jan 15, 2015 3:13 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

If you want a RTC more precise buy a DS3231. I know that the library is compatible with this IC.

http://www.ebay.com/itm/New-DS3231-Prec ... 2ed273282e
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#5 Post Thu Jan 15, 2015 7:06 pm
Posts: 5
Topics: 2
Solve rating: 0
Joined: Wed Jan 14, 2015 8:20 pm
Topics: 2
Age: 57
Gender: None specified
National Flag:
Spain
Hola Fernando, he probado tambien con un DS1307 y me da el mismo problema, o sea que las horas y minutos no aparecen en pantalla, no se si es normal o falla el codigo adaptado para dicha pantalla.
Gracias y un saludo

Post Number:#6 Post Thu Jan 15, 2015 7:42 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Use this code to test the RTC:

#include <DS1307henning.h>

// Init the DS1307
DS1307 rtc(20, 21);

void setup()
{
  // Set the clock to run-mode
  rtc.halt(false);
 
  // Setup Serial connection
  Serial.begin(9600);
}

void loop()
{
  // Send Day-of-Week
  Serial.print(rtc.getDOWStr());
  Serial.print(" ");
 
  // Send date
  Serial.print(rtc.getDateStr());
  Serial.print(" -- ");

  // Send time
  Serial.println(rtc.getTimeStr());
 
  // Wait one second before repeating :)
  delay (1000);
}


Open the serial monitor.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#7 Post Thu Jan 15, 2015 8:52 pm
Posts: 5
Topics: 2
Solve rating: 0
Joined: Wed Jan 14, 2015 8:20 pm
Topics: 2
Age: 57
Gender: None specified
National Flag:
Spain
En el monitor serial si funciona , pero despues que hay que hacer ?
Perdon por mi ignorancia.

Post Number:#8 Post Thu Jan 15, 2015 9:06 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#9 Post Fri Jan 16, 2015 6:16 am
Posts: 5
Topics: 2
Solve rating: 0
Joined: Wed Jan 14, 2015 8:20 pm
Topics: 2
Age: 57
Gender: None specified
National Flag:
Spain
Ya he solucionado el tema del reloj, ahora ya se ven horas , minutos, y segundos, incluso funciona con el ds1302.
El problema era que el reloj se salia de la pantalla y modificando :
myGLCD.print(rtc.getTimeStr(FORMAT_LONG), 250, 227+3), el 250 que en el original era 315.
Mucha gracias por todo, un saludo.

Post Number:#10 Post Fri Jan 16, 2015 8:37 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Glad to hear!
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.




Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 1 guest

cron