www.joy
-
it.net
Pascalstr. 8 47506 Neukirchen
-
Vluyn
2. COMMISSIONING WITH THE RASPBERRY PI
Raspberry Pi
ADC
MQ4
V. Translator
GND (Pin 6, 14, 9...)
GND
GND (Pin 1)
GND
5V (Pin 2, 4)
VDD
VCC (Pin2)
VCCb
3V (Pin 1, 17)
VCCa
-
-
BCM17 (Pin 11)
-
-
A3
-
B3
-
D0 (Pin 3)
-
A0
Signal (Pin 4)
SCL (Pin 5)
-
-
A2
SDA (Pin 3)
-
-
A1
-
B2
SCL
-
-
B1
SDA
-
Wiring:
This natural gas and me-
thane sensor is an analog
sensor.
Since the Raspberry Pi has
no analog inputs, you
have to use an analog
-
to
-
digital converter. You will
also need a 3V to 5V volt-
age translator.
In this example the ADC
COM
-
KY053 and the Com
-
KY051 voltage translator
from Joy
-
it is used.