DIY Radar With Ultrasonic Sensor And Chat-GPT Generated Arduino Code | Coders Cafe

preview_player
Показать описание
𝐒𝐮𝐩𝐩𝐨𝐫𝐭 𝐔𝐬 𝐎𝐧
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
𝐌𝐞𝐞𝐭 𝐓𝐡𝐞 𝐂𝐫𝐞𝐚𝐭𝐨𝐫𝐬
Nekhil Ravi (Hardware Development, Narration)
Shebin Jose Jacob (Software Development)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
𝐖𝐞'𝐫𝐞 𝐅𝐚𝐢𝐫𝐥𝐲 𝐒𝐨𝐜𝐢𝐚𝐥 𝐏𝐞𝐨𝐩𝐥𝐞
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
𝐆𝐞𝐚𝐫𝐬 𝐔𝐬𝐞𝐝
Shot On: Canon M50
Microphone: Boya M1
Tripod : DigiTek DTR 520 BH
Software: Adobe Premiere | Adobe Photoshop | Adobe Audition | Adobe After Effects
- - - - -
Music by: INOSSI
- - - - -
Рекомендации по теме
Комментарии
Автор

For a small project, nice work. The ultrasonic sensor emits sound waves, which are mechanical waves requiring a medium for propagation. Therefore, this project essentially functions as sonar. In contrast, radar uses electromagnetic waves, specifically radio waves. If an object is present, the radio waves reflect to the radar, allowing for object detection and distance determination.
In summary, radio waves (electromagnetic waves) can propagate in a vacuum and are limited in water, for example, which is the best option for radar. Unlike sound waves, which can propagate in water but not in a vacuum.

younesd
Автор

Amazing video don't listen to people trying to discourage you.

AllahumaAlFirdaws
Автор

Now, try using two sensors and triagulate the object to generate a "double-axis" position

pablomonteiro
Автор

i think 360 degree serwo, or a motor with spinning sensor is more suitable for this build

kiriolvishnergo
Автор

#include <Servo.h>

const int trigPin = 9; // Trigger pin of ultrasonic sensor
const int echoPin = 10; // Echo pin of ultrasonic sensor
Servo servoMotor; // Servo motor object

void setup() {
Serial.begin(9600); // Start serial communication
servoMotor.attach(8); // Attach servo motor to pin 8
pinMode(trigPin, OUTPUT); // Set trigPin as OUTPUT
pinMode(echoPin, INPUT); // Set echoPin as INPUT
}

void loop() {
for (int angle = 0; angle <= 180; angle += 10) { // Sweep from 0 to 180 degrees
scan(angle); // Perform the scan at the given angle
delay(50); // Small delay for smoother motion
}
for (int angle = 180; angle >= 0; angle -= 10) { // Sweep back from 180 to 0 degrees
scan(angle); // Perform the scan at the given angle
delay(50); // Small delay for smoother motion
}
}

void scan(int angle) {
int distance;
// Move the servo to the specified angle
servoMotor.write(angle);
delay(100); // Delay to allow the servo to reach the position
// Send a short ultrasonic pulse
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
// Read the distance from the ultrasonic sensor
duration = pulseIn(echoPin, HIGH);
// Calculate the distance in centimeters
distance = duration * 0.034 / 2;
// Print the angle and distance to the serial monitor
Serial.print("Angle: ");
Serial.print(angle);
Serial.print(" degrees, Distance: ");
Serial.print(distance);
Serial.println(" cm");
}

ellorord
Автор

I have no idea what's this because am still a beginner but looks cool

RicardoReyes-hlbe
Автор

It’s inaccurate too. You’re just improvising 😅. Cool though.

The sonar wave is also traversal so it’ll get reflected best at shortest reflecting distance to the receiver and not exactly a forward direct since the target isn’t planar.

What you experience is stealth behavior but on a lower resolution. Reflecting the waves away from the receiver is the highest priority 😂❤

rainbowseal
Автор

The sound effects were artificially produced, an ultrasonic sensor and servo motor doesn't sound like that.

Clover
Автор

It's amazing how ChatGPT can do the simplest tasks that you can get done quicker by looking up a tutorial.

vinny
Автор

I honestly discourage people from using chat-gpt because coding is a good skill to have in itself.

esm
Автор

Genious are meteors made to burn to enlight their century. God bless you Brother for sharing your expertise.

cyrillekaouche-psjq
Автор

Now you can see where Aliens are hiding

Cinilkin
Автор

Umm is it alright if I ask you what you did in your bachelors? Because I'm interested in learning such content and am soon getting into an engineering college and looking forward to working hard for a career in Robotics, so that's why asking your qualifications

MNGN
Автор

Not bad! Did you test until what distance it is accurate by any chance?

chriszenker
Автор

Nice toy, but if it works with SOuNd (even if humans can't hear that sound), it is SONar.
RADar works with RADio waves.

olli
Автор

Radars are usually inside a protective white sphere or cone. I wonder how they filter off this protective cocoon from the radar signal?

Ash_G
Автор

All look good on table....but what is the use of this !?. If you do some home or industrial appliance .. it's good

kishorkumarkeekan
Автор

Could work better with infrared but whats the programmed code though

AkanD
Автор

Why it is not covering the full 180 degree??

techwith_Aamir
Автор

Что-то мне подсказывает что это не твоя разработка

fnwrtmc