chronodot basics

Tick Tock Clock Kits

Moderators: adafruit_support_bill, adafruit

chronodot basics

Postby wild » Tue Jun 26, 2012 11:16 am

I have the chronodot and the arduino mega 2560. I also downloaded the chronodot_clock program. I think I understand the code. But I have the following questions:

Is the address for the DS3231 always 68hex or is it different for each chip? If so, how do I find it?

I have to connect the SDA pin of the chronodot to the arduino mega, but which pin, SDA on the mega? and do I need a pull up resistor?
wild
 
Posts: 6
Joined: Tue Jun 26, 2012 10:53 am

Re: chronodot basics

Postby Stephanie » Tue Jun 26, 2012 11:53 am

All DS3231 chips have the same 0x68 address.

On the Mega, the I2C pins are 20 and 21. Recent Megas have this indicated on the silkscreen, "SDA 20 SCL 21' is printed on them next to the header.

You do have to have pullup resistors on both SDA and SCL lines, that is part of how I2C works. However, recent megas (or maybe all Megas) have 10K pullups on them already, but it would not hurt for you to add your own pullup resistors to the Chronodot.

If your Mega looks like the one in this picture, then you can just plug the chronodot in to the SDA and SCL lines (and 5v and Gnd too of course) and not worry about adding pullup resistors:
http://arduino.cc/en/uploads/Main/Ardui ... _Front.jpg

Cheers!
User avatar
Stephanie
 
Posts: 286
Joined: Sat Dec 11, 2010 12:17 am
Location: Canada

Re: chronodot basics

Postby pburgess » Tue Jun 26, 2012 12:15 pm

wild wrote:Is the address for the DS3231 always 68hex or is it different for each chip?


It will always be 0x68.

I have to connect the SDA pin of the chronodot to the arduino mega, but which pin, SDA on the mega? and do I need a pull up resistor?


The I2C pins on the Mega are 20 (SDA) and 21 (SCL). Shouldn't need pullups...the Wire library enables the Arduino's internal pullups on these pins.
User avatar
pburgess
 
Posts: 1343
Joined: Sun Oct 26, 2008 1:29 am

Re: chronodot basics

Postby wild » Tue Jun 26, 2012 1:19 pm

Thanks, that works. :D
wild
 
Posts: 6
Joined: Tue Jun 26, 2012 10:53 am


Return to Clocks

Who is online

Users browsing this forum: mibignistinly and 1 guest

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


New Products [108]

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[31]


 
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[34]
LCDs & Displays[48]
Components & Parts[70]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[111]
 
Wireless[14]
Cables[62]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
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]