+ All Categories

Alc Sensor

Date post: 31-Aug-2014
Category:
Upload: klee4vp
View: 1,418 times
Download: 4 times
Share this document with a friend
Description:
 
5
MQ-3 Alcohol Gas Sensor Nick Hardeman | Bruce Drummond | Katherine Lee
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


Recommended