Things used in this project

Hardware components:
A000066 iso both
Arduino UNO & Genuino UNO
×1
51gzz5eu9pl. sx425
Ultrasonic Sensor - HC-SR04 (Generic)
×1
Rg srv180 a
RobotGeek 180 Degree Robot Servo
×2
11026 02
Jumper wires (generic)
×1
Software apps and online services:
Ide web
Arduino IDE
Vs2015logo
Microsoft Visual Studio 2015
Hand tools and fabrication machines:
pipe
Hy gluegun
Hot glue gun (generic)

Custom parts and enclosures

EXE File
Download the EXE file from here
circular_draw_qP2ROsoPds.rar

Schematics

Circuit Diagram
Radar bb 7lhwgt0c86
Circuit Diagram
Radar pcb xzelmr8iaj
Circuit Diagram
Radar schem achq4xoes5

Code

Servo ControlC/C++
This code on C++ is for control the servo and should be upload to Arduino
#include <Servo.h>

Servo Down;
Servo Up;
const int trigPin = 9;
const int echoPin = 10;

long duration;
int pos = 0;
int pos2 = 0;
int distance;
int _degrees;
void setup() {
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT); 
 Down.attach(2);
 Up.attach(3);
Serial.begin(9600); 
}
void loop() {
  Down.write(0);  
  Up.write(0);  
   for (pos = 0; pos <= 180; pos += 1) {
    Down.write(pos);
    _degrees = pos;
    dis();              
    delay(50);                       
    if (pos == 180){
         for (pos2 = 0; pos2 <= 180; pos2 += 1) {
    Up.write(pos2);
    _degrees = pos + pos2;
    dis();            
    delay(50);                       
      }
  }
   }
  for (pos = 180; pos >= 0; pos -= 1) { 
    Down.write(pos);
    Up.write(pos);
    delay(5);                      
  }
}
void dis(){
  digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance= duration*0.034/2;
Serial.print(distance);
Serial.print(",");
Serial.println(_degrees);
  }

Credits

Profile eooucbil68
Alireza Karkon
4 projects • 11 followers
Hey guys! I'm Alireza. I'm a student (Bachelor of Technology)-Computer EngrgTech. I'm C# / C++ / Unity programmer and familiar to Front-End.
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Add projectSign up / Login