How to make a Motion Tracking Robot at Home//Move the Robot Head with obstacle//Arduino Uno Project
HTML-код
- Опубликовано: 27 авг 2024
- In this video I will show you how to make a Motion Tracking Robot at Home. It will track the obstacle and move with it. It is a project of Arduino Uno.You can also make this using Arduino Nano. Ultrasonic Sonar Sensor project
Circuit Diagram and Code: drive.google.c...
Watch the full video.
Below Some useful Crafts Ideas :
How to make a Microphone using old Earphone in 2 minutes||fix and set-up your microphone (computer)!: www.youtube.co....
How to make Money Printer Machine at Home || Very Easy Trick:www.youtube.co....
Water overflow Alarm project //For Water Tank// Save Water//Save Electricity// Very easy & Homemade:www.youtube.co....
Automatic Light On/Off circuit with LDR// Automatic Street light (DIY)//School Project:www.youtube.co....
If you like my video, Please LIKE SUBSCRIBE COMMENT SHARE & click on BELL button.
Follow us on Facebook
Link : / crazy-ideas-
I got this up and running today and it's epic! Thanks for the walk through!
I had a similar idea days before, and i was trying to use a radar like system, so much easier with 2 sensors. Did you tried other angles for a better range ?
Great Work Bro,It just awesome💥
Thank you so much💖
please bro i m not able to understand the circuit please explain the circuit its important
Really Amazing 🤩
Thank you! Cheers!
Hi I have some problem to contact circuit diagram
whats the name of the cable with a white head on it ?
Make a video, how to give code to this step by step. Please 🙏🏻
Ok,Stay tuned🖤
bro nice idea but code open nahai ho raha
Can I use one ultrasonic sensor instead of two ultrasonic sensors?
No
But I will do it, let's wait and see
@@whiskynguyen6059 Good Luck bro, don't forget to share with us
:-( Arduino IDE won't open the sketch
Can please give me details for this?
i cant open the code
#include
Servo myservo;
const int Lin = 10, Rin = 12, Lout = 11, Rout = 13, serv = 9; //setting sensor pins and servo pin
// establish variables for duration
// and the distance result in inches
long Rduration, Lduration, Rinches, Linches;
int threshold = 10; //Sensor threshold in inches
int angle = 80; //Initial angle
boolean debug = false; //Serial communication for debuging. Set to true for serial communication.
void setup() {
// initialize serial communication:
if (debug)
{
Serial.begin(9600);
}
myservo.attach(9); //attach servo to pin 9
}
void loop()
{
//Most of the sensor code has been taken from David Mellis's PING sensor code
//I modified it for a 4 pin sensor as oppsed to the 3 pin sensor
// Give a short LOW pulse beforehand to ensure a clean HIGH pulse:
pinMode(Rout, OUTPUT);
digitalWrite(Rout, LOW);
delayMicroseconds(2);
digitalWrite(Rout, HIGH);
delayMicroseconds(5);
digitalWrite(Rout, LOW);
Rduration = pulseIn(Rin, HIGH);
pinMode(Lout, OUTPUT);
digitalWrite(Lout, LOW);
delayMicroseconds(2);
digitalWrite(Lout, HIGH);
delayMicroseconds(5);
digitalWrite(Lout, LOW);
Lduration = pulseIn(Lin, HIGH);
// convert the time into a distance
Rinches = microsecondsToInches(Rduration);
Linches = microsecondsToInches(Lduration);
if (debug)
{
Serial.print("Left: ");
Serial.print(Linches);
Serial.println(" in");
Serial.print("Right: ");
Serial.print(Rinches);
Serial.println(" in");
}
follow();
}
long microsecondsToInches(long microseconds)
{
// According to Parallax's datasheet for the PING))), there are
// 73.746 microseconds per inch (i.e. sound travels at 1130 feet per
// second). This gives the distance travelled by the ping, outbound
// and return, so we divide by 2 to get the distance of the obstacle.
// See: www.parallax.com/dl/docs/prod/acc/28015-PING-v1.3.pdf
return microseconds / 74 / 2;
}
void follow()
{
if (Linches
@@flinty_video4385 No It will work for 2 sensors
kimg
💖