Connect multiple TMP421 Temp sensors

Questions about Modern Device and JeeLabs Sensors
thechut
Posts: 4
Joined: Thu Jan 03, 2013 5:09 pm

Connect multiple TMP421 Temp sensors

Post 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!

thechut
Posts: 4
Joined: Thu Jan 03, 2013 5:09 pm

Re: Connect multiple TMP421 Temp sensors

Post by thechut »

Can anybody provide insight on this?

oz
Site Admin
Posts: 542
Joined: Mon May 12, 2008 4:19 pm

Re: Connect multiple TMP421 Temp sensors

Post 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

thechut
Posts: 4
Joined: Thu Jan 03, 2013 5:09 pm

Re: Connect multiple TMP421 Temp sensors

Post 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?

thechut
Posts: 4
Joined: Thu Jan 03, 2013 5:09 pm

Re: Connect multiple TMP421 Temp sensors

Post 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.

Post Reply