This is an old revision of the document!


Radar

Introducere

This project is meant to simulate a 2D representation of a radar. The ultrasonic sensor is going to be the emitter and receiver of signals for this project. The sensor is placed onto a servo that moves in a 180 degree arch which allows for somewhat accurate simulation of the real thing. The signals from the sensor go to the Arduino board, which in turn sends the signals to the lcd screen Which acts as our output device, which imitates the look of radar.

The first idea that i started from was from a forum post where someone mentioned a radar being made with an ultrasonic sensor. with someone showing a photo of a sensor and a servo in the comments.

It can be useful by scanning for approaching objects and alerting individuals visually from where the object is coming from and trough audio means, thus grabbing their attention.

Descriere generală

Hardware Design

Aici puneţi tot ce ţine de hardware design:

  1. Arduino uno

  1. LCD ST7735

  1. Ultrasonic sensor

  1. Buzzer
  1. wires

Schema electrica

Picture of project hardware

Software Design

The code for this project is as follows: libraries, declaring the ports that will be used, setup for the LCD and servo. In setup, we give each pin/port its use for each component and give the LCD its initial background colour. The buzz function gives us a way to use a buzzer with any frequency and time of our choosing whenever it is needed in the loop function. In the loop function, the first thing that is done is give the LCD its background elements that make up the interface that the user sees, which is followed by the code for the right rotation of the servo, which includes more visual elements such as the rays used to indicate the distance between the sensor and the object it detects, with it putting a red circle at the end of the line to indicate the exact spot where the object was seen. The left rotation code isn't different from the right rotation code, with it doing essentially the same thing . At last, there is the calc_dis function which calculates the distance from the sensor to the object.

Arduino ide was the main environment in which the code part of the project was made

The libraries that were used for this project were: Servo.h, TFT.h and SPI.h.

Rezultate Obţinute

Care au fost rezultatele obţinute în urma realizării proiectului vostru.

Concluzii

Download

O arhivă (sau mai multe dacă este cazul) cu fişierele obţinute în urma realizării proiectului: surse, scheme, etc. Un fişier README, un ChangeLog, un script de compilare şi copiere automată pe uC crează întotdeauna o impresie bună ;-).

Fişierele se încarcă pe wiki folosind facilitatea Add Images or other files. Namespace-ul în care se încarcă fişierele este de tipul :pm:prj20??:c? sau :pm:prj20??:c?:nume_student (dacă este cazul). Exemplu: Dumitru Alin, 331CC → :pm:prj2009:cc:dumitru_alin.

Jurnal

Puteți avea și o secțiune de jurnal în care să poată urmări asistentul de proiect progresul proiectului.

Bibliografie/Resurse

Listă cu documente, datasheet-uri, resurse Internet folosite, eventual grupate pe Resurse Software şi Resurse Hardware.

Export to PDF

pm/prj2023/avaduva/radar.1685307823.txt.gz · Last modified: 2023/05/29 00:03 by mario.rodina
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0