Top Banner
MQ-3 Alcohol Gas Sensor Nick Hardeman | Bruce Drummond | Katherine Lee
5

Alc Sensor

Aug 31, 2014

Download

Health & Medicine

klee4vp

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Alc Sensor

MQ-3 Alcohol Gas SensorNick Hardeman | Bruce Drummond | Katherine Lee

Page 2: Alc Sensor

QuickTime™ and a decompressor

are needed to see this picture.

A

B

Page 3: Alc Sensor

The guts

Page 4: Alc Sensor

The code// Alcohol Sensor// LED blink rate controlled by analog input from an alcohol sensor on pin 0

int alcVal = 0;int alcSensorPin = 0;int ledPin = 13;

void setup() { Serial.begin(9600); pinMode(ledPin, OUTPUT);}

void loop() { alcVal = analogRead(alcSensorPin); Serial.println(alcVal); digitalWrite(ledPin, HIGH); delay(alcVal); digitalWrite(ledPin, LOW); delay(alcVal);}

Page 5: Alc Sensor

User testing