Ultrasonic Radar for air traffic control
18.zip | |
File Size: | 79 kb |
File Type: | zip |
function radar()
hold all
fullFileName = 'C:\Data\March15\18\1.png';
a = imread(fullFileName);
figure(10)
imshow(a);
[m n z]=size(a);
s=serial('com6');
set(s,'BaudRate',9600);
fopen(s);
for i=1:1:20
r=fscanf(s) ;
r=str2num(r)
if(r<15)
j=264+17*r*cos(i*3*pi/180)
k=264+17*r*sin(i*3*pi/180)
figure(10)
hold on
plot(j,k,'*r');
drawnow
end
end
%radar()
fclose(s)
delete(s)
clear s
end
hold all
fullFileName = 'C:\Data\March15\18\1.png';
a = imread(fullFileName);
figure(10)
imshow(a);
[m n z]=size(a);
s=serial('com6');
set(s,'BaudRate',9600);
fopen(s);
for i=1:1:20
r=fscanf(s) ;
r=str2num(r)
if(r<15)
j=264+17*r*cos(i*3*pi/180)
k=264+17*r*sin(i*3*pi/180)
figure(10)
hold on
plot(j,k,'*r');
drawnow
end
end
%radar()
fclose(s)
delete(s)
clear s
end
Male female bug strips
ultrasonic_radar_for_air_traffic_control_receiver.pptx | |
File Size: | 41 kb |
File Type: | pptx |
atc.pptx | |
File Size: | 1477 kb |
File Type: | pptx |
Important links
Project report
AVR studio
Arduino
Matlab 14
Please click here
AtMega8
Ultrasonic sensor
Servo moter
10K resistor quarterwatt carbon film
Thermister
LDR NTC
LED
10uf electrolytic capacitor
16Mhz crystal
FT232
PCB copper clad
28 PIN ic base DIL
Acclerometer
Humidity sensor
10Kpot
feCl3
1mm drill bit
bug connectors
Battery lead acid 1.3AHr
Jumper wire
Charger
Xbee sheilds
Xbee
7805
LCD
Arduino
Matlab 14
Please click here
AtMega8
Ultrasonic sensor
Servo moter
10K resistor quarterwatt carbon film
Thermister
LDR NTC
LED
10uf electrolytic capacitor
16Mhz crystal
FT232
PCB copper clad
28 PIN ic base DIL
Acclerometer
Humidity sensor
10Kpot
feCl3
1mm drill bit
bug connectors
Battery lead acid 1.3AHr
Jumper wire
Charger
Xbee sheilds
Xbee
7805
LCD
#include <LiquidCrystal.h>
#define trigPin 2
#define echoPin 4
#include <Servo.h>
int sensorValue = 0;
int sensorValue1 = 0;
int sensorValue2 = 0;
Servo myservo; // create servo object to control a servo
Servo myservo1; // create servo object to control a servo
int val=0;
LiquidCrystal lcd(11, 12, 8, 7, 6, 5);
void setup() {
myservo.attach(9); // attaches the servo on pin 9 to the servo object
myservo.write(val); // sets the servo position according to the scaled value
delay(15); // waits for the servo to get there
myservo.attach(10); // attaches the servo on pin 9 to the servo object
myservo.write(val); // sets the servo position according to the scaled value
delay(15); // waits for the servo to get there
Serial.begin(9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
lcd.begin(16, 2);
lcd.print(" Welcome ");
lcd.setCursor(0, 1);
lcd.print("Ultrasonic RADAR");
Serial.println("ATC Ultrasonic RADAR");
Serial.println("Project by:");
Serial.println("Kazi Ridwan");
Serial.println("Mirajkar Wasim");
Serial.println("Kumar Prince");
Serial.println("Thankachan Tony");
Serial.println("Guided by:");
Serial.println("Prof. Sweta Waghmare");
delay(3000);
}
void loop() {
sensorValue = analogRead(A3);
lcd.setCursor(0, 0);
lcd.print("Light:");
lcd.print(sensorValue);
lcd.print(" ");
sensorValue1 = analogRead(A4);
lcd.setCursor(0, 1);
lcd.print("Temp:");
lcd.print(sensorValue1);
lcd.print(" ");
delay(1000);
sensorValue2 = analogRead(A5);
lcd.setCursor(0, 1);
lcd.print("Humidity:");
lcd.print(sensorValue2);
lcd.print(" ");
delay(1000);
long duration, distance;
digitalWrite(trigPin, LOW); // Added this line
delayMicroseconds(2); // Added this line
digitalWrite(trigPin, HIGH);
delayMicroseconds(10); // Added this line
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (duration/2) / 29.1;
if (distance >= 200 || distance <= 0){
Serial.println("No air traffic");
}
else {
Serial.print(distance);
Serial.println(" Meters ");
}
}
#define trigPin 2
#define echoPin 4
#include <Servo.h>
int sensorValue = 0;
int sensorValue1 = 0;
int sensorValue2 = 0;
Servo myservo; // create servo object to control a servo
Servo myservo1; // create servo object to control a servo
int val=0;
LiquidCrystal lcd(11, 12, 8, 7, 6, 5);
void setup() {
myservo.attach(9); // attaches the servo on pin 9 to the servo object
myservo.write(val); // sets the servo position according to the scaled value
delay(15); // waits for the servo to get there
myservo.attach(10); // attaches the servo on pin 9 to the servo object
myservo.write(val); // sets the servo position according to the scaled value
delay(15); // waits for the servo to get there
Serial.begin(9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
lcd.begin(16, 2);
lcd.print(" Welcome ");
lcd.setCursor(0, 1);
lcd.print("Ultrasonic RADAR");
Serial.println("ATC Ultrasonic RADAR");
Serial.println("Project by:");
Serial.println("Kazi Ridwan");
Serial.println("Mirajkar Wasim");
Serial.println("Kumar Prince");
Serial.println("Thankachan Tony");
Serial.println("Guided by:");
Serial.println("Prof. Sweta Waghmare");
delay(3000);
}
void loop() {
sensorValue = analogRead(A3);
lcd.setCursor(0, 0);
lcd.print("Light:");
lcd.print(sensorValue);
lcd.print(" ");
sensorValue1 = analogRead(A4);
lcd.setCursor(0, 1);
lcd.print("Temp:");
lcd.print(sensorValue1);
lcd.print(" ");
delay(1000);
sensorValue2 = analogRead(A5);
lcd.setCursor(0, 1);
lcd.print("Humidity:");
lcd.print(sensorValue2);
lcd.print(" ");
delay(1000);
long duration, distance;
digitalWrite(trigPin, LOW); // Added this line
delayMicroseconds(2); // Added this line
digitalWrite(trigPin, HIGH);
delayMicroseconds(10); // Added this line
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (duration/2) / 29.1;
if (distance >= 200 || distance <= 0){
Serial.println("No air traffic");
}
else {
Serial.print(distance);
Serial.println(" Meters ");
}
}
#include <LiquidCrystal.h>
#define trigPin 2
#define echoPin 4
#include <Servo.h>
int sensorValue = 0;
int sensorValue1 = 0;
int sensorValue2 = 0;
Servo myservo; // create servo object to control a servo
Servo myservo1; // create servo object to control a servo
int val1=0;
int val2=0;
LiquidCrystal lcd(11, 12, 8, 7, 6, 5);
void setup() {
myservo.attach(9); // attaches the servo on pin 9 to the servo object
myservo.write(val1); // sets the servo position according to the scaled value
delay(15); // waits for the servo to get there
myservo1.attach(10); // attaches the servo on pin 9 to the servo object
myservo1.write(val2); // sets the servo position according to the scaled value
delay(15); // waits for the servo to get there
Serial.begin(9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
lcd.begin(16, 2);
lcd.print(" Welcome ");
lcd.setCursor(0, 1);
lcd.print("Ultrasonic RADAR");
// Serial.println("ATC Ultrasonic RADAR");
//Serial.println("Project by:");
//Serial.println("Kazi Ridwan");
//Serial.println("Mirajkar Wasim");
//Serial.println("Kumar Prince");
//Serial.println("Thankachan Tony");
//Serial.println("Guided by:");
//Serial.println("Prof. Sweta Waghmare");
delay(3000);
val1=0;
val2=0;
}
void loop() {
sensorValue = analogRead(A3);
lcd.setCursor(0, 0);
lcd.print("Light:");
lcd.print(sensorValue);
lcd.print(" ");
sensorValue1 = analogRead(A4);
lcd.setCursor(0, 1);
lcd.print("Temp:");
sensorValue1=round(sensorValue1*8/1000) +29;
lcd.print(sensorValue1);
lcd.print(" ");
delay(1000);
sensorValue2 = analogRead(A5);
sensorValue2=round(sensorValue2/10);
lcd.setCursor(0, 1);
lcd.print("Humidity:");
lcd.print(sensorValue2);
lcd.print(" ");
delay(1000);
val1=val1+3;
if(val1>180)
{
val2=val2+3;
if(val2>180){
val1=0;
val2=0;
for(int y=180;y<1;y=y-5)
{
val1=0;
val2=0;
myservo.write(y);
myservo1.write(y);
delay(10);
}
myservo.write(val1);
myservo1.write(val2);
}
else
{
myservo1.write(val2);
}
}
else
{
myservo.write(val1); // sets the servo position according to the scaled value
}
long duration, distance;
digitalWrite(trigPin, LOW); // Added this line
delayMicroseconds(2); // Added this line
digitalWrite(trigPin, HIGH);
delayMicroseconds(10); // Added this line
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (duration/2) / 29.1;
if (distance > 15 )
{
// Serial.println("No air traffic");
}
else {
Serial.println(distance);
//Serial.println(" Meters ");
}
}
#define trigPin 2
#define echoPin 4
#include <Servo.h>
int sensorValue = 0;
int sensorValue1 = 0;
int sensorValue2 = 0;
Servo myservo; // create servo object to control a servo
Servo myservo1; // create servo object to control a servo
int val1=0;
int val2=0;
LiquidCrystal lcd(11, 12, 8, 7, 6, 5);
void setup() {
myservo.attach(9); // attaches the servo on pin 9 to the servo object
myservo.write(val1); // sets the servo position according to the scaled value
delay(15); // waits for the servo to get there
myservo1.attach(10); // attaches the servo on pin 9 to the servo object
myservo1.write(val2); // sets the servo position according to the scaled value
delay(15); // waits for the servo to get there
Serial.begin(9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
lcd.begin(16, 2);
lcd.print(" Welcome ");
lcd.setCursor(0, 1);
lcd.print("Ultrasonic RADAR");
// Serial.println("ATC Ultrasonic RADAR");
//Serial.println("Project by:");
//Serial.println("Kazi Ridwan");
//Serial.println("Mirajkar Wasim");
//Serial.println("Kumar Prince");
//Serial.println("Thankachan Tony");
//Serial.println("Guided by:");
//Serial.println("Prof. Sweta Waghmare");
delay(3000);
val1=0;
val2=0;
}
void loop() {
sensorValue = analogRead(A3);
lcd.setCursor(0, 0);
lcd.print("Light:");
lcd.print(sensorValue);
lcd.print(" ");
sensorValue1 = analogRead(A4);
lcd.setCursor(0, 1);
lcd.print("Temp:");
sensorValue1=round(sensorValue1*8/1000) +29;
lcd.print(sensorValue1);
lcd.print(" ");
delay(1000);
sensorValue2 = analogRead(A5);
sensorValue2=round(sensorValue2/10);
lcd.setCursor(0, 1);
lcd.print("Humidity:");
lcd.print(sensorValue2);
lcd.print(" ");
delay(1000);
val1=val1+3;
if(val1>180)
{
val2=val2+3;
if(val2>180){
val1=0;
val2=0;
for(int y=180;y<1;y=y-5)
{
val1=0;
val2=0;
myservo.write(y);
myservo1.write(y);
delay(10);
}
myservo.write(val1);
myservo1.write(val2);
}
else
{
myservo1.write(val2);
}
}
else
{
myservo.write(val1); // sets the servo position according to the scaled value
}
long duration, distance;
digitalWrite(trigPin, LOW); // Added this line
delayMicroseconds(2); // Added this line
digitalWrite(trigPin, HIGH);
delayMicroseconds(10); // Added this line
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (duration/2) / 29.1;
if (distance > 15 )
{
// Serial.println("No air traffic");
}
else {
Serial.println(distance);
//Serial.println(" Meters ");
}
}