Jumpstarting the Raspberry Pi Zero W by Akkana Peck

Jumpstarting the Raspberry Pi Zero W by Akkana Peck

Author:Akkana Peck
Language: eng
Format: epub, mobi
ISBN: 9781680453911
Published: 2017-08-28T04:00:00+00:00


Choosing a Sensor

A wide variety of inexpensive temperature sensors are available that “speak” I2C. Since the chips themselves are tiny, they’re often available mounted on “breakout boards” that make it easy to plug the sensor into a breadboard and wire it to your Raspberry Pi. Many temperature sensors also measure other quantities, such as atmospheric pressure or humidity.

Whichever sensor you choose, you’ll need to figure out how to talk to it from the Pi. Each I2C device has a different address and speaks a slightly different language. The details for each chip are in its datasheet (a PDF that you can find with a web search; for example, search for “Sc70g021 datasheet”), but extracting the details from a datasheet isn’t always easy. I recommend starting with a web search for the chip name plus “python” or even “raspberry pi python” to see if someone has already done that work for you. Ideally, do this before you order a sensor, so you’ll know ahead of time if a sensor is difficult to use with Python on the Pi.

Let’s start with the simple and accurate MCP9808 chip.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.