Arduino Obstacle Avoidance + Voice Control Robot || DIY Arduino Robot Car
HTML-код
- Опубликовано: 2 окт 2024
- PCBWay PCB Service www.pcbway.com/
PCBWay PCBA Service www.pcbway.com...
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks For Watching
✅LIKE ✅SHARE ✅ COMMENTS ✅ SUBSCRIBE
In this video, I have made an ARDUINO obstacle avoiding + voice-controlled robot.
This robot will move by following your voice commands and stops automatically if any obstacle detected into the path of movement.
I have used one ultrasonic sensor to detect the obstacle in front of the robot car and IR sensor to detect the obstacle behind the robot.
this robot will receive the voice command through the BlueTooth module.
Credit :- Surajit Mandal
----------------------------------------------------------------------------------------------------------------------------------------------------------------
SUBSCRIBE...It is FREE
/ mideasmonalisapaul
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
LIST OF COMPONENTS
Arduino UNO amzn.to/2E47csv
BO Motors & Wheels amzn.to/2DEIK1j
L293D Motor Driver amzn.to/2XRxu8D
Ultrasonic sensor amzn.to/2YIavgw
IR Sensor amzn.to/32NnK0X
Bluetooth Module amzn.to/3gwEFti
Jumper Wires amzn.to/3gSZ3FT
10650 Battery amzn.to/2E2onKZ
Battery Holder amzn.to/3fWKkZg
----------------------------------------------------------------------------------------------------------------------------------------------------------------
OTHER NECESSARY equipment
Soldering Iron amzn.to/30TNf0F
Glue Gun amzn.to/2PUTTxb
Double side Tap amzn.to/33UUt6t
Sun-board amzn.to/30UKbBz
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
ARDUINO CODE drive.google.c...
CIRCUIT DIAGRAM drive.google.c...
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
MY SOCIAL SITES
Mail ID mideas.monalisa@gmail.com
FB Page / mideasmonalisapaul
Instagram www.instagram....
Twitter / monalisa840
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
BACKGROUND MUSIC CREDIT
MUSIC NAME mixkit-dreaming-big-31
mixkit.co/free...
MUSIC NAME mixkit-delightful-4
mixkit.co/free...
mixkit-cat-walk-371
mixkit.co/free...
mixkit-bridge-n-98-621
mixkit.co/free...
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
#arduinovoicecontrolledw+obstacleavoidingrobot
#SMARTARDUINOROBOT
#HOWTOMAKEROBOT
#DIYROBOTS
#ARDUINOPROJECTS
#ELECTRONICSPROJECTS
Forward and backward not working pls send the code
// Arduino Obstacle Avoidance + Voice Control Robot
// Created by M Ideas
//You need to install the AFMotor and NewPing Libraries before uplodaing the sketch
#include
#include
#include
#define TRIGGER_PIN A1
#define ECHO_PIN A0
#define MAX_DISTANCE 300
#define IR A5
AF_DCMotor motor1(1, MOTOR12_1KHZ);
AF_DCMotor motor2(2, MOTOR12_1KHZ);
AF_DCMotor motor3(3, MOTOR34_1KHZ);
AF_DCMotor motor4(4, MOTOR34_1KHZ);
NewPing sonar(TRIGGER_PIN, ECHO_PIN, MAX_DISTANCE);
Servo myservo;
String voice;
void setup() {
Serial.begin(9600);
myservo.attach(10);
myservo.write(90);
pinMode(IR, INPUT);
}
void loop() {
int distance = sonar.ping_cm();
//int IR1 = digitalRead(IR);
//Serial.println(IR1);
if(Serial.available()>0) {
voice="";
delay(2);
voice = Serial.readString();
delay(2);
Serial.println(voice);
if (voice == "turn left") {
left();
}else if (voice == "left") {
left();
}else if(voice == "turn right") {
right();
}else if(voice == "right") {
right();
}
}
while(voice == "move forward") {
forward();
}
while(voice == "move backward") {
backward();
}
}
void forward() {
int distance = sonar.ping_cm();
if(distance < 10){
Stop();
voice="";
}else {
motor1.setSpeed(255);
motor1.run(FORWARD);
motor2.setSpeed(255);
motor2.run(FORWARD);
motor3.setSpeed(255);
motor3.run(FORWARD);
motor4.setSpeed(255);
motor4.run(FORWARD);
}
}
void backward() {
int IR_Sensor = digitalRead(IR);
if(IR_Sensor == 0) {
Stop();
voice="";
}else {
motor1.setSpeed(255);
motor1.run(BACKWARD);
motor2.setSpeed(255);
motor2.run(BACKWARD);
motor3.setSpeed(255);
motor3.run(BACKWARD);
motor4.setSpeed(255);
motor4.run(BACKWARD);
}
}
void left() {
myservo.write(180);
delay(500);
myservo.write(90);
delay(500);
motor1.run(BACKWARD);
motor1.setSpeed(255);
motor2.run(BACKWARD);
motor2.setSpeed(255);
motor3.run(FORWARD);
motor3.setSpeed(255);
motor4.run(FORWARD);
motor4.setSpeed(255);
delay(700);
motor1.run(RELEASE);
motor2.run(RELEASE);
motor3.run(RELEASE);
motor4.run(RELEASE);
}
void right() {
myservo.write(0);
delay(500);
myservo.write(90);
delay(500);
motor1.run(FORWARD);
motor1.setSpeed(255);
motor2.run(FORWARD);
motor2.setSpeed(255);
motor3.run(BACKWARD);
motor3.setSpeed(255);
motor4.run(BACKWARD);
motor4.setSpeed(255);
delay(700);
motor1.run(RELEASE);
motor2.run(RELEASE);
motor3.run(RELEASE);
motor4.run(RELEASE);
}
void Stop() {
motor1.run(RELEASE);
motor2.run(RELEASE);
motor3.run(RELEASE);
motor4.run(RELEASE);
}
Pls send af library
It's not moving forward even uploading of Libraries
Same problem. Help us please it's emergency
if(voice == "move forward") {
forward();
}
if(voice == "move backward") {
backward();
}
Use this code... For working properly Backward and forward..
Here she using while thats why not working.. Kindly use this command 100% work it
Thanks for your support
Bro the file is not open in my phone help please or send me this code😢😢
I done everything properly all connections are properly fix but my project is not working please help me
What's the problem that you are facing with your project?
Can I use Arduino UNO R3 SMD Atmega328P Board - Clone Compatible Model ,plz reply
Sir i am not sure...but you way try
Sir mare Bluetooth module on nahi hota or arduino ko PowerBank or computer se coonect karta hu tab on hota han or only left or right command Dene per servo motor gumhte ha or go ya back se kuch nahi hoya pls solution batao pls
This is kind of power problem...this happens when you provide low voltage
bro ma 2 battery 3.7 V or 4batery 1.5 V ki or 9 V ki batter ko 1 sath coonect Kiya Fer bhi bulb on hota ha arduino ka Bluetooth module on nahi hota plz help
Make obstacles avoiding+blutooth car
Thankyou for your suggestions....
Give app link
bro ma 2 battery 3.7 V or 4batery 1.5 V ki or 9 V ki batter ko 1 sath coonect Kiya Fer bhi bulb on hota ha arduino ka Bluetooth module on nahi hota plz help
Bluetooth module ka connection sahi se Kiya h na?
@@MTechnicalIdeas ha bhai plz solution batao Marko jruri han pls
BT module ka led blink ho rahah?
@@MTechnicalIdeas nahi ho rehan blink
Will it work if I use HC-06 Bt Module plzzzz replay
Surely
Forward And backward command not working how to solve this issue
Reset and upload the code again
can u help me i do the same project do the same as u said in video but my robot is not moving forward nd backward it can only turn
Check the connection again... Reupload the code...
Need to apply proper voltage that is in between 9 to 12 v
Bro when I give power to the motor shild . Only a green light is been seen and no other light like Adriano light, Bluetooth module light is been seen . Can you please help me as I am doing it for my school project. Quick response please
Chek the connection again.... According to your describe, i understand this is only connection error
It is not responding now
Which battery you are using?
which application r u using?
Excuse me ma'am can u tell me which is app use in the video because didn't get it in playstore pls help🙏🙏🙏
drive.google.com/file/d/1xkiM3GqHRDYxyqz5ztFWlB-ux6jLU944/view
play.google.com/store/apps/details?id=robotspace.simplelabs.amr_voice
Thk u ma'am 🙏
I connected in the same way as the circuit diagram but sir no movement, i have used 3.7V (2 Lithium Ion) battery as shown in the diagram, sir may you pls help
Can you upload the link to download arduino bluetooth controller app ?
drive.google.com/file/d/1xkiM3GqHRDYxyqz5ztFWlB-ux6jLU944/view
Could you please give me the code without IR Sensor and for 2 wheels???
i have used the IR sensor to detect the object behind the robot... if you are not going to use it then how do your robot run properly?
anyway... no need for another code... robot will run with two motors too with the same code.
I made all connections, uploaded the code. HC05 is detected. However, no movement. Only 'right' or 'left' command works once, the servo moves, wheels show a little movement and there is no further response to any command. Kindly help.
Have to gave more than 9v input?
Did you set the ir module properly?
@@MTechnicalIdeas Thank you for the reply. IR module is fine, responding (on board light) to proximity. I applied 9.5V (about 0.5amp). It seems there is a problem in the voltage divider used for the bluetooth module.
I am sorry, I think it needs a voltage divider for the RX pin of HC05 because this pin is 3.7v
Good
Thanks sir ji
Which app exactly
i was just going to make this
Wow...i was just going to make this...
This car work properly
I want to use l298n insted of l293d so can you tell me the pin number of motors and ultronic
images.app.goo.gl/Ukpi61ZdctgbwdDS8
Code link is not working. Please give me the code below
Send a mail
Can you give me code the link is not working
Sure... Give me a mail
why ir sensor is using here ...u already ultrasonic used for obstacle detection
Ultrasonic for forward obstacles detection and IR for backward obstacles detection
@@MTechnicalIdeas Bro i used HY-SRF05 sensor and connected with arduino for checking, it shows 0cm detection or no pulse from sensor. what can i do ?
mam could I used another motor driver
Yes.. But then the code will be different
@@MTechnicalIdeasthen which code I make please send me diagram
How to make install the exact library
Go to manage Library option on your Arduino software... Then search for the library you need and download them... They will be auto-installed
@@MTechnicalIdeas I find the library but the code isnt opening I want it as soon as possible even if copy paste
yah robot Khud Se Nahin chalta
Nahi.... voice commands follow karke chalta hey
Can you send me the code
I have already provided on the description
Ya thank you
Mera model move backward nhi ho rha g
Please upload the program again
Sir I am facing some issues regarding code
Code is not getting open
Showing some directory issue
Can you please help me out.
Have you downloaded it?
Preview of this code is not available
@@MTechnicalIdeas yes I tried to open with the Arduino ide but it was showing that no directory available
Ok... Have you installed the library files?
@@MTechnicalIdeas no
Can you tell me how to install the library
Go to manage library on your Arduino software.... Then download the library files
How much power we should give?
9 to 12 v
18650 Li-ion batteries are preferable
@@MTechnicalIdeas ok bro
But u gave 7.4
3.7×2
Li-ion batteries are actually heavy-duty battery... 7.4 is alson enough... But some of my viewers have faces power problem with 7.4volt...after increase the voltage, their project worked out properly... That's why i suggest everyone to apply 9-12v
Ma'am Maine ye banaya par ye work nahi kara 3 battery lagayi jab bhi nahi chali please help me
What's the exact problem
Vo connect ho rahi hai par chal nahi ri
Pleased ma'am help me Maine re program bhi Kara jab bhi nahi chala
Ma'am the connections are exactly same but it's not working it says that the code has been sent and nothing moment is happend
I think It sent command from mobile application but the hc05 Bluetooth module didn't receive how can I check it ma'am it my school project please help me
Halo when i opened your given link code its not available saying 🙏plz help
Sure.... Mail me... I will send you
From where do made circuit diagram. Can you plz provide the link of that software .
Easy eda
Mam my forward command is not working please help 🙏🙏🙏
Please re upload the code...
Didu get backward and forward
Give app link
Available in play store
Mam code is not opening
Can u send me a code once again
Sure...