Trying to talk to the temp sensor #101020015 (version 1.2) from a BBG. seeedstudio.com/depot/Grove- … p-774.html
From what I understand, I2C-0 is internal, and I2C-1 is the one exposed as the left-hand-side Grove interface.
I hooked up the temperature sensor to the left-hand-side grove interface, and then tried to figure out the I2C address by running this:
sudo i2cdetect -y -r 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- UU UU UU UU -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
No matter grove twig I hook up, I don’t see anything new show up when running i2cdetect. Is there something else I must do first?
I then thought maybe it doesn’t show up on i2cdetect, so I tried to run this:
for i in {3..119}
do
echo "Looking at I2C-1 address ${i}:"
sudo i2cdump -f -y 1 ${i} b
done
But again, I didn’t find anything in the output. Anyone know if i2cdump, i2cset, i2cget, and i2cdetect can be used from bash scripts to interface with Grove I2C twigs?