Thankkuuuuuuuuuuuuuu veryyyyyyyy muchhhhhhhhhh brotherrrrrrr! i watched thousands of videos of this and nothing works except this oneeee thankyouuuu!!!❤❤❤❤❤❤
Download this file : drive.google.com/file/d/1zey6oL-RmGyRl-knv2xydteWdbUTbsio/view This file included the code and diagram for connecting Arduino . See the diagram you will understand all the connections clearly .
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/livetronic/Arduino-NewPing// // Servo Library github.com/arduino-libraries/Servo.git // // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //
Thanks for the beautiful project bro. For me code is compiled successfully and only servo motor is running fine. For Gear motors i had to push the robot to move. What could be the issue? please help..
@@GLENTECH Thanks bro, its working. But servo motor is stuttering/rotating i think 1 degree each. when i connected to laptop servo is rotating fine. FYI, i'm using two 3.7v rechargeable batteries. Can you suggest something?
@@abhijitgkrishna264 by the help of Ultrasonic sensor it change the direction when object or wall comes infront of it. Code has been added in Arduino Uno board to control the motor by itself using ultrasonic sensor.
// 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/livetronic/Arduino-NewPing// //Servo Library github.com/arduino-libraries/Servo.git // // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //
You wasted a lot of money on your stuff but if you would bought from banggood or flyrobo you could have got those things way more cheaper my friend. So before making something you should research about it carefully🙂👩💻
I can't wait a year after ordering from these websites to make a project and videos Amazon delivering within two days after ordering , and without any damages. So I recomment and order only from Amazon. I recommend only quality products to my viewer's and subscribers. Cheapest things won't last long .
Please don't forget to subscribe my channel
Code :
// 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/livetronic/Arduino-NewPing//
// Servo Library github.com/arduino-libraries/Servo.git //
// To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //
#include
#include
#include
#define TRIG_PIN A0
#define ECHO_PIN A1
#define MAX_DISTANCE 200
#define MAX_SPEED 190
#define MAX_SPEED_OFFSET 20
NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE);
AF_DCMotor motor1(1, MOTOR12_1KHZ);
AF_DCMotor motor2(2, MOTOR12_1KHZ);
AF_DCMotor motor3(3, MOTOR34_1KHZ);
AF_DCMotor motor4(4, MOTOR34_1KHZ);
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(70);
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)
{
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)
{
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);
}
How to code in mobile : th-cam.com/video/Mw589orCT3c/w-d-xo.html
Thankkuuuuuuuuuuuuuu veryyyyyyyy muchhhhhhhhhh brotherrrrrrr! i watched thousands of videos of this and nothing works except this oneeee thankyouuuu!!!❤❤❤❤❤❤
Well done! You have made a arduino robort.👍
Thank you... I got District first for this project
@@rapakapolayya2922 congratulations and I'm so happy to hear this 😀 .
You is best rbot maker
Thank you 😊
എടാ മോനേ നീ പോടിച്ചു❤❤❤❤❤❤ 🥰
Is it necessary to connect the wires of the motor in a particular direction to the motor driver shield
Yes . Otherwise you need to make some changes in code.
Hii bro bro sensor robot undakumbo Arduino uno venam enn undo shield matram pore
Is the black thing in back for balance? Or it's a battery?
@@fatimaakterlovely3064 balance lol 😅
Super hit bro
Thanks bro
Can i use esp 32
Thanks for share your project.
HOLA! las bibliotecas se han actualizado, puedo usar sus nuevas versiones o necesito exactamente estas? Agradecería tu respuesta!.
You can use the new version of libraries.
Puede utilizar la nueva versión de las bibliotecas.
Into bro തന്നെ ano desigh chaithathu super a e ട്ടുണ്ട്
Can we use l23d9n
Machane poli
Wow that's very nice robo
Arduino bme280 weather station ഉണ്ടാക്കാമോ
i will try
Adipoly..kollato... new friend...stay connected
How many jumper wire we need
@@StoryTimeTamil-18s amzn.to/4dRjnEi
Bro superb project...
Arduino ile connect chyyenda pin ukal koodi paranjuthannal adipoliyakum
Thankyou dear friend for your valuable comment and support 🙂
Download this file : drive.google.com/file/d/1zey6oL-RmGyRl-knv2xydteWdbUTbsio/view
This file included the code and diagram for connecting Arduino . See the diagram you will understand all the connections clearly .
Bro athile pinnukal ethanenn onnu parayo.nammal electronics atra paricjayamilla but aagraham und athukonda
See the diagram
Bro ooro project cheyyan special Arduino board veeno njan ee field il puthiya aal aa
Arduino board: amzn.to/40reL2E
@@GLENTECH thankyou bro
ithinte full chillavu ethraya🤔
My gear motors are not working only servo motors and ultra sonic senors are working
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/livetronic/Arduino-NewPing//
// Servo Library github.com/arduino-libraries/Servo.git //
// To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //
nyc ❤️🔥
Lithium Ion 1200 mah 3.7v battery use cheyamo
Yes
Can I use normal cell instead of li ion battery. Or can I use ac adopter? Please reply
If you need you can use 9v Hi - watt batteries.
You can use 12v 1a adapter
Thanks I am going to make it right now. I will contact you if I have any other doubt
@@kushalgawande7006 ok
Should I use two 9 volt battery because only a single servo requires 50 mA and we also have to connect gear box moters so we need more power?
Robot requirements are 2200 mah and 3.7 v so how can my 9 v with 50 mA battery provide such power? 😞🤨
Bro code mobile use cheyth add cheyyan pattuvo
Yes , see this : th-cam.com/video/Mw589orCT3c/w-d-xo.html
What is the first word of the code i start with
Great project
Thanks for the beautiful project bro. For me code is compiled successfully and only servo motor is running fine. For Gear motors i had to push the robot to move. What could be the issue? please help..
Check battery fully charged.
@@GLENTECH Thanks bro, its working. But servo motor is stuttering/rotating i think 1 degree each. when i connected to laptop servo is rotating fine. FYI, i'm using two 3.7v rechargeable batteries. Can you suggest something?
how did you add the dc switch?
Cut the red wire from the battery case and the connect dc switch between it.
@@GLENTECH thankyou
Af motor link we cannot able to download
You can download all files from this Google drive link: drive.google.com/file/d/1zey6oL-RmGyRl-knv2xydteWdbUTbsio/view
How did u attach battery holder with the switch? . pls help
Use double sided tape or any glue
Can we use Cardboard instead of MULTIWOOD SHEET? Please reply.
Ya
It will move automatically or shoe we need to control that robot how to control
It move automatically . If you need to control it then you need to add Bluetooth controler.
@@GLENTECH ok thanks bro but it senses things and moves right
hey bro, cant i controll it with anything? or its self controlled
It's self controlled . If you need to control you need to add Bluetooth module
@@GLENTECH thnk u bro, keep it up
Can u tell me the thickness of the wood pieces
6mm
super
thanks bro
Where should give bluetooth connection. Please tell me where should connect. I want to do
See this video and connect Bluetooth : th-cam.com/video/Xr873sXm2WI/w-d-xo.html
Which pin is that
Please give link of all this including the wire, pin , etc
@@rooparaj9528 link given in video discription
How this go right and left
It turns automatically using the sensor.
Can i use Arduino nano instead of Arduino uno
What is use of this project
Learning 💡
It shows error that newping.h no such file or directory
You need download some files link in description and need add in Arduino folder in my documents . See the video full follow the steps.
Need to download newping file for Arduino
Bro code namakku phoniloode cheyan pattumo
See this : th-cam.com/video/Mw589orCT3c/w-d-xo.html
@@GLENTECH bro ithu pole thanne cleaning robot indakkan pattumo
supper bro
Thankyou 🙂
Bro gta5 il ninnu mission il ninnu exit aavunnathu angana aanu detail aayittu onnu paranju thaaaaa
Download GTA 5 savegame file from internet .
@@GLENTECH anittu anthu vaanam bro
www.gta5-mods.com/misc/100-save-game
Can you share that link for installation to laptop
drive.google.com/file/d/1zey6oL-RmGyRl-knv2xydteWdbUTbsio/view
How is the robot controlled?
The robot runs by itself, doesn't need any remote to control.🙂
If you need you can call it Ai Robot 😅
No i meant how do u make it move to go forward and backwards
@@abhijitgkrishna264 by the help of Ultrasonic sensor it change the direction when object or wall comes infront of it.
Code has been added in Arduino Uno board to control the motor by itself using ultrasonic sensor.
Gostei muito deste robot 😊
obrigado pelo seu valioso comentário 🙂
thank you for your valuable comment 🙂
First time code chaithal pinnay delete aakit veray code endanum kazhiyumo
Yes . No need to delete , when you add new code for another project old code will be deleted from it automatically.
@@GLENTECH thank you bro
How can I install library in my mobile
See this video : th-cam.com/video/Mw589orCT3c/w-d-xo.html
Bro what is AF motor my code is error
Plz help me
// 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/livetronic/Arduino-NewPing//
//Servo Library github.com/arduino-libraries/Servo.git //
// To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //
It would be cool if everything was In the description
Man can I power this robot with 9volt battery the square one type??
9v Hi-Watt battery won't work.
Rechargeable 9v battery only possible.
@@GLENTECH or can I use normal 1.5 volt battery
You can use 2 rechargable 3.7v 2000 mAh Battery . Rs 150 each available in all electronic shops
1.5v battery won't work
amzn.to/3aj6Awz
Robotic chess player ഉണ്ടാക്കാമോ
I will try my best to upload soon
ബ്രോ, എങ്ങനെയാ കോഡ് download ആക്കുന്നത്?
Link in description to download files and code and also code given as first comment.
Please give me the link of a motor.h and new ping .h
drive.google.com/file/d/1zey6oL-RmGyRl-knv2xydteWdbUTbsio/view?usp=sharing
Bro poli
Bro number please
Can We Use Coding In Our Mobile phone
See this th-cam.com/video/Mw589orCT3c/w-d-xo.html
Cool cool
Chetta ith muzhuvanum vangan ethra rupaya
Below 3000
ബോർഡ് കമ്പ്യൂട്ടറിൽ കണക്ട് ആകുന്നില്ല , എന്ത് ചെയ്യണം , ഫോൺ നമ്പര തരുമോ.. പ്ലീസ് റിപ്ലൈ
You need to install the software.
soft ware evidunnu kittum
www.arduino.cc/en/main/software
With using without laptop using phone making on video please only using near phone von Lee and things without laptop
th-cam.com/video/Mw589orCT3c/w-d-xo.html
Total budget athre akkum bro ith cheyyan??
4000
Supper
Bro muzhuvan nirmmichath ethra Rupa aayi
2800
Can u plz share code I am not able to download it plz plz give me in copy paste form plz z
In this video first pined comment is the code .
@@GLENTECH oh thanku so so much
Can i make it will i get any problem and can u plz help me if i have any query i will comment plz ans
@@ibrahimhandoo5892 yes , you can ask here.
@@GLENTECH u are using l293d but i want to use l298n so do u have any video of make the same robot but with l298n plz plz tell me
Computer illade patuvo
th-cam.com/video/Mw589orCT3c/w-d-xo.html
Thank you
I want code of this project
@@KARPURAPUBHARGAVRAMGOUD first comment of this video is the code
Can you share the link for purchase the things required to make it plzz
It's given in video discription .
Please geve me the link of AF motor.h and new ping .h
drive.google.com/file/d/1zey6oL-RmGyRl-knv2xydteWdbUTbsio/view?usp=sharing
Bro...ithintay code working aano
Yes , download link in video discription.
Bro oru help cheyo
Ya 😊
Ippo entha video idathe
I take a small break because during lockdown I was not available to buy any items for making videos.
From next week new videos coming.
So simple
When I comple the code an error faces- ID return 1 exist status return code is not 0 please help me I want to make this wonderful project
Did you add files to library in documents Arduino folder
Total cost ??
2000
Bhayya parts names please send bro
In video description
Chatan karanam aniki e project school il vakan patii
👍👍👍
Chatta vara itu polata excitement indoo
Uploading soon
Chatta kurra price ako e arduino robot indakunatinii
Njan calculate chiti nokiyappo 2800 ruppes olam varunundii
Ok. Bro
Pin header connection
Egathesham oru wall-E
Bro please make a video for how to charge 3.7 v battery bro please
Ok , Sunday I will upload.
@@GLENTECH thank u bro
Your a robotics student
😲
Hlo bro
Great, some clarifications, could you please share contact
You can ask here
You wasted a lot of money on your stuff but if you would bought from banggood or flyrobo you could have got those things way more cheaper my friend. So before making something you should research about it carefully🙂👩💻
I can't wait a year after ordering from these websites to make a project and videos
Amazon delivering within two days after ordering , and without any damages. So I recomment and order only from Amazon.
I recommend only quality products to my viewer's and subscribers.
Cheapest things won't last long .