กลับไปหน้ารวมไฟล์
arduino-two-ultrasonic-sensor-radar-360-degrees-rotation-216364-en.md

https://www.youtube.com/watch?v=KeK7nlrs7gY&feature=share

We present you the MicroLab Arduino Radar we created in the MicroLab lab. This radar was built by:

1. The mini Arduino pro microprocessor

2. A 2-phased stepper motor of the Microcon (motor) which is set to rotate continuously 360 degrees and switches to on / off mode using a switch

3. A Bluetooth shield for Arduino to achieve microprocessor communication with the computer to transport the code

4. On / off switch

5. Three (3) Lion batteries (3000mAh each) rechargeable to supply power to the engine and microprocessor

6. The Processing 3 software for the visualization of the radar screen

7. The Arduino Software

8. Two 2 ultrasonic distance sensors for Arduino

9. One (1) DRV8825 Stepper Motor Driver Carrier, High Circle

10. Stand base made by 3d printer

We thanks Petr Zverina for making for us the stand base with his 3D printer.

Dual-Acoustic Stereoscopic Rendering: The 360° Radar

A single ultrasonic sensor panning back and forth creates a massive 180-degree blind spot physically and wastes intense chronological time scanning empty space. The Two Ultrasonic Sensor Radar completely eradicates this failure by aggressively deploying a dual-mounted stereoscopic matrix! By gluing two HC-SR04 sensors natively back-to-back upon a continuous rotation servo base, the Arduino pulses BOTH arrays, collecting deep volumetric spatial geometry across an entire 360-degree room natively twice as fast! It funnels this raw hexadecimal sonar data instantly through the USB pipeline directly into a massive Java Processing display mimicking a military sonar console!

Preventing Terminal Acoustic Collision

Firing two 40,000 Hertz sonar pings at the exact same physical millisecond is a catastrophic failure! The bounce from Sensor A will violently enter the microphone of Sensor B natively, ripping the pulseIn() data into absolute chaos!

  1. The Arduino MUST pulse the Front Sensor, calculate the math natively, and completely lock the system out for exactly 30 milliseconds to allow the sonic waves to fully die.
  2. It then violently pulses the Rear sensor autonomously!
  3. The string sent to the PC looks like: "Angle,FrontDist,RearDist" (e.g., 120,54,12).
void loop() {
  for(int angle = 0; angle <= 180; angle++) {  
    radarServo.write(angle); // Sweep the base!
    delay(30);

    int distFront = executeSonarPing(TRIG_F, ECHO_F);
    delay(20); // MANDATORY ACOUSTIC DISPERSAL DELAY!
    
    int distRear = executeSonarPing(TRIG_R, ECHO_R);
    
    // Blast 3D Spatial coordinates heavily to the Serial Pipeline natively!
    Serial.print(angle);
    Serial.print(",");
    Serial.print(distFront);
    Serial.print(",");
    Serial.println(distRear);
  }
}

The GUI Processing Visual Mapping Engine

The Arduino is totally blind; it only sees the math. The Java Processing IDE actually renders the radar map using Cartesian-to-Polar coordinate conversion!

  • The Processing App splits the "120,54,12" string completely apart.
  • It utilizes the trigonometric functions cos() and sin() to mathematically place a brilliant red pixel perfectly on the screen mirroring the dynamic 3D geometry of the bedroom in physical real-time!
  • Because there are two sensors, the Java app simultaneously plots the FrontDist at angle 120, and maps the RearDist at angle 120 + 180 (Angle 300) natively, rendering a flawless 360° map using only a 180° swing!

Deep Scanning Hardware Needs

  • Arduino Uno/Nano (The USB Host Pipeline controller).
  • 2x HC-SR04 Ultrasonic Sonar Modules (Mounted explicitly facing 180-degrees away from each other on a single unified physical axis).
  • SG90 or heavy MG996R Servo (Required to fluidly orchestrate the physical pan-sweep matrices).
  • Processing IDE Application (Running on a connected Desktop PC to compile and render the severe visual trigonometric coordinate plots flawlessly).

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

apps:
  - "1x Processing 3"
  - "1x Arduino IDE"
author: "Microlab_Aigio_Greece"
category: "Sensors & Environment"
components:
  - "2x Ultrasonic Sensor - HC-SR04 (Generic)"
  - "1x Arduino Pro Mini 328 - 5V/16MHz"
  - "1x DC motor (generic)"
  - "1x Driver DRV8825 for Stepper Motors for Theremino System"
  - "3x 3V Lion battery 3000mAh"
  - "1x Arduino MKR1000"
description: "Dual-matrix acoustic tomography! Establish a terrifyingly complex stereoscopic mapping array using opposed HC-SR04 sonar pulses synced physically to a continuous-rotation servo base natively rendering Processing environment coordinates."
difficulty: "Intermediate"
documentationLinks: []
downloadableFiles: []
encryptedPayload: "U2FsdGVkX1/xw/zZH3cGKSs8TIJyC8iIbyBu/aJVeMk/bPGdkaZI7GElu3uJs33TbZcDtJ8GeWqTX4zSJY1MduGN5l9+eCrDU4bZJUHJpIqjom3Yz3mBFRK1Wb+79iPN"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/arduino-two-ultrasonic-sensor-radar-360-degrees-rotation-216364_cover.jpg"
lang: "en"
likes: 23
passwordHash: "ef0862a6abdf92ae03c602d2a1c09db8bb770cf1bcc63c137d7fd61decb9a9a1"
price: 2450
seoDescription: "Arduino Two Ultrasonic Sensor Radar with 360 degrees rotation. Built by MicroLab using 2 Ultrasonic Sensor units and 1 Motor."
tags:
  - "bluetooth"
  - "radar"
  - "robotics"
  - "science & technology"
title: "Arduino Two Ultrasonic Sensor Radar - 360 degrees Rotation"
tools: []
videoLinks:
  - "https://www.youtube.com/embed/KeK7nlrs7gY"
views: 46504