Jump to content

danigom

Members
  • Content Count

    13
  • Joined

  • Last visited

About danigom

  • Rank
    Member

Profile Information

  • Location
    Spain
  1. danigom

    Problem with I2C RTC DS1307 Module

    I'm sorry, it was already removed ;-) . Anyway, thank you very much for all the time spent. You're great people !!
  2. danigom

    Problem with I2C RTC DS1307 Module

    Thank you!! I've just read it and it's cool.
  3. danigom

    Problem with I2C RTC DS1307 Module

    I am sorry, I was wrong. The program compiles with the following modification (I don't know why yesterday didn't): uint8_t i = 0; //The new wire library needs to take an int when you are sending for the zero register With this modification I get two different results. When I supply the module with +5V It doesn't show any communication: But when I supply the module with 3.3V I get this (something curious happens): On the other hand, i've tried with the following sketch: #include <Wire.h> void setup () { Serial.begin(9600); Wire.begin(); } void loop() { Wire.beginTransmission(0x68); Wire.write((uint8_t) 0); Wire.endTransmission(); Wire.requestFrom(0x68, 7); uint8_t ss = Wire.read(); uint8_t mm = Wire.read(); uint8_t hh = Wire.read(); Wire.read(); uint8_t d = Wire.read(); uint8_t m = Wire.read(); uint8_t y = Wire.read(); Serial.print("raw RTC data "); Serial.print(ss); Serial.print("\t"); Serial.print(mm); Serial.print("\t"); Serial.print(hh); Serial.print("\t"); Serial.print(d); Serial.print("\t"); Serial.print(m); Serial.print("\t"); Serial.println(y); delay(1000); } And I also get two different things, when i supply the module with 5Volt I get nothing, but when I supply it with 3.3V I get this: I think this demonstrates that the module is incompatible. Isn't it?
  4. danigom

    Problem with I2C RTC DS1307 Module

    Yes!! Each time I press the Reset Button, it display "RTC is not running!" If I change ... int i = 0; with uint8_t i = 0; it doesn't compile. I'm starting to lose my temper, should change module? :shock:
  5. danigom

    Problem with I2C RTC DS1307 Module

    This is the schematics of the module: Thank you for taking your time.
  6. danigom

    Problem with I2C RTC DS1307 Module

    I have done some modifications: If I supply the RTC DS1307 Module with 3.6V from the Launchpad instead of 5V it works, but not correctly: I get this: The code is: // Date and time functions using a DS1307 RTC connected via I2C and Wire lib #include <Wire.h> #include "RTClib.h" RTC_DS1307 RTC; void setup () { Serial.begin(9600); Wire.begin(); RTC.begin(); if (! RTC.isrunning()) { Serial.println("RTC is NOT running!"); // following line sets the RTC to the date & time this sketch was compiled RTC.adjust(DateTime(__DATE__, __TIME__)); } } void loop () { DateTime now = RTC.now(); Serial.print("Date: "); Serial.print(now.year(), DEC); Serial.print('/'); Serial.print(now.month(), DEC); Serial.print('/'); Serial.println(now.day(), DEC); Serial.print("Time: "); Serial.print(now.hour(), DEC); Serial.print(':'); Serial.print(now.minute(), DEC); Serial.print(':'); Serial.print(now.second(), DEC); Serial.println(); Serial.println(); delay(3000); }
  7. danigom

    Problem with I2C RTC DS1307 Module

    Yes, it compiles without any error message, but the Serial Port shows nothing.
  8. danigom

    Problem with I2C RTC DS1307 Module

    I supply the RTC module with 5V directly from the USB Port although the connection with the Launchpad is 3.3V. I've attached two pictures so that you can see the connections: I think that the problem could be with the I2C communication, the HIGH for Launchpad is 3.3V and could be considered as LOW by the DS1307 ????
  9. danigom

    Problem with I2C RTC DS1307 Module

    I'm sorry, I could't fix it with these modifications. Could anyone tell me another library to work with this module?
  10. danigom

    Problem with I2C RTC DS1307 Module

    Yes, I'm using it!
  11. danigom

    Problem with I2C RTC DS1307 Module

    First of all thank you for taking your time on it. Could you tell me how can I modify the library with energia IDE? (.cpp or .h file?) Thank you!
  12. danigom

    Hello from Spain!

    Hello to everyone, I'm Daniel from Spain. I'm an electronics engineer keen on electronics. I am starting with MSP430 Launchpad and I think this forum is full of experts on it. Greetings from Spain, Dani
  13. Hello to everyone, I am new with MSP430 Launchpad and Energ
×