Your SlideShare is downloading. ×
Alc Sensor
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Alc Sensor

767
views

Published on

Published in: Health & Medicine, Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
767
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
15
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. MQ-3 Alcohol Gas Sensor Nick Hardeman | Bruce Drummond | Katherine Lee
  • 2. A B
  • 3. The guts
  • 4. 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);
    • }
  • 5. User testing