RPIEasy and Sensor air MQ4-MQ7-MQ135?

Moderators: grovkillen, Stuntteam, TD-er, enesbcs

Post Reply
Message
Author
angelo67
Normal user
Posts: 10
Joined: 08 May 2018, 21:32

RPIEasy and Sensor air MQ4-MQ7-MQ135?

#1 Post by angelo67 » 01 Feb 2023, 19:41

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

bidrohini
Normal user
Posts: 127
Joined: 03 Nov 2022, 16:24

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

#2 Post by bidrohini » 03 Feb 2023, 08:11

Which Raspberry Pi are you using? Raspberry Pi 4?

angelo67
Normal user
Posts: 10
Joined: 08 May 2018, 21:32

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

#3 Post by angelo67 » 03 Feb 2023, 18:53

Hi,
Yes raspy 4 , and raspy 2

bidrohini
Normal user
Posts: 127
Joined: 03 Nov 2022, 16:24

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

#4 Post by bidrohini » 05 Feb 2023, 07:26

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests