This is a logging software for measuring and control. With this software you can measure different types of signals and control different types of acturators. This software has also CAN-bus such as regular CAN, SAE J1939. All communications goes over USB. That means that this software is a CAN-bus diagnostic tool as well. When the data is measured, it can later be uploaded to a database and later bring back for plotting the data.
This software has the following
- 8 x PWM NPN-drain with adjustable PWM frequency
- 3 x Analog 0-20mA output
- 12 x 0-20mA 16-bit Single Analog To Digital Converter with programmable gain
- 5 x 0-20mA 16-bit Differential Analog To Digital Converter with programmable gain
- 3 x 16-bit Encoder
- 4 x 0 kHz to 10 kHz Input Capture
- 10 x Digital inputs
- 1 x CAN channel with support for different CAN protocols
- 1 x Database connection
- 1 x USB connection for sending signals between the computer and STM32 microcontroller
- Go to STM32-PLC and build that PCB
- Install MySQL/MariaDB/MSSQL and download the pre-compiled OpenSourceLogger from
pre-compiled
folder.
- QT 6.3.0 and QT Creator
- Download this repository
- Download the MySQL Driver For QT and extract
release\sqldrivers\qsqlmysql.dll
toC:\QT6.3.0\mingw_64\plugins\sqldrivers
- Start the
.pro
project with QT Creator and compile the project withrelease
configuration, not debug configuration. - Make sure that everything is working e.g connect to database and connect to USB.
- If everything is working, then deploy it e.g
c:\QT\6.3.0\mingw_64\bin>windeployqt.exe --release "C:\Users\danie\Documents\GitHub-Workspace\build-OpenSourceLogger-Desktop_Qt_6_3_0_MinGW_64_bit-Release\release\OpenSourceLogger.exe"
Make sure thatOpenSourceLogger.exe
is empty in the folderrelease
. - Then extract
release\sqldrivers\qsqlmysql.dll
from your.zip
file to yoursqldrivers
folder in yourrelease
folder - Extract also the rest of the
.dll
files at the same folder location asOpenSourceLogger.exe
is. Done!
It's the same step for Linux and Mac. Just other extensions of the files.
- MySQL 8
- QT Creator 4.15.1
- QT 6.3.0
- QCustomPlot 2.1.0
Main view window will show the measurements in real time
Control window is the user panel for sending CAN-bus signals or regular control signals
OpenSourceLogger is also an ECU for CAN-bus
But to make this work, you need to connect a to USB and database
Add a new measurement variable
Change the STM32 ADC and PWM prescalar settings
This is the PCB board
SAE J1939 CAN bus protocol
Upload measurement to the datbase
View past measurements
And the results
It's working and I don't have any plans right now to add new functionality(perhaps in the future if it's needed e.g CANopen). Right now everything is working and it will remain like that for now.