An open API service indexing awesome lists of open source software.

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

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:
![Electrical diagram](https://user-images.githubusercontent.com/96941609/226195805-9b67b911-201d-4230-a40e-2630c4e9acbe.png)