RPI - TEMP SENSOR
In this tutorial, we will be building a circuit to connect a temperature sensor to our Raspberry Pi, and writing a program to read the sensor data. The circuit we will build is going to connect to the Raspberry Pi using the GPIO pins. GPIO stands for General Purpose Input/Output. General purpose because all they are is simple connections that can be either high or low, a binary choice. This means we can easily do things that involves binary choices, and it will still be nice and simple to understand what is going on. In this tutorial, we are going to be turning LEDs off and on, and checking whether buttons are being pressed—all very binary actions, which makes them ideally suited for GPIO pins. However, this is not all that GPIO pins can be used for. Once we have built our circuit, the next step is to write a program to read the temperature, and give it to us in a nice format. Step One: Updating the Kernel The first step is to change where our Pi updates from, by editing a text file.
• Sensor de temperatura