I made a cup of beer and inside of the cup, there was a foam made of the foam board, which is attached to the servo. In the code I set the threshold to make the servo turn so if the sensor detects a certain amount of alcohol in the air, the servo will turn and the foam is going to go up. Usually, after the sensor detects alcohol, it takes about 30 seconds so if the sensing value is smaller than the threshold, the servo will go back to the initial position and the foam will go down as well.
The orange one is the alcohol sensor.

Left photo is when there is no alcohol in the air or the detected alcohol is smaller than threshold and right one is when the alcohol is detected.

In these photos, you can see the servo under the cup and the foam board that is attached the servo.



7 comments:
Is there a socket that this sensor fits in? I would rather not solder straight onto the pins. Please respond if there is a socket
Hey great explanation of this sensor. I am working on a project using this sensor and this is the best documentation I've seen for it on the net! Keep up the great work, it's really appreciated. Also, Ando - there's a breakout board available at sparkfun electronics. http://www.sparkfun.com/commerce/product_info.php?products_id=8891
Thanx a Million for posting such an excellent rare information.
Thanx once again.
Keep it up.
Have a great day
Hey, nice project. However, I found a few things that need to be corrected:
1) I think the resistor value should be 220ohm or less, not 220k ohm. I was not getting any reading with 220k, but with a 220 I got a very nice range of values. Using the hand sanitizer is a great idea!
2) The heater wires should go to power and ground directly.
3) The signal wire (B) should go to ground through a resistor, and to the analog pin. (In the picture, the heater wire and sensor wire are switched, I think.)
The same circuit will work for the MQ-135 air quality sensor, but with a 10k ohm resistor instead.
I need a simple and appropriate circuit diagram for my project in alcohol sensor.
I need circuit for MQ-3(or 5)sensor.
fine explanation forever good job thanks a lot
Post a Comment