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

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Alc Sensor

789

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
789
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 <ul><li>// Alcohol Sensor </li></ul><ul><li>// LED blink rate controlled by analog input from an alcohol sensor on pin 0 </li></ul><ul><li>int alcVal = 0; </li></ul><ul><li>int alcSensorPin = 0; </li></ul><ul><li>int ledPin = 13; </li></ul><ul><li>void setup() { </li></ul><ul><li>Serial.begin(9600); </li></ul><ul><li>pinMode(ledPin, OUTPUT); </li></ul><ul><li>} </li></ul><ul><li>void loop() { </li></ul><ul><li>alcVal = analogRead(alcSensorPin); </li></ul><ul><li>Serial.println(alcVal); </li></ul><ul><li>digitalWrite(ledPin, HIGH); </li></ul><ul><li>delay(alcVal); </li></ul><ul><li>digitalWrite(ledPin, LOW); </li></ul><ul><li>delay(alcVal); </li></ul><ul><li>} </li></ul>
  • 5. User testing

×