Rtc ds1307 is going nuts or circuit might be damaged
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 1
- Joined: Fri May 04, 2012 9:41 pm
Re: Rtc ds1307 is going nuts or circuit might be damaged
Wow,looks so complex.
-
- Posts: 15
- Joined: Thu Apr 12, 2012 9:01 pm
Re: Rtc ds1307 is going nuts or circuit might be damaged
well it is complex lol and i cant even get this things working .im only has far as i am because of this forum
- philba
- Posts: 387
- Joined: Mon Dec 19, 2011 6:59 pm
Re: Rtc ds1307 is going nuts or circuit might be damaged
the code is doing exactly what you are telling it to do. You might try using temp rather than temp1, though. Plus, assuming outputting a high turns the heater on, it looks like your code will turn the heater off when the temperature is low and on when it's high. Perhaps you want to think about your logic a bit more.
Plus, you should learn about hysteresis. Basically, turn the heater on when the temperature reaches a degree or two below the set point and turn it off when it' reaches the same amount above the set point. You could wind up cycling the heater fairly quickly otherwise. This means you have to take into account if the heater is on or off as well as the temperature.
Plus, you should learn about hysteresis. Basically, turn the heater on when the temperature reaches a degree or two below the set point and turn it off when it' reaches the same amount above the set point. You could wind up cycling the heater fairly quickly otherwise. This means you have to take into account if the heater is on or off as well as the temperature.
-
- Posts: 15
- Joined: Thu Apr 12, 2012 9:01 pm
Re: Rtc ds1307 is going nuts or circuit might be damaged
thanks for the help as of now temp sensor and heater pin r synced .i ordered another rtc breakout kit just in case. i have yet to get a valid time reading at all maybe wrong address idk. is there a way to test the rtc with my multimeter? Also after about 20 mins lcd goes blank?philba wrote:the code is doing exactly what you are telling it to do. You might try using temp rather than temp1, though. Plus, assuming outputting a high turns the heater on, it looks like your code will turn the heater off when the temperature is low and on when it's high. Perhaps you want to think about your logic a bit more.
Plus, you should learn about hysteresis. Basically, turn the heater on when the temperature reaches a degree or two below the set point and turn it off when it' reaches the same amount above the set point. You could wind up cycling the heater fairly quickly otherwise. This means you have to take into account if the heater is on or off as well as the temperature.
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Rtc ds1307 is going nuts or circuit might be damaged
Post photos showing all your connections. Run the RTC example from the tutorial and post the first few lines that come up on the serial monitor. IT should tell you if the RTC is running or not.
-
- Posts: 15
- Joined: Thu Apr 12, 2012 9:01 pm
Re: Rtc ds1307 is going nuts or circuit might be damaged
RTC is NOT running!
2165/165/165 165:165:85
since 1970 = 2028820689s = 23481d
now + 7d + 30s: 2034/4/23 17:18:39
2165/165/165 165:165:85
since 1970 = 2028820689s = 23481d
now + 7d + 30s: 2034/4/23 17:18:39
2165/165/165 165:165:85
since 1970 = 2028820689s = 23481d
now + 7d + 30s: 2034/4/23 17:18:39
2165/165/165 165:165:85
since 1970 = 2028820689s = 23481d
now + 7d + 30s: 2034/4/23 17:18:39
2165/165/165 165:165:85
since 1970 = 2028820689s = 23481d
now + 7d + 30s: 2034/4/23 17:18:39
2165/165/165 165:165:85
since 1970 = 2028820689s = 23481d
now + 7d + 30s: 2034/4/23 17:18:39
2165/165/165 165:165:85
since 1970 = 2028820689s = 23481d
now + 7d + 30s: 2034/4/23 17:18:39
2165/165/165 165:165:85
since 1970 = 2028820689s = 23481d
now + 7d + 30s: 2034/4/23 17:18:39
-
- Posts: 15
- Joined: Thu Apr 12, 2012 9:01 pm
Re: Rtc ds1307 is going nuts or circuit might be damaged
sda pin 20 scl pin 21 vcc pin 5v gnd pin gnd
-
- Posts: 15
- Joined: Thu Apr 12, 2012 9:01 pm
Re: Rtc ds1307 is going nuts or circuit might be damaged
ok fixed the screen problem rite now i dont have a camera thanks to my daugther
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Rtc ds1307 is going nuts or circuit might be damaged
Make sure that your jumpers are short and the connections are good. All your solder joints should be smooth and shiny. Re-touch any that are not.
Is the battery installed? Did you remember the solder blob under the battery clip?
Is the battery installed? Did you remember the solder blob under the battery clip?
Please be positive and constructive with your questions and comments.