Alc Sensor
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Alc Sensor

on

  • 1,458 views

 

Statistics

Views

Total Views
1,458
Views on SlideShare
1,458
Embed Views
0

Actions

Likes
0
Downloads
14
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Alc Sensor Presentation 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