Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Manufacturing process

Servoradar: Arduino-Based Ultrasonic Radar System

Components and supplies

Servoradar: Arduino-Based Ultrasonic Radar System
Arduino UNO
×1
Servoradar: Arduino-Based Ultrasonic Radar System
Ultrasonic Sensor - HC-SR04 (Generic)
×1
Servoradar: Arduino-Based Ultrasonic Radar System
SG90 Micro-servo motor
×1
Servoradar: Arduino-Based Ultrasonic Radar System
Jumper wires (generic)
×1
Servoradar: Arduino-Based Ultrasonic Radar System
Breadboard (generic)
×1

About this project

As we know for detecting satellites, celestial objects, asteroids signals,etc from space we need to have an radar for many purposes. nasa uses many of the radars for our milltary purposes and space purposes.Actually my project is an radar which displays 'object detected' on the serial monitor when a object is in 10cm from the radar. this works using the fundamental of ultrasoundwaves which travels in sonic bursts so we will need an ultrasonic sensor.

Servoradar: Arduino-Based Ultrasonic Radar System

next for the programming and for the execution of the code to make it work we will need Arduino(any board but try using UNO); as per me I think arduino is perfect for the project as it has a great type of data storage and display. While hearing the word display we'll also need to use the serial monitor. now to turn the sensor to spread it's waves and collect back to calculate the distance we'll need servo. now for the communication between the hardware we'll need Jumper wires and breadboard.

Now let's see how it works the ultrasonic sensor send waves and which create an ultrasonic burst of 8 cycles per minute and then reccieve it using the pins then it gives the data to the board which calculates the distance and then upload it in the serial monitor. the servo keeps rotating from 0 degrees to 180 degrees and the arduino keeps calculating the the angle it moved and uploads it on the serial monitor. When the ultrasonic sensor detects that the distance is less than 10 cm so the arduino gets to know that an object and prints "object detected" on the serial monitor.

using this fundamental my arduino servoradar works.

Servoradar: Arduino-Based Ultrasonic Radar System

If you like my radar then please respect my project and if the radar dosen't work properly or there is some mistake you think then please say me in the comments and I will clear the mistake.

Code

  • servoradar code
servoradar codeArduino
the diagram may differ a bit from the code so please try following the code
#include <Servo.h>


Servo myservo;
int Ang = 0;
long duration;
int  distance;
const int trigpin = 8;
const int echopin = 11;

void setup() {


  Serial.begin(9600);
  myservo.attach(3);
  pinMode(trigpin, OUTPUT);
  pinMode(echopin, INPUT);

}

void loop() {

  for (Ang = 0; Ang <= 180; Ang += 1) {
    myservo.write(Ang);
    delay(15);



  } for (Ang = 180; Ang >= 0; Ang -= 1) {
    myservo.write(Ang);
    delay(200);


    digitalWrite(trigpin, LOW);
    delayMicroseconds(2);
    digitalWrite(trigpin, HIGH);
    delayMicroseconds(15);
    digitalWrite(trigpin, LOW);



    duration = pulseIn(echopin, HIGH);
    distance = duration * 0.034 / 2;



    Serial.println("Distance");
    Serial.println(distance);
    Serial.println("Angle");
    Serial.println(Ang);

    if (distance <= 10)
      Serial.println("object detected");







  }
}

Schematics

connect the following

Sensor Arduino
VCC - 5V
trigpin - 8
echopin - 11
gnd - gnd

servo Arduino

positive pin - 5V
negative pin - gnd
pin - 3

please follow the aboveServoradar: Arduino-Based Ultrasonic Radar System

Manufacturing process

  1. Mastering CMMS Training: Practical Planning Tips for Success
  2. COVID-19 Detector: Responding to the Crisis with Innovative Technology
  3. Understanding Gantries: Types, Uses, and Relocation Tips
  4. Is a Gearbox Replacement Necessary? Expert Guidance & Cost-Effective Repairs
  5. Do Resin 3D Printers Require Supports? Find Out Now
  6. Understanding Office Maintenance: Key Tasks & Outsourcing Benefits
  7. Professional CNC Milling Solutions for Precision Parts
  8. Electric Pipe Bender – Precise EMT & Rigid Conduit Flexibility
  9. Benefits of Using a Mechanical Ironworker for Precision Metal Fabrication
  10. Why Beverage Robots Are Essential for Modern Hospitality