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!
- The Arduino MUST pulse the Front Sensor, calculate the math natively, and completely lock the system out for exactly
30 millisecondsto allow the sonic waves to fully die. - It then violently pulses the Rear sensor autonomously!
- 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()andsin()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
FrontDistat angle120, and maps theRearDistat angle120 + 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).