|
I2C hanging problem - 2 Arduino's and an 3.3V I2C Sensor TMP102
|
Postings by administrators only.
Refresh page
| Posted by |
Ppl4world
(1 post) bio
|
| Date |
Sat 02 Jun 2012 07:17 AM (UTC) [ quote
] Amended on Sat 02 Jun 2012 07:18 AM (UTC) by Ppl4world
|
| Message |
Hi, I was wondering if you or anyone has successfully connected 2 Ardunos AND a I2C 3.3 V sensor (e.g TMP102)
I can connect and communicate (using the Wire library) without problem 2 Arduinos (2 Uno's or 1 Uno and 1 Ethernet) or 1 Arduino with 5 Sensors. However whenever I try to connect 2 Arduino and 1 sensor the program hangs immediately (as observed via the printout in the serial-window stopping immediately upon connection)
I have tried with and without 4.7kO pull-ups.
All wires are very short, so capacitance should not be an issue.
I have tried in Master/Slave and Master/Master configurations.
I am Wire.read() the TMP102 temperature once per second so sampling should not be an issue
Even when the second Arduino has no communication code (like Wire.receive, etc) running. Simply connecting it's A4/A5 lines hangs the code on the first Arduino.
Any hints? I have banged my head against this for a while and searcher around and found "multiple Arduinos" and "multiple I2C sensors" but not "2 Arduinos and 1 (or more) sensors).
Thanks so much for any hint or advice, I'm truly at a loss here!
peter | top |
|
| Posted by |
Nick Gammon
Australia (18,769 posts) bio
Forum Administrator |
| Date |
Reply #1 on Sat 02 Jun 2012 09:17 AM (UTC) [ quote
] |
| Message |
Looks like this is a cross-post to:
http://arduino.cc/forum/index.php?topic=108324
This has now been resolved. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
1,086 views.
Postings by administrators only.
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )