Page 1 of 1

RPIEasy and Sensor air MQ4-MQ7-MQ135?

Posted: 01 Feb 2023, 19:41
by angelo67
I can control with RPIEasy
the sensor air MQ4-MQ7-MQ135 like this :
https://it.aliexpress.com/item/10050016 ... toNFn9MSPx

i connect the sensor on the wemos D1 Mini whit the EspEasy and all is good, i connect all 4 pin (1 to gpio, 1 to A0, 1 to 5V and 1 to GND)
i have de value of "gas" to the A0 pin, and the logical level to Gpio

On Raspberry+RPIEasy I do not know where to connect A0
i connect the gpio27(pinout port to input-pullup)and set device to P001
the sensor work on logical state 0 or 1 and it's ok
but the value of "gas" .... yuo have the solution??

Thank

Re: RPIEasy and Sensor air MQ4-MQ7-MQ135?

Posted: 03 Feb 2023, 08:11
by bidrohini
Which Raspberry Pi are you using? Raspberry Pi 4?

Re: RPIEasy and Sensor air MQ4-MQ7-MQ135?

Posted: 03 Feb 2023, 18:53
by angelo67
Hi,
Yes raspy 4 , and raspy 2

Re: RPIEasy and Sensor air MQ4-MQ7-MQ135?

Posted: 05 Feb 2023, 07:26
by bidrohini
Raspberry Pi 4 has no analog pin. If you want to read any analog value with Raspberry Pi, you will have to use an MCP3008 ADC IC in between.