Skip to content

PUT-PTM/STMAlcoFon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STMAlcoFon

Overview

STMAlcoFon is simple breathalyzer project.

Description

In our project we use MQ-3 sensor to detect alcohol in exhaled air and measure it. Measurments will be sent via HC-05 bluetooth module to smartphone to present results (graphs, history, etc). Project will be available for smartphones working on Android and Windows Mobile 10 operating systems. Project will also be available on PCs (Windows 10) thanks to Universal Windows Platform. Bluetooth module and alcohol sensor will be atached to STM32F4 device.

Tools

Android Studio 1.5
Visual Studio 2015 + Windows 10 SDK
CooCox CoIDE
STM Studio

How to run

Download program and .elf file from Release section. Install it. If you install STMAlcoFon on Windows 10 device you must turn on developer mode then install. Before you run, connect peripherals to STM board.
Connect Bluetooth module to STM:
RXD -> PC10 pin
TXD -> PC11 pin
VCC -> 5V pin
GND -> GND pin
Now you can connect MQ-3 sensor:
AOUT (analog output) -> PA3
VCC -> 5V pin
GND -> GND pin
Upload StmAlcoFon.elf to your STM board and thats all. Everything shoul work.

Future improvements

Reconnect to device after comunication problem (in both platforms).
Stop conitnous reading on exit (in UWP platform).
Sign WinAlcoFon to avoid turning on developer mode.

Attributions

Generate chart in android app: https://github.com/PhilJay/MPAndroidChart
Comunication between android and HC-05: https://developer.android.com/guide/topics/connectivity/bluetooth.html

License

MIT - more information on LICENSE file.

Credits

Autors: Leszek Stencel
Tomasz Braczyński
The project was conducted during the Microprocessor Lab course held by the Institute of Control and Information Engineering, Poznan University of Technology.

Supervisor: Michał Fularz