I had a very interesting drive home with a friend the other night, she was drunk but we couldn't decide if she was sober enough. If we had some sort of hand held breathalyzer on us then we could of tested her, need less to say we didn't and she drove us both home what seemed like quite drunk. But me being quite drunk as well, didn't mind too much, just looking back on it, it was a really bad idea.
Other uses
Could use this for a drinking game for students
The Code

The Finished Product and Testing
How it works
The code first tells the Arduino board what sensor is attached (gas sensor). The sensor returns a value (in our case we are looking for the gas value of alcohol) when the program detects this value, when the user has blown into the sensor, it runs another mechanism o trigger power to something that is attached. What we originally wanted was to allow a connection with the battery, what we have now decided is a connection with the 5 LED's (3 green 1 amber and 1 red) we had attached.
So it should now allow electricity from the battery to the LED'S. Yet another program would run, different values would light up different light sequences. Green for legally allowed to drive, amber for warning and red for illegal to drive.
Here's the finished product:
Despite a well researched and implemented code, and a fully tested circuit, our home-made breathalyzer was not sensitive enough to detect even an "illegal" amount of alcohol. This was because of the gas sensor we were given was not powerful enough even when I drunk quite a bit and breathed on it for a good 2 minutes. This design would just be practical in any situation or design that we could create, we would need a more sensitive gas sensor. As described by one of the team members: Iain: "you would have to be completely smashed, for it to detect any alcohol on your breath"


No comments:
Post a Comment