This is an old revision of the document!
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.
Aici puneţi tot ce ţine de hardware design:
Schema electrica
Picture of project hardware
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.
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.