Skip to content

HMI (human machine interface) creation for controlling a train's onboard video transmission system using QT-Creator /STM32/I2C/UART/C/C++/STM32.

Notifications You must be signed in to change notification settings

Barhoumi-Nawres/Creation-of-a-graphical-interface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project Title :Creation of a graphical interface

HMI (human machine interface) creation for controlling a train's onboard video transmission system using QT-Creator /STM32/I2C/UART/C/C++/STM32.

Description:

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.

Table of Contents:

  • Project Title
  • Description
  • Table of Contents
  • Features
  • Hardware Requirements
  • Software Requirements
  • Setup Instructions
  • Result

Features:

  • 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

Hardware Requirements:

  • STM32 board (STM32F030 NUCLEO)
  • OV7670 Camera
  • UART converter(i used UART2 in this project because it is linked with ST link)

Software Requirements:

  • STM32cudeIDE
  • QT_Creator version 5.15.2
  • PuTTY

Setup Instructions:

  1. 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
  2. UART Communication:
    • Configure the UART settings in STM32CubeIDE.
  3. 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.

Result:

the picture result

NB:

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.

About

HMI (human machine interface) creation for controlling a train's onboard video transmission system using QT-Creator /STM32/I2C/UART/C/C++/STM32.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages