Hardware Reference
In-Depth Information
Solution
The TMP102 sensor is a common digital temperature sensor that uses a standard I 2 C-based
serial protocol.
To make this recipe, you will need:
▪ Breadboard and jumper wires (see “Prototyping Equipment” )
▪ Two 4.7 kΩ resistors (see “Resistors” )
▪ TMP102 temperature sensor (see “Integrated Circuits” )
Wire the TMP102, as shown in Figure 2-18 .
Figure 2-18. Wiring an I 2 C TMP102 temperature sensor
There are two I 2 C buses brought out to the headers. Figure 2-19 shows that you have wired
your device to I 2 C bus 2 , but watch out: the buses aren't always numbered the same. When
you work with BoneScript, they are numbered 1 and 2 , but if you work from the Linux
command line, they are numbered 0 and 1 . Confusing, huh?
Search WWH ::




Custom Search