I already have bmp180 sensor connected to raspberry pi 3b+, now I want to add MQ9 sensor like this https://e-radionica.com/en/mq9-gas-sensor.html
- Is connection straight forward like the bmp180?
- Second question is how to wire mq9 to rpi with already connected bmp180?
-
“Precision” won’t matter much since you will be using the binary HIGH/LOW output as the Pi has no analog input — but in any case discussions about the precision of specific sensors is more appropriate to our larger sibling site, Electrical Engineering (so I have edited that out). – goldilocks♦ yesterday
-
Do you maybe know how high/low outputs are differentiated? – PostarLakogSna yesterday
-
I believe the screw dial (gray circle w/ philips head “X”) controls this, but I could be wrong. – goldilocks♦ yesterday
-
@PostarLakogSna, Ah, let me see. Here is my quick and dirty MQ9 Rpi interface summary: (1) MQ9 is a digital guy, can be adjusted by the heating/timing and loading/sensitivity pots/resistors to trigger High logical alarm signal when gas (CO or flammable) leaking, (2) It is not connected to SPI or I2C bus like BMP180 or other sensors, so, no conflict between BMP and MQ work same time, (3) It is easy to connect MQ9 output pin (directly or after logical level shifting, or adding a chip Schmitt trigger chip to prevent false alarm) to Rpi GPIO pin in input mode. In short, – No worries at all! 🙂 – tlfong01 yesterday
-
@PostarLakogSna, Please let me know if your MQ9 module is similar to mine: imgur.com/gallery/MqXE3CH. or give me the link of yours (same as in your question?). Perhaps I can try to do some engineering experimentation for. MQ9 is a life critical thing, and I am just a friendly home automation hobbyist, so do ask for a professional opinion! 🙂 – tlfong01 yesterday
You can use a Arduino NANO for taking the MQ9 reading. Raspberry pi has no ADC inside so you have to get the value like this. Or use some sort of voltage detector(detects voltage and give us a certain value) that can digitise the values.
-
-
-
I see. So your are talking about the “voltage tester”, like this: How to Use a Non-Contact Voltage Tester 151,527 views 2015may20 youtube.com/watch?v=IsXu6ukQbZI – tlfong01 10 hours ago
-
1Ah yes, Nano’s six 10 bit ADC pins is good a idea to replace ADC MCP3008 or ADS1115. Those Arduino guys should welcome this approach, because no new things need to learn,while MCP3008 is hard to learn. For hobbyist projects, 10 bit resolution, about 1% accuracy should be enough. Other advantages: (1) Arduino shares Rpi’s processing and storage loading, (2) Arduino, if using UART TTL serial, can be placed more than 20 metres from Rpi. Moreover, Rpi4B has 5 onboard UARTs and with a USB hub, can setup more USB to serial UART ports, so more flexible and scalable than MCP3008. – tlfong01 5 hours ago
The BMP180 is a digital device and connects via the I2C bus.
The MQ9 is an analogue device and produces a variable voltage. It can not be directly connected to the Pi.
You need to connect the MQ9 to an ADC (Analogue to Digital Converter) and connect the ADC to the Pi.
ADCs tend to have an I2C or a SPI interface. The choice is yours.
I already have bmp180 sensor connected to raspberry pi 3b+, now I want to add MQ9 sensor like this e-radionica.com/en/… Is connection straight forward like the bmp180? Second question is how to wire mq9 to rpi with already connected bmp180?
Related
Categories: Uncategorized
