![]() The final analog sensor to connect is the LM35 temperature sensor. So pins 1 and 2 connect to 5V, pin 3 connects to CH1 and ground via a 22KΩ resistor and pin4 connects straight to the ground. With the sensor facing up (pins on the underside), the pin directly to the right of the small outcrop is pin 1 and then the numbers increase clockwise around the pin. ![]() I haven't yet worked out how to get specific concentrations, so for now the result from this sensor is a basic percentage level, where 100% is fully saturated. This gas sensor is used for the detection of air contaminants such as hydrogen and carbon monoxide. One side to ground and the other to 3.3V via a 2.2KΩ resistor and CH0. First, connect the LDR as shown in the diagram. We will only use the first 3 (CH0, CH1, CH2), for the LDR, the general gas sensor (TGS2600), and the temperature sensor (LM35). ![]() The pins on the left are the 8 Analogue inputs, numbered 0-7 from top-down. If you'd like to learn a little more about how the chip works here's a great guide to the MCP3008 and the SPI protocol. With the chip facing up, and the semi-circle cutaway on the end furthest from you, the pins on the right all connect to the Raspberry Pi. ![]() This can take up to 8 analog inputs and communicates with the Raspberry Pi via SPI. The first component to get wired up is this MCP3008 analog to digital converter. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |