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

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

Postby blainelee » Fri May 04, 2012 8:44 pm

Wow,looks so complex. :cry:
blainelee
 
Posts: 1
Joined: Fri May 04, 2012 8:41 pm

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

Postby bioreefdude » Fri May 04, 2012 9:58 pm

well it is complex lol and i cant even get this things working .im only has far as i am because of this forum
bioreefdude
 
Posts: 15
Joined: Thu Apr 12, 2012 8:01 pm

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

Postby philba » Sat May 05, 2012 1:15 am

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.
philba
 
Posts: 387
Joined: Mon Dec 19, 2011 5:59 pm

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

Postby bioreefdude » Sat May 05, 2012 9:29 pm

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?
bioreefdude
 
Posts: 15
Joined: Thu Apr 12, 2012 8:01 pm

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

Postby adafruit_support_bill » Sun May 06, 2012 5:34 am

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.
User avatar
adafruit_support_bill
 
Posts: 15986
Joined: Sat Feb 07, 2009 9:11 am

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

Postby bioreefdude » Sun May 06, 2012 12:39 pm

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 8:01 pm

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

Postby bioreefdude » Sun May 06, 2012 12:41 pm

sda pin 20 scl pin 21 vcc pin 5v gnd pin gnd
bioreefdude
 
Posts: 15
Joined: Thu Apr 12, 2012 8:01 pm

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

Postby bioreefdude » Sun May 06, 2012 12:49 pm

ok fixed the screen problem rite now i dont have a camera thanks to my daugther
bioreefdude
 
Posts: 15
Joined: Thu Apr 12, 2012 8:01 pm

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

Postby adafruit_support_bill » Sun May 06, 2012 1:04 pm

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?
User avatar
adafruit_support_bill
 
Posts: 15986
Joined: Sat Feb 07, 2009 9:11 am

Previous

Return to Arduino

Who is online

Users browsing this forum: No registered users and 6 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [100]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]