Hi,
How can I Connect MQ2 Gaz sensor with the Develpoment Kit NRF52840_pca10056
Hi,
How can I Connect MQ2 Gaz sensor with the Develpoment Kit NRF52840_pca10056
I don't have any experience with the sensor in questions, but I did a google search and found this:
https://lastminuteengineers.com/mq2-gas-senser-arduino-tutorial/
It looks like you need to connect 3 pins (I suggest to use gnd, vdd and analog pin). If you flip the nRF52840-DK upside down, you can find that pin P0.03 is labeled with AIN0 (analog input 0).
Then you can program the nRF52840-DK with the SAADC project that can read analog input 0:
https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/nrf_dev_saadc_example.html
Best regards,
Kenneth
Ok thanks,
I already tried with this example but I found a problem in reading the value delivered by the sensor, since I had made the necessary connections but the output values does not change.
is there any command that I must add to read the value from sensor?
I suggest to get a potensiometer first to just check that the reading works as intended, also get a oscilloscope or logic analyzer where you can measure the analog output from the gaz sensor.
Kenneth