: How to read Raspberry Pi i/o pin diagram (GPIO pin graph) You could visit the article for your referenc if you want to learn more about the raspberry pi IO port. Pay more attention to the anode and cathode, otherwise it would burnout your raspberry pi board and sensor.You can connect the GND of the sensor to OV, VCC to 3.3V. In additon, there is a adjustable resistor to change the sensor sensitivity. When the CO gas is detected by sensor, the signal light turns on and the digital signal output the low-level valtage. The MQ-2 sensor can output the analog and digital signal when the work voltage is 2.5V-5V. MCP3008 as ADC chip is very common and recommended highly. As only the digital signal can be processed by raspberry pi, we need to add a analog to digital converter (ADC) to process the analog signal from MQ-2 sensor.It can detect the smoke in the air according to the valtage value.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |