Windows 10 IoT Core Breathalyzer

Today's Hardware Friday project from Paul DeCarlo seems to be custom made for the Holiday season, doesn't?

Windows 10 IoT Core Breathalyzer

image

Background:

Windows 10 IoT Core was created to build powerful solutions on low-powered devices with the potential to bridge the physical world into the nearly endless power of the cloud.  It offers a world of synergistic opportunity within the Microsoft ecosystem, which includes technologies such as Visual Studio, .NET, and Microsoft Azure.  All of this is available on a variety of devices including the ever popular Raspberry Pi 2, a $35 computer with 1 GB RAM, quad-core processor, 4-port USB hub, and HDMI out.  And get this, all of this comes packed on a machine about the size of a credit card at a little over 1.5 inches thick.  This little computer also boasts a GPIO hub or General Purpose Input / Output.  This GPIO hub can allow you to take readings from the physical world and even perform operations on physical devices that create actions in the real-world.

Okay, you get the picture, big opportunity, small package, can perceive and effect the physical world…  How can this change your life or the world for that matter?

That all depends, what is the problem that you wish to solve?

In this case, I decided to pay attention to a problem that is encountered very often, especially in college campuses and in the realm of night-life entertainment.  Have you ever known someone to have too much to drink to where it might pose a problem for yourself or others?  We have kiosks which will display arcade games and such, but that really just passes the time.  What if we had an internet connected device that could track your alcohol consumption?  We could identify those who are at risk, or even on their way to becoming a risk to themselves and/or others and intervene.

In this project, we will look at creating an internet connected breathalyzer with cloud-based reporting and logging.  From a technical perspective, this project will introduce us to using an analog sensor for detecting alcohol and a standalone LCD screen for prompting a user with instructions.  We will tie information gathered from the sensor up to an external interface that logs results and displays them locally while also storing into an Azure Mobile Service.

You may have heard that Windows 10 IoT Core runs Universal Windows Platform apps, meaning that our code should potentially run across any device that supports the Windows 10 Core APIs including Windows Mobile, Xbox One, Windows 10 desktop and potentially Hololens.   As such, this implies that it should be able to support UWP controls offered by third parties.  We are going to include a charting package from SyncFusion to prove that this is in fact possible.

Note: *Accuracy of this device is not guaranteed.  Any replication of this device should be considered as a novelty and not a substitute for more scientifically accurate or legally acceptable methods of measurement

Software Prerequisites:

Ingredients:

Circuit Layout:...

RPi2 Pinout:...

Connecting the ADC:...

Connecting the MQ2 sensor to the ADC:...

Connecting the 1.8″ TFT Color Display Module:...

Code:

The full project and code is contained as a sample within the Microsoft iot-devices project on GitHub.  You may wish to modify the member variables within MainPage.xaml.cs

Enhancements:...

Modifying this project to support completely different scenarios:...

[Click through to see the complete post]



Tags:

Follow the discussion

  • Oops, something didn't work.

    Getting subscription
    Subscribe to this conversation
    Unsubscribing
    Subscribing

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.