Rtc ds1307 is going nuts or circuit might be damaged

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
blainelee
 
Posts: 1
Joined: Fri May 04, 2012 9:41 pm

Re: Rtc ds1307 is going nuts or circuit might be damaged

Post by blainelee »

Wow,looks so complex. :cry:

bioreefdude
 
Posts: 15
Joined: Thu Apr 12, 2012 9:01 pm

Re: Rtc ds1307 is going nuts or circuit might be damaged

Post by bioreefdude »

well it is complex lol and i cant even get this things working .im only has far as i am because of this forum

User avatar
philba
 
Posts: 387
Joined: Mon Dec 19, 2011 6:59 pm

Re: Rtc ds1307 is going nuts or circuit might be damaged

Post by philba »

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.

bioreefdude
 
Posts: 15
Joined: Thu Apr 12, 2012 9:01 pm

Re: Rtc ds1307 is going nuts or circuit might be damaged

Post by bioreefdude »

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.
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?

User avatar
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 by adafruit_support_bill »

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.

bioreefdude
 
Posts: 15
Joined: Thu Apr 12, 2012 9:01 pm

Re: Rtc ds1307 is going nuts or circuit might be damaged

Post by bioreefdude »

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

bioreefdude
 
Posts: 15
Joined: Thu Apr 12, 2012 9:01 pm

Re: Rtc ds1307 is going nuts or circuit might be damaged

Post by bioreefdude »

sda pin 20 scl pin 21 vcc pin 5v gnd pin gnd

bioreefdude
 
Posts: 15
Joined: Thu Apr 12, 2012 9:01 pm

Re: Rtc ds1307 is going nuts or circuit might be damaged

Post by bioreefdude »

ok fixed the screen problem rite now i dont have a camera thanks to my daugther

User avatar
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 by adafruit_support_bill »

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?

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”