#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
always love to watch your creative video .. like this robot car
amazing project superb idea
well done, amazing creativity
This is beautiful piece of diy project
Outstanding work👌👌👍
Very beautiful n creative work...keep sharing more interesting videos
Very amazing work done by you
wow it is really amazing diy robot car ...i will try this for my niece
Very beautiful and creative work
good sharing dear
amazing video...
always likes ur video keep it up
U r very talented person ....u make this easily at home
creative. i am impressed
well explained thanks for sharing
Amazing work....
This is an amazing work
Amazing work
addorable you are great man
Awesome work
Oho very gud will try this weekend
You are so creative 👍👍👍
u r way too creative and intelligent
wow great... u r very creative have logical mind....keep it up
Nice, you made look so easy
great job keep it up
बहुत सुन्दर प्रस्तुति
Khup chan car banvli tumhi
Nice voice and nice work
Really Nice,WOW!
very well explained
always likes ur video keep it up
Done with such an perfection......these is really treat to see
brilliant bro
Wow nice video 👍
thank you bro you were the who helped me finnaly
Ok I will try surely
Well done
Superb video 👍👍👍
vg
Perfect
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
Really useful video
❤ very nice 👍👍👍👍👍👍👍
You always come with creative ideas
you always come with very creative and amazing mind.. amazing robot car
Thanks 🙏🙏🙏❤❤❤
This is amazing work and well explained
Thanks bhai
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?
👍👍👍👍👍👍
Please give me code
Comment box me diya hai
Wow, very cool 👍✌️👌 thanks my friend
👋👋👋
Thanks bro
@@technicalmaanrawat5269 where's the code link..plz share...
👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍
Bhai vehicle ke upper new project banao
Given the code in discription
Can you share code
Very nice project. But Can we add the buzzer in this circuit?
Yes, of course
How Is the car moving sideways.
Sir g programing ky code kaha sa liay han
Very nice 👍👍👍👍👍🙂🙂👍😢🎉😢😮😮😅😊😊
Court kahan se La rahe hain bataiye
isko kaise order kare
sir can i get code of ardino uno
How to speed up the moter
Sir iske code ka direct pdf laga diniye n description box me jisse aur help ho pls sir
where will i find the code
plls tell
Sir aapne cod io copy kia hh aan vo coda kaha de milega jo aapne copy kia h
Brother mobile phone se keshe uploading kre
Can you please give code link for me
Please sir given code in discription
Can we use 9V battery instead of leathim iron battery
9v battery ko used kar sakte hai but wo discharg bhut jaldi ho jayegi
last wali clip me bhai wo robot khud chal raha hai ya aap chala rahe ho
Provide the link
Is this code still working ?
Sir mujhe ye sara saman chahiye
Bhai ya samaan khaya pa milta hai please batao
Where can I get code from
Bro code konsa dalna hai
Sir kya mai eske code ko mobile se bhi karsaktahun mere pass laptop nhi hai bhai mai kya karu pls reply
Hi.. great work ...Where can I get the Auduino code?
😂
Hlo bhai esa phone se connect kar ke chalana sikhiye
Battery खरीदने का भी लिंक भेज दीजिए
Hey is this type called electronic engineering?
It's called mechatronics
is it can also used as
computer modal
Sir aap kisi bhi computer and laptop se code upload Kar sakte ho
Bro can u send code please
Bhyya iski coading kese krnege
Computer se hoga comment box me coding diya hai mainev
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
Code ARDUINO?
ह्यात कोड घालावाच लागतो का?
Is this code still working
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
Hlo bro mujhe ultrasonic sencer ka code dedo plz bhai
Arduino kahan per milega
How can I get the code
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
Bro you can send me what program you kept in Arduino i want fast
Bro insta me muje msg kijiye
What is the coding
Bhai ya saman khaya say milega
Robu.in se
Can you send simulation in matlab for this please 😢
Esme coding kya krna hai
Bhut aasan hai bjai
please provide program link
Please msg me insta
how much cost to make it
1500 something
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