HMI (human machine interface) creation for controlling a train's onboard video transmission system using QT-Creator /STM32/I2C/UART/C/C++/STM32.
This project demonstrates how to interface an STM32 microcontroller with an OV7670 camera module using the I2C protocol to capture data. The captured data is then transmitted to a computer via UART. On the computer side, the data is read using QT Creator's QSerialPort module and displayed as an image using QLabel in a C++ application.- Project Title
- Description
- Table of Contents
- Features
- Hardware Requirements
- Software Requirements
- Setup Instructions
- Result
- Interface OV7670 camera with STM32 using I2C protocol
- Transmit captured data to a computer via UART
- Read and process the transmitted data using QT Creator's QSerialPort
- Display the processed data as an image using QLabel in a C++ application
- STM32 board (STM32F030 NUCLEO)
- OV7670 Camera
- UART converter(i used UART2 in this project because it is linked with ST link)
- STM32cudeIDE
- QT_Creator version 5.15.2
- PuTTY
- STM32 and OV7670 Setup:
- Connect the OV7670 camera to the STM32 microcontroller using I2C.
- configure the I2C ssettings in STM32cudeIDE
- Generate and compile the code using the STM32cubeIDE
- UART Communication:
- Configure the UART settings in STM32CubeIDE.
- QT Creator Setup:
- Install QT Creator and set up a new project.
- Add the QTSerialPort module to the project.
- Implement the code to read data from the serial port and display it using QLabel.
there is a problem i encountered :The problem is that the UART protocol cannot transmit all of the image data because its maximum capacity is limited to transmitting character data.