hi reading forum...
buy mq-6 gas sensor , found arduino code.
here know arduino , can translate arduino python code...
or has coded mq-6 stuff?!?!
link:
http://www.instructables.com/id/how-to- ... /?allsteps
thanx,
faramon
buy mq-6 gas sensor , found arduino code.
here know arduino , can translate arduino python code...
or has coded mq-6 stuff?!?!
link:
http://www.instructables.com/id/how-to- ... /?allsteps
code: select all
/* testing mq-2 gas sensor serial monitor suitable detecting of lpg, i-butane, propane, methane ,alcohol, hydrogen or smoke more info: http://www.ardumotive.com/how-to-use-mq2-gas-sensor-en.html dev: michalis vasilakis // date: 11/6/2015 // www.ardumotive.com */ const int gaspin = a0; //gas sensor output pin arduino analog a0 pin void setup() { serial.begin(9600); //initialize serial port - 9600 bps } void loop() { serial.println(analogread(gaspin)); delay(1000); // print value every 1 sec. }
faramon
if want use raspberry pi need buy adc (analogue digital converter).
pi's gpio digital - there no pi equivalent arduino a0 pin.
pi's gpio digital - there no pi equivalent arduino a0 pin.
raspberrypi
Comments
Post a Comment