This project consists of two parts. First is software written in C++ based on QT4 libraries. The program is to download data from the serial port and draw on the basis of a graph in real time.
The application was equipped with several essential functions:
- reading of available serial ports
- setting properties of the serial connection
- the ability to draw 4 independent waveforms in real time
- the ability to disable the channel
- AC/DC mode
- signal inversion
- amplify adjustment
- offset adjustment
- choice of colour of the channel
The data given in the program are placed in a form of stream. Here's an example:
Code:
"a231.342\nb4342.23\nc0.0\nd-12.23\n"
Data of each channel start from a prefix in the form of a letter “a”, “b”, “c”, “d” and end with a mark of end of a line “\n”.
Second part of the project consists of two boards. One of them has a 3-axis accelerometer and two gyroscopes while the second board is responsible for processing and transmission of read signals. Accelerometer and gyroscope need a power of 3,3V and the system was designed to communicate with the processor powered by 5V. The board with AVR intended for testing was also built for a 3,3V. Transistors had too low voltage to be open so they were shorted. If you connect the device to the voltage of 5V, the transistors should be disconnected before.
Schemas, pictures and videos:
Link to original thread (useful attachment) –
QuadroPlot - Wykres z portu szeregowego + Acc + Gyro