https://github.com/dorstern3/radar
Radar Project
https://github.com/dorstern3/radar
c driver stm32
Last synced: over 1 year ago
JSON representation
Radar Project
- Host: GitHub
- URL: https://github.com/dorstern3/radar
- Owner: dorstern3
- Created: 2023-03-10T10:06:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-26T15:02:41.000Z (over 3 years ago)
- Last Synced: 2025-01-29T07:30:31.577Z (over 1 year ago)
- Topics: c, driver, stm32
- Language: C
- Homepage:
- Size: 34.5 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Radar Project
## View:
- ### Video:
https://user-images.githubusercontent.com/96941609/227784577-06cc01fa-d5b8-4542-8d52-3a0b3c459464.mp4
- ### Photos:
## Description:
In the project, I used the **STM32G431RB Processor** which activates the **Servo motor** that performs a 180-degree scan when mounted on it is an **HC-SR04 ultrasonic sensor** which, during the scanning process, measures the distance of the object and transmits it in two different ways at the same time.
One way is through a **16X2 LCD screen** connected via **I2C communication**.
The second way is through a **GUI** connected by **UART communication**, which receives a string of angle and distance and displays it in the form of a radar display
In addition, the **GUI** detects with the help of the **HC-SR04 ultrasonic sensor** when an object is or is not present in front of it.
The process of processing the distance of the **HC-SR04 sensor** is carried out using **Timer 1** which measures the width of the pulse and is received by the **ECHO** pin which is responsible for receiving the echo and stopping the stopwatch.
According to the formula: Distance = (Time x SpeedOfSound) / 2.
The **TRIG** pin is responsible for sending the sound detector and starting the timer.
In addition, the **Servo motor** is controlled by **Timer 2** which is responsible for changing the pulse width.
## Electrical diagram:
