Page 1 of 1
Connect multiple TMP421 Temp sensors
Posted: Thu Jan 03, 2013 5:12 pm
by thechut
Hello,
I have purchased 2 TMP421 temp sensors and am wondering if it is possible to connect them on the same I2C bus or on the same microcontroller in anyway. I didn't see any documentation or anything on the board for changing the address. Will this cause problem if I connect both to the same I2C bus? Thanks!
Re: Connect multiple TMP421 Temp sensors
Posted: Sun Jan 06, 2013 5:16 pm
by thechut
Can anybody provide insight on this?
Re: Connect multiple TMP421 Temp sensors
Posted: Fri Jan 11, 2013 9:24 pm
by oz
thechut,
Sorry I've been out of town, and running for the past week. I'll try to get into the shop to jumper some sensors and give them at try with new I2C addresses, more docs on that sensor are long overdue. The design details are buried on a Windows machine that no one in the shop likes to turn on, but it's time.
Paul
Re: Connect multiple TMP421 Temp sensors
Posted: Thu Feb 28, 2013 12:06 pm
by thechut
Paul,
Thanks for your reply, took me a while to see it. It would still be great to be able to use 2 TMP421s. However, now I am having another problem that multiple TMP421s I have have stopped working with the library. I tried the most basic setup of the 4 pin header plugged into the analog pins and used your GetLocalTemperature sketch but the sketch hangs on the I2C read so all I get is "Temp: " and then it juts hangs. Just like it would if the I2c was not connected correctly. Not sure what is going here, and it is a problem with multiple sensors and multiple arduinos. Has some change to Arduino affected the library?
Re: Connect multiple TMP421 Temp sensors
Posted: Sun Mar 24, 2013 11:04 am
by thechut
Bump, I am still unable to get either of my TMP421s to connect to the A2,A3,A4,A5 port on the Arduino with the GetLocalTemperature test sketch. The sketch just hangs while trying to read from the sensor but it cannot. There should also probably be some error handling in the library since this could cause your entire program to halt unless you are using a watchdog.