Using the data logger shield as a I2C device
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 7
- Joined: Sat Dec 07, 2013 3:04 pm
Using the data logger shield as a I2C device
I have a data logger shield with the ds1307 rtc attached. I want to use an arduino with this shield on it as a I2C device. I have no problem receiving messages via I2C as long as I just use the SD card. When I try to use the DS1307 library and the rtc I don't get any response. Is there a way to allow communication between two arduino's and have the data logger use the RTC? I'm sure someone has had this problem before but couldn't find anything on it.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Using the data logger shield as a I2C device
The problem is that the Arduino must be the I2C bus master to communicate with the DS1307, so it can't be a bus slave to another master.
In other words, you can't have two masters on the same bus.
I think there are some software I2C libraries out there - you could define a separate bus that way.
Or, rearrange your bus layout so that the Arduino with the DS1307 is the master for the other arduino.
In other words, you can't have two masters on the same bus.
I think there are some software I2C libraries out there - you could define a separate bus that way.
Or, rearrange your bus layout so that the Arduino with the DS1307 is the master for the other arduino.
Please be positive and constructive with your questions and comments.