Hi, today I am going to show you how to make an Arduino alcohol concentration meter yourself.
Like my last project, I am sorry about my English.
This instructable I had translated from: http://arduino.vn/bai-viet/720-huong-dan-lam-may-d...
I had the agreement of the author, if you want to learn more, go to the link above.
OK, let's start right now.
Step 1: Prepare Materials
Here is what you need:
- An Arduino Uno R3.
- A module MQ3.
- A spring.
- A piece of plastic (thin and hard one).
- 2 LED light (1 red and 1 green).
- A water pipe (fit to your mouth).
- Ultra Fire battery.
Step 2: Wire Connection
You connect like this photograph, connect the green LED with pin number 12 and the red one with pin number 13.
But note: you must replace the ones shown above BUTTON springs mounted with a thin piece of plastic and put into tube or bottle to his mouth when we blow air in and push the springs move closer and touch the bar iron like we're pressing, why do so? Because to make sure you have gas blowing into the sensor.
The springs and their iron segments do this, you take a piece of noise on the sensor to glue the candle around for several opaque sealed and have three holes when blowing air to escape.
Step 3: Program Arduino Code
You copy and paste this:
int mq3 = A0;
int button = 11;
int status_mq3 = analogRead(mq3);
int status_button = digitalRead(button);
if ((status_button == HIGH ) && (status_mq3 < 100 ))
if ((status_button == HIGH) && ( status_mq3 > 100 ))
Good luck !!!