GithubHelp home page GithubHelp logo

matii178 / lie-detector Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 426 KB

Lie Detector is a desktop app written in Qt Creator in C++. It allows the user to communicate with hardware via serial port and display real time data on various plots.

License: MIT License

QMake 0.04% C++ 99.96%

lie-detector's Introduction

Lie Detector

Lie Detector is a desktop GUI app written in Qt Creator. It was created to display real time data gathered by STM32F411RE microcontroller as a part of lie detector project.

Its specific design enables the user to search for connected via serial port devices, open port with given parameters and read/transmit data.

lie_detector

First Window - Serial port connection menu

mojGif

After starting application first window pops up.

It contains 5 user buttons, one dialog window, and one dialog bar.

  • 'Search for available devices' - Refreshes the list of connected devices and enables to choose the specific one.
  • 'Connect with selected port' - Tries to connect with selected device. If successful displays a message on dialog window.
  • 'Disconnect' - Disconnects and closes already opened port.
  • 'Try connection' - Send 1 byte of data (0b10100101) via opened port. (in my application I used it to blink with diode to signalize connection)
  • 'START' - It proceeds to open main plot window.

Almost every performed action is followed up by various notification displayed on dialog window. For example if user tries to access unaccesable port it will display "The serial port was unreachable" message.

After clicking the start button, main window opens up.

Second Window - Real time data presentation

lie_det

At first it is completely empty.

Once again, there are 5 user buttons on the right side.

  • 'Pause' - Pauses the plots.
  • 'Resume' - Starts or resumes displaying the data being sent.
  • 'Clean' - Completely cleans the plots.
  • 'Set mark' - Marks specific time moment with a red line.
  • 'Save to File' - Enables to save already displayed data as a .csv file.

As an example, below is presented approx. 18 seconds of gathered data. The window slides to the right as new data arrives presenting only 15 seconds of latest data points.

There are also 2 markers being visible at 11th and 17th second.

Saved .csv data file example

After saving data as .csv file, one may use it with another software to analyse it. Data is saved in this format: time, 1st plot data (top one), 2nd plot data (middle plot, blue color), 2nd plot data (middle plot, red color), 3th plot data (bottom one), marker ('1' if marked at that time). below is an example of aforementioned .csv file. in line 14720 you can see marked spot ('1' occurs in 6th column) image

lie-detector's People

Contributors

matii178 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.