กลับไปหน้ารวมไฟล์
radar-or-sonar-which-one-is-correct-29db5c-en.md

Perception Physics: Building a DIY Sonar Scanner

The line between Radar and Sonar is often blurred in hobbyist electronics, but the physics behind them are world-apart. This project utilizes an Arduino Nano and an HC-SR04 Ultrasonic sensor to create a functional room-scanning sonar, while diving into the scientific distinctions of remote sensing.

The Science of Ranging: Radar vs. Sonar

  • Radar (Radio Detection and Ranging): Utilizes electromagnetic (radio) waves. It operates at the speed of light and can penetrate through glass, clouds, and non-conductive materials.
  • Sonar (Sound Navigation and Ranging): Utilizes mechanical pressure (sound) waves. Because sound travels much slower (~340 m/s in air), it allows microcontrollers like the Arduino to easily measure the "Time of Flight" (ToF) for the echo to return.
  • Ultrasonic Perception: The HC-SR04 emits an "Ultrasonic" pulse (40kHz), which is above the range of human hearing but behaves identical to standard sound waves, bouncing off solid objects to reveal their range and horizontal angle.

Dynamic Scanning with Processing

To transform raw distance data into a visual map, the project uses the Processing software environment:

  1. Servo Integration: A micro-servo rotates the ultrasonic sensor in a 180-degree arc.
  2. Serial Coordination: For every degree of rotation, the Arduino sends a string (e.g., "120,45.") containing the angle and the detected distance to the PC via USB.
  3. Visual Plotting: The Processing script receives this data and draws a "Circular Sweep" interface. Detected objects appear as red blips on a green radar-style grid, providing a real-time visualization of the room's layout.

Practical and Educational Utility

This system is an excellent prototype for Autonomous Mobile Robots (AMRs). By understanding the limitations of sonar (like signal absorption from soft surfaces) and the advantages of ultrasonic mapping, developers can better program robots to navigate complex, cluttered environments without physical contact.

Hello everyone in this video we build something cool but the problem is what should we name it Radar or Sonar ? comment for me down below.

full tutorial on my youtube channel

what you need :

1. Arduino

2. SRF05

3.micro servo

other...

What is sonar ?

Sonar(originally an acronym for sound navigation ranging) is a technique that uses sound propagation (usually underwater, as in submarine navigation) to navigate, communicate with or detect objects on or under the surface of the water, such as other vessels.

Subscribe to my youtube channel

Follow me on instagram

What is radar ?

Radar is a detection system that uses radio waves to determine the range, angle, or velocity of objects. It can be used to detect aircraft, ships, spacecraft, guided missiles, motor vehicles, weather formations, and terrain.

Subscribe to my youtube channel

Follow me on instagram

What is ultrasonic ?

ultrasonic sensors measure distance by using ultrasonic waves.
The sensor head emits an ultrasonic wave and receives the wave reflected back from the target. Ultrasonic Sensors measure the distance to the target by measuring the time between the emission and reception.

so after all this whats your Conclusion ?

what we build !?

Subscribe to my youtube channel

Follow me on instagram

ข้อมูล Frontmatter ดั้งเดิม

title: "Radar or Sonar - Which One Is Correct?"
description: "Build your sonar at home!"
author: "CiferTech"
category: ""
tags:
  - "sonar"
  - "radar"
  - "ultrasonic"
  - "arduino"
views: 2752
likes: 5
price: 699
difficulty: "Intermediate"
components:
  - "1x Ultrasonic Sensor - HC-SR04 (Generic)"
  - "1x Arduino Nano R3"
tools: []
apps:
  - "1x Arduino IDE"
  - "1x Processing"
downloadableFiles: []
documentationLinks: []
passwordHash: "9022fc728e2a08d6e6b0559957ffc026c6351332c33dcb35c574700e9f951dee"
encryptedPayload: "U2FsdGVkX18w2MHnEb8ipB66rtIRZrUGPX69/roZUk5k7FcznFsEMOvp+jHVRJgN9TwnGhULkSnfREaw1A4EY1hnJtFsEbe40Wp6ttBo08VQhbHL7zw3y2Aq40dWM2Md"
seoDescription: "Learn how to build a Sonar at home and understand the difference between Radar and Sonar in this Arduino project."
videoLinks:
  - "https://www.youtube.com/embed/dhgLLg8os6A"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/radar-or-sonar-which-one-is-correct-29db5c_cover.jpg"
lang: "en"