#Robotcar
HTML-код
- Опубликовано: 23 май 2021
- #Robotcar #homemaderobotcar #DiyProject
Hello friends is video me maine ek robot car bnana btaya hai .ki aap kaise ek robot car bna sakte hai hai .
Instagram link:- / experiment_maan
Buy Links :-
Arduino uno board :- www.amazon.in/dp/B08KM4649N/r...
Bo Motor with wheel :- www.amazon.in/dp/B07Y6K1NMB/r...
Ultrasonic sensor:- www.amazon.in/dp/B01I1ZTPJC/r...
9g sarvo motor :- www.amazon.in/dp/B00MTFFAE0/r...
L293D Motor Driver :- www.amazon.in/dp/B01NA82N88/r...
Male Hedar pin :- www.amazon.in/dp/B07KXW8QHZ/r...
Female to Female Jumper Wire :- www.amazon.in/dp/B07SWSC83J/r...
#youtuber
#summerexperiment
#technicalind
#technicalsokil
#technicalninja
#Diybuilder - Наука
very nice explanation
// Before uploading the code you have to install the necessary library//
//AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
//NewPing Library github.com/eliteio/Arduino_New_Ping.git //
//Servo Library github.com/arduino-libraries/Servo.git //
#include
#include
#include
#define TRIG_PIN A0
#define ECHO_PIN A1
#define MAX_DISTANCE 100
#define MAX_SPEED 150 // sets speed of DC motors
#define MAX_SPEED_OFFSET 20
NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE);
AF_DCMotor motor1(1, MOTOR12_64KHZ);
AF_DCMotor motor2(2, MOTOR12_64KHZ);
AF_DCMotor motor3(3, MOTOR34_64KHZ);
AF_DCMotor motor4(4, MOTOR34_64KHZ);
Servo myservo;
boolean goesForward=false;
int distance = 100;
int speedSet = 0;
void setup() {
myservo.attach(10);
myservo.write(115);
delay(2000);
distance = readPing();
delay(100);
distance = readPing();
delay(100);
distance = readPing();
delay(100);
distance = readPing();
delay(100);
}
void loop() {
int distanceR = 0;
int distanceL = 0;
delay(40);
if(distance=distanceL)
{
turnRight();
moveStop();
}
else
{
turnLeft();
moveStop();
}
}
else
{
moveForward();
}
distance = readPing();
}
int lookRight()
{
myservo.write(50);
delay(500);
int distance = readPing();
delay(100);
myservo.write(115);
return distance;
}
int lookLeft()
{
myservo.write(170);
delay(500);
int distance = readPing();
delay(100);
myservo.write(115);
return distance;
delay(100);
}
int readPing() {
delay(100);
int cm = sonar.ping_cm();
if(cm==0)
{
cm = 250;
}
return cm;
}
void moveStop() {
motor1.run(RELEASE);
motor2.run(RELEASE);
motor3.run(RELEASE);
motor4.run(RELEASE);
}
void moveForward() {
if(!goesForward)
{
goesForward=true;
motor1.run(FORWARD);
motor2.run(FORWARD);
motor3.run(FORWARD);
motor4.run(FORWARD);
for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
{
motor1.setSpeed(speedSet);
motor2.setSpeed(speedSet);
motor3.setSpeed(speedSet);
motor4.setSpeed(speedSet);
delay(5);
}
}
}
void moveBackward() {
goesForward=false;
motor1.run(BACKWARD);
motor2.run(BACKWARD);
motor3.run(BACKWARD);
motor4.run(BACKWARD);
for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
{
motor1.setSpeed(speedSet);
motor2.setSpeed(speedSet);
motor3.setSpeed(speedSet);
motor4.setSpeed(speedSet);
delay(5);
}
}
void turnRight() {
motor1.run(FORWARD);
motor2.run(FORWARD);
motor3.run(BACKWARD);
motor4.run(BACKWARD);
delay(500);
motor1.run(FORWARD);
motor2.run(FORWARD);
motor3.run(FORWARD);
motor4.run(FORWARD);
}
void turnLeft() {
motor1.run(BACKWARD);
motor2.run(BACKWARD);
motor3.run(FORWARD);
motor4.run(FORWARD);
delay(500);
motor1.run(FORWARD);
motor2.run(FORWARD);
motor3.run(FORWARD);
motor4.run(FORWARD);
}
Bro mujhe code chaiye
Plz dedo
@@technicalmaanrawat5269
Ye program alag hai sir jo aap use kiye Hai video me
Aaisa kyu sir
@@technicalmaanrawat5269 This is that code
This is that code
Very beautiful n creative work...keep sharing more interesting videos
U r very talented person ....u make this easily at home
good sharing dear
amazing video...
always likes ur video keep it up
amazing project superb idea
Very beautiful and creative work
This is beautiful piece of diy project
always love to watch your creative video .. like this robot car
Very amazing work done by you
well done, amazing creativity
wow it is really amazing diy robot car ...i will try this for my niece
Outstanding work👌👌👍
This is an amazing work
creative. i am impressed
well explained thanks for sharing
u r way too creative and intelligent
Amazing work
Done with such an perfection......these is really treat to see
Nice, you made look so easy
You are so creative 👍👍👍
Amazing work....
Awesome work
Khup chan car banvli tumhi
बहुत सुन्दर प्रस्तुति
great job keep it up
wow great... u r very creative have logical mind....keep it up
addorable you are great man
Oho very gud will try this weekend
Nice voice and nice work
Wow nice video 👍
Really Nice,WOW!
It has really helped me complete my project. Thanks.
please can you type the codee
Bro can u give me the code for this project
Code kon dega ?
Bhai code comment box me pin kiya hua hai.
@@technicalmaanrawat5269
Bhai code nahi mil rah hay
. Please tell code
very well explained
always likes ur video keep it up
Is it mandatory for me to connect the stepper motor driver to use the ultrasonic sensor or I can use a remote control cars mother board? To replace the stepper motor driver?
Well done
brilliant bro
thank you bro you were the who helped me finnaly
Ok I will try surely
Superb video 👍👍👍
vg
Really useful video
❤ very nice 👍👍👍👍👍👍👍
Perfect
you always come with very creative and amazing mind.. amazing robot car
Please give me code
Comment box me diya hai
This is amazing work and well explained
You always come with creative ideas
Thanks 🙏🙏🙏❤❤❤
Thanks bhai
👍👍👍👍👍👍
Very nice project. But Can we add the buzzer in this circuit?
Yes, of course
👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍
How Is the car moving sideways.
Wow, very cool 👍✌️👌 thanks my friend
👋👋👋
Thanks bro
@@technicalmaanrawat5269 where's the code link..plz share...
Bhai vehicle ke upper new project banao
Sir g programing ky code kaha sa liay han
Given the code in discription
Sir aapne cod io copy kia hh aan vo coda kaha de milega jo aapne copy kia h
where will i find the code
plls tell
sir can i get code of ardino uno
Brother mobile phone se keshe uploading kre
Sir iske code ka direct pdf laga diniye n description box me jisse aur help ho pls sir
How to speed up the moter
Can you share code
Can we use 9V battery instead of leathim iron battery
9v battery ko used kar sakte hai but wo discharg bhut jaldi ho jayegi
Can you please give code link for me
Court kahan se La rahe hain bataiye
Bhai ya samaan khaya pa milta hai please batao
isko kaise order kare
Sir kya mai eske code ko mobile se bhi karsaktahun mere pass laptop nhi hai bhai mai kya karu pls reply
Where can I get code from
Is this code still working ?
is it can also used as
computer modal
Sir aap kisi bhi computer and laptop se code upload Kar sakte ho
Bro code konsa dalna hai
Hey is this type called electronic engineering?
It's called mechatronics
Sir mujhe ye sara saman chahiye
Hi.. great work ...Where can I get the Auduino code?
😂
Please sir given code in discription
Bro ye project mujhe bhi banana hai kya app mujhe help kar sakte hai please bro help me 🙏
Hlo bhai esa phone se connect kar ke chalana sikhiye
Hello it was really perfect !
But where can we get the code for the Arduino?
Sand your mail id
@@technicalmaanrawat5269 bhai muja b code chaiye ye
Comments me diya hai bro
Bro you can send me what program you kept in Arduino i want fast
Bro insta me muje msg kijiye
Provide the link
Hlo bro mujhe ultrasonic sencer ka code dedo plz bhai
Battery खरीदने का भी लिंक भेज दीजिए
I got stuck at one point though . It doesn't work when just connected to battery . The light on the top circuit board glows with battery but the light is off on the bottom board . When he connects the USB cable to bottom circuit board , the light is on and the motors , sensor starts rotating . Why it doesn't work with just the battery . Is I am missing any step ?
#include
#include
#include
#define TRIG_PIN A0
#define ECHO_PIN A1
#define MAX_DISTANCE 100
#define MAX_SPEED 150 // sets speed of DC motors
#define MAX_SPEED_OFFSET 20
NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE);
AF_DCMotor motor1(1, MOTOR12_64KHZ);
AF_DCMotor motor2(2, MOTOR12_64KHZ);
AF_DCMotor motor3(3, MOTOR34_64KHZ);
AF_DCMotor motor4(4, MOTOR34_64KHZ);
Servo myservo;
boolean goesForward=false;
int distance = 100;
int speedSet = 0;
void setup() {
myservo.attach(10);
myservo.write(115);
delay(2000);
distance = readPing();
delay(100);
distance = readPing();
delay(100);
distance = readPing();
delay(100);
distance = readPing();
delay(100);
}
void loop() {
int distanceR = 0;
int distanceL = 0;
delay(40);
if(distance=distanceL)
{
turnRight();
moveStop();
}
else
{
turnLeft();
moveStop();
}
}
else
{
moveForward();
}
distance = readPing();
}
int lookRight()
{
myservo.write(50);
delay(500);
int distance = readPing();
delay(100);
myservo.write(115);
return distance;
}
int lookLeft()
{
myservo.write(170);
delay(500);
int distance = readPing();
delay(100);
myservo.write(115);
return distance;
delay(100);
}
int readPing() {
delay(100);
int cm = sonar.ping_cm();
if(cm==0)
{
cm = 250;
}
return cm;
}
void moveStop() {
motor1.run(RELEASE);
motor2.run(RELEASE);
motor3.run(RELEASE);
motor4.run(RELEASE);
}
void moveForward() {
if(!goesForward)
{
goesForward=true;
motor1.run(FORWARD);
motor2.run(FORWARD);
motor3.run(FORWARD);
motor4.run(FORWARD);
for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
{
motor1.setSpeed(speedSet);
motor2.setSpeed(speedSet);
motor3.setSpeed(speedSet);
motor4.setSpeed(speedSet);
delay(5);
}
}
}
void moveBackward() {
goesForward=false;
motor1.run(BACKWARD);
motor2.run(BACKWARD);
motor3.run(BACKWARD);
motor4.run(BACKWARD);
for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
{
motor1.setSpeed(speedSet);
motor2.setSpeed(speedSet);
motor3.setSpeed(speedSet);
motor4.setSpeed(speedSet);
delay(5);
}
}
void turnRight() {
motor1.run(FORWARD);
motor2.run(FORWARD);
motor3.run(BACKWARD);
motor4.run(BACKWARD);
delay(500);
motor1.run(FORWARD);
motor2.run(FORWARD);
motor3.run(FORWARD);
motor4.run(FORWARD);
}
void turnLeft() {
motor1.run(BACKWARD);
motor2.run(BACKWARD);
motor3.run(FORWARD);
motor4.run(FORWARD);
delay(500);
motor1.run(FORWARD);
motor2.run(FORWARD);
motor3.run(FORWARD);
motor4.run(FORWARD);
}
Show quoted text
Please tell that which Arduino you had use clone or original? Please tell
Im useing Clone Arduino uno
@@technicalmaanrawat5269 can I buy clone Arduino from offline market? pls tell
Very nice 👍👍👍👍👍🙂🙂👍😢🎉😢😮😮😅😊😊
Hi bro, i like your videos very much.
I really need your help. I have got all the parts. I am making the same car for my science Exhibition. Pls help me
Ok
How can i talk with you ?
At 8:57 , can we use a female to male wire to connect the trig and echo directly to the holes in the motor driver?
Male Hedar pin
Bro can u send code please
Vai ye car kaise left right move karr rahi hai??Motor ka dierection to front aur back ho rahi hai?Mujhe samaj nahi aa raha hai..BTW your car is very innovative👍👍👍👍
Simpal hai bhai arduino me jo code dala hai or ultrasonic sensor ki vajhe se uske motor kam karte hai
Hlo bro I make this project but servo is not moving and ultrasonic sensor also only motor is moving plz help me I install library from control+shift+I from arduino app plz help me my servo and ultrasonic sensor is in working condition but my car is not working
Please check properly conction
Can it work with 9 volt battery
Nahi bro qki uska amper namaste bhut kam hota hai
What is the coding
Is this code still working
bro please give me the code of the project
Bhyya iski coading kese krnege
Computer se hoga comment box me coding diya hai mainev
How can I get the code
Code ARDUINO?
Sir tell me what is size of cardboard
6×4 inch
Can you send simulation in matlab for this please 😢
Bhai ya saman khaya say milega
Robu.in se