[Home] [Downloads] [Search] [Help/forum]

Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  Electronics
. -> [Folder]  Microprocessors
. . -> [Subject]  I2C hanging problem - 2 Arduino's and an 3.3V I2C Sensor TMP102

I2C hanging problem - 2 Arduino's and an 3.3V I2C Sensor TMP102

Postings by administrators only.

[Refresh] Refresh page

Posted by Ppl4world   (1 post)  [Biography] bio
Date Sat 02 Jun 2012 07:17 AM (UTC)

Amended on Sat 02 Jun 2012 07:18 AM (UTC) by Ppl4world

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!

[Go to top] top

Posted by Nick Gammon   Australia  (23,016 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sat 02 Jun 2012 09:17 AM (UTC)
Looks like this is a cross-post to:


This has now been resolved.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] 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.


Postings by administrators only.

[Refresh] Refresh page

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]