
MQ/Smoke Sensor with Bpi:Uno32
4th May 2019
Component:
A0 Analog pins
D0 Digital pins
GND GND Vcc 5v In this example, you will read the sensor analog output voltage and when the smoke reaches a certain level, it will make sound a buzzer and a red LED will turn on. When the output voltage is below that level, a green LED will be on.
- Bpi:Uno 32
- MQ sensor
- Arduino IDE
A0 Analog pins
D0 Digital pins
GND GND Vcc 5v In this example, you will read the sensor analog output voltage and when the smoke reaches a certain level, it will make sound a buzzer and a red LED will turn on. When the output voltage is below that level, a green LED will be on.
Code Image :