Obstacle Avoiding Robot Car Using An Arduino

  Рет қаралды 273,933

Michael Klements

Michael Klements

Күн бұрын

Пікірлер: 417
@StudyMode-tv6yv
@StudyMode-tv6yv 25 күн бұрын
Please help 😢 how to do the coding ? Which app are you using ? Please reply.I almost bought everything needed .😢
@sdbro.
@sdbro. 8 күн бұрын
Arduino IDE APP
@himanshumuley5857
@himanshumuley5857 Жыл бұрын
Hey Michael , Loved how you made it look so easy but I need help I'm facing a problem.. I have my trig and echo pin connected to A1 and A0 respectively and I replaced the no. in your code to A1 A0, and when I turn on the car the motors dont run and servo motor is also not moving.. please help me out here:(
@Andeman-kf6kv
@Andeman-kf6kv Жыл бұрын
thank you so much for the help, it was very intresting and emosjonell. this expirience was life changeing. I have many of these robots now wich roams my grochery stores. i'am now a proffesional robot maker. i build robots, hand made. im rich now.
@vishnu5763
@vishnu5763 Жыл бұрын
hey please anyone tell this work..? please🙏
@a.w.aardiansyah9211
@a.w.aardiansyah9211 3 жыл бұрын
Amazing project ! Just Additional Information... Ask permission Mr. Michael Klements for those of you who are new to assembling, then there is a problem with the speed of the motor.. the solution is: 1. Change the byte value of motorSpeed 2. check the condition of the battery, is it still good or not 3. check the state of the gear motors (dynamo) Thank you for your attention Greetings from Ponorogo, East Java, Indonesia
@lilianseverinodasilva94
@lilianseverinodasilva94 8 ай бұрын
What do you suggest to use instead of byte?
@prithwijitgupta391
@prithwijitgupta391 Ай бұрын
Hi Micheal!! My project turned out so well. I am really happy. Your code just works so fine. Keep up the good work!! 👏👏
@Tch.SouravExperiment
@Tch.SouravExperiment Ай бұрын
Superb video! The visuals were clear and the project instructions were spot-on. I appreciate the effort you put into making this so accessible.”
@xZen07
@xZen07 8 ай бұрын
bro ur code is wrong Arduino: 1.8.18 (Windows 10), Board: "Arduino Uno" sketch_jan07a:1:10: fatal error: AFMotor.h: No such file or directory #include //Import library to control motor shield ^~~~~~~~~~~ compilation terminated. exit status 1 AFMotor.h: No such file or directory This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
@chitobalazo
@chitobalazo Ай бұрын
Hi Michael, Thanks for your project is well documented, however I got an error message when I tried to compile it to check the code. The error message says the "getDistance was not declared hence can't upload or even compile the code. Hope you can help me. Thanks
@Yourgaming-7fr
@Yourgaming-7fr 3 ай бұрын
Can we make a helicopter ????????? lol XD Just asking for fun if u can kindly do it !😀
@limeshsinha2617
@limeshsinha2617 3 жыл бұрын
Sir tell me , how can upload a code
@MichaelKlements
@MichaelKlements 3 жыл бұрын
Using the Arduino IDE
@yasmeenalaataima1429
@yasmeenalaataima1429 2 жыл бұрын
Great!.. the circuit diagram please 🥺
@jishabenny9183
@jishabenny9183 2 жыл бұрын
My Moter driver Is Not Working But Servo Moter is working on 4 moters Is Not Working, Plzz Reply
@MichaelKlements
@MichaelKlements 2 жыл бұрын
This could be caused by a number of things; the battery can't supply enough power, the shield is faulty, the connections are faulty, the speed gains need to be turned up, the code is getting stuck somewhere (waiting for ultrasonic sensor) etc.
@dilhyderstudios8569
@dilhyderstudios8569 2 жыл бұрын
Today i made this in my college... ❤️
@julkarnain3328
@julkarnain3328 Жыл бұрын
Does it work I am not getting the code the code is wrong
@worldVK1704
@worldVK1704 Жыл бұрын
@@julkarnain3328 which device you used to code the Arduino...... Pc.. Laptop or mobile..?
@pranavrk8639
@pranavrk8639 Жыл бұрын
How
@romnathbaba3287
@romnathbaba3287 Жыл бұрын
​@@julkarnain3328 Ask it in chat gpt Thank me later😮
@ravikumara7496
@ravikumara7496 Жыл бұрын
Total cost
@unknown-o4f1o
@unknown-o4f1o 22 күн бұрын
How would i make this with a aurdunio mega 2560
@jishabenny9183
@jishabenny9183 2 жыл бұрын
Can I use Arduino UNO R3 SMD Atmega328P Board - Clone Compatible Model
@MichaelKlements
@MichaelKlements 2 жыл бұрын
Yes you can use an Uno clone board, as long as it has the same pinout as the original Uno it should work with the motor driver shield.
@vlogwithskr9554
@vlogwithskr9554 Жыл бұрын
Sir I made the project for my college. And the car is working very well but one problem is that if the front of the car is empty then the car is still rotating.I checked the code many times, checked the hardware connection and found no problem. I don't understand why my car is not working like yours. Sir Please help me to fix it. I have to show this project to the college very soon. Hope you can help me fix it, thanks 😊
@MichaelKlements
@MichaelKlements Жыл бұрын
The motors are not made equally so there is almost always a side of the car that has more power. You need to adjust the variable motorOffset to account for this. If it is turning left all of the time then you need to increase the offset, if it is turning right then decrease the offset.
@vlogwithskr9554
@vlogwithskr9554 Жыл бұрын
@@MichaelKlements Sir, when the front is empty, the servo motor is still rotating, that means the car is turning instead of going straight even on the empty road. It seems to detect some object in front.
@GG-sd2dr
@GG-sd2dr Жыл бұрын
Thanks for the video, why didn't you just solder the wire to the board directly on pin 13 instead of using a pinhead?
@MichaelKlements
@MichaelKlements Жыл бұрын
Only so that it can be removed if required
@GG-sd2dr
@GG-sd2dr Жыл бұрын
@@MichaelKlements oh, ok thanks!
@mageshkumarg7673
@mageshkumarg7673 Жыл бұрын
HLO PLEASE SEND CODE
@AminaBeevi-p5x
@AminaBeevi-p5x 3 ай бұрын
Yes please give code
@MegalaKumar-ct4qr
@MegalaKumar-ct4qr 3 ай бұрын
Bro which type of battery will use🤔
@Greatibekwe
@Greatibekwe 2 ай бұрын
Thanks for this video. Pls can you make a gps waypoint and obstacle avoidance robot with two Arduinos communicating serially
@fredykaris4534
@fredykaris4534 4 ай бұрын
Hey, I request for the code kindly
@SteveJeffrin-x7k
@SteveJeffrin-x7k Ай бұрын
Good i am going to bo for my science project
@BalaSanjay-z8e
@BalaSanjay-z8e Ай бұрын
is it possible by connecting one 9 volt battery to the shield and other to the board pls answer fast
@MartiArtisan
@MartiArtisan 3 ай бұрын
Would this concept work on a larger scale car/kart?
@MichaelKlements
@MichaelKlements 3 ай бұрын
Yes, you'd just need to use larger motors and motor drivers.
@kanshikuljotsingh5788
@kanshikuljotsingh5788 2 жыл бұрын
HI Michael Klements , you are very great .
@darewolf6251
@darewolf6251 2 жыл бұрын
Plz give me a The program code it's not working I can't download it
@Ayush-90
@Ayush-90 Жыл бұрын
Hi Michael Kelements, Can we use a 9volts battery in this
@MichaelKlements
@MichaelKlements Жыл бұрын
9V block batteries aren't able to supply enough current to drive 4 motors.
@whitesadheereee
@whitesadheereee Жыл бұрын
Could you modify the program for me?, I'm a beginner in robotics and I don't know how to program, I have the same project but I don't have a servo motor, could you modify?
@iamv4323
@iamv4323 2 жыл бұрын
bro 1 small dout in this program some error so plese clear my dout exit status 1 'stopMove' was not declared in this scope this is the error in my computer so please clear the problem for me
@9b21karankunbi2
@9b21karankunbi2 3 жыл бұрын
bro loved the project thank you so much
@ChrisHerrera-kb4lq
@ChrisHerrera-kb4lq Жыл бұрын
thank you so much , i just learned about the part when you can put a max wait int the pulseIn() function. appreciate it :)
@prajaktamahajan1537
@prajaktamahajan1537 10 ай бұрын
पार्ट ऑनलाइन मागवल्या किती दिवसात घरी येतात
@charlesmanginsay9230
@charlesmanginsay9230 5 ай бұрын
hello Mr. Klements, I tried putting a 3 x 3.7V rechargeable battery with a total of 11.1V but when I added 5V to it giving a total of whopping 16.1V, the Arduino Mega 2560 stopped working. Did I supply too much current? is the 11.1V enough for the 4 motors?
@MichaelKlements
@MichaelKlements 5 ай бұрын
I'm not sure how or why you added 5V to it, 11.1V is enough to supply both the motor shield and the Arduino. That said, 16.1V also should not have damaged the Arduino Mega since these can typically handle a supply voltage of up to 20V.
@sakthidharann7026
@sakthidharann7026 2 жыл бұрын
What type of battery and it's power you used in this
@MichaelKlements
@MichaelKlements 2 жыл бұрын
I used a 3 cell, 850mAh LiPo
@aradhyadadriwal
@aradhyadadriwal 7 ай бұрын
I am in fifth and I have make this project today very easily It's too easy
@iqbal5796
@iqbal5796 2 жыл бұрын
please help me master... i want to install a buzzer to on the smart car, so that it sounds when sensor reads an object, please help me make the coding. Thank you in advance
@bhimraoshinde5862
@bhimraoshinde5862 9 ай бұрын
can you give circuit diagram 😢
@Tech_Brigadier
@Tech_Brigadier 11 ай бұрын
plz do sme with pi pico
@mthembusonto7994
@mthembusonto7994 3 жыл бұрын
Arduino: 1.8.14 (Windows 10), Board: "Arduino Uno" loading libs from C:\Users\al11\Dropbox\My PC (LAPTOP-PB88OKI2)\Documents\Arduino\libraries: loading library from C:\Users\al11\Dropbox\My PC (LAPTOP-PB88OKI2)\Documents\Arduino\libraries\arduino_422445: loading library.properties: Error reading file: read C:\Users\al11\Dropbox\My PC (LAPTOP-PB88OKI2)\Documents\Arduino\libraries\arduino_422445\library.properties: The handle is invalid. Error compiling for board Arduino Uno. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
@MichaelKlements
@MichaelKlements 3 жыл бұрын
It looks like your IDE isn't able to read the libraries that you've got installed or the libraries property file has been corrupted.
@heninmuneer8436
@heninmuneer8436 Жыл бұрын
Thank you so much Michael! I'm really grateful ❤❤ Especially when you linked the again products,, you've got my respect man! Not only are you an amazing electronic device maker but also you're an amazing guy for helping us rookies so much 💗
@MichaelKlements
@MichaelKlements Жыл бұрын
Thanks for the feedback and support Henin!
@maricrisreyes5650
@maricrisreyes5650 2 жыл бұрын
how to code the sumobot not avoiding the object by attacking how to code using the components of obstacle avoiding robot
@johnwilsong
@johnwilsong Жыл бұрын
Hola, estoy haciendo un automóvil Arduino para un proyecto escolar sigue todos los pasos en el video pero el carro no camina / tengo tarjeta R3 Wifi MCU ATmega 328p / Wifi ESP8266 / Usb ch320g - se tiene que hacer alguna configuración diferente ?
@techysoham
@techysoham 4 ай бұрын
Hi Michael, thanks for the project! I did everything and made some changes on my own and the car works good! Just one issue, the servo motor is spinning too fast, so fast that it removes the wiring sometimes. Do you have any idea on how to fix this, like how to slow down the servo?
@MichaelKlements
@MichaelKlements 4 ай бұрын
Hi Techysoham, thats great to hear. There are some Arduino libraries that offer servo speed control, the other option would be to create a functional that moves the servo in single single-degree increments with a small delay between each step.
@muzutechz01
@muzutechz01 2 жыл бұрын
wowwwwwwwwwww
@sweetsandspicyfood8711
@sweetsandspicyfood8711 2 ай бұрын
Base of the robot
@diptanshude2525
@diptanshude2525 2 жыл бұрын
How long does your car keep moving if u don't disconnect the power at all ?
@MichaelKlements
@MichaelKlements 2 жыл бұрын
Around 5-10 minutes depending on how fast it is driving and how many turns it is making.
@NotAvailable211
@NotAvailable211 Жыл бұрын
can this robot get out from a maze?
@MichaelKlements
@MichaelKlements Жыл бұрын
You'd probably need to tweak the code to better navigate a maze but the hardware is certainly capable of doing so.
@travelwithgishan6666
@travelwithgishan6666 3 жыл бұрын
I also make a car but it is not working can you help me to make it
@MakerSpace-k8t
@MakerSpace-k8t Жыл бұрын
Can you please share tinkercard link of project and bottom part?
@suryaraja3313
@suryaraja3313 2 ай бұрын
Sir please help me sir.
@rbarr04
@rbarr04 3 ай бұрын
Very nice video. The only thing I am missing is how to access the pins on the top of the motor shield. But this video is exactly what I was looking for.
@diptanshude2525
@diptanshude2525 2 жыл бұрын
My car is moving forward and backward only , not turning
@Presid_offical
@Presid_offical Ай бұрын
Can we use 18650 li ion battery?
@MichaelKlements
@MichaelKlements Ай бұрын
You'll need to use 2 to meet the voltage requirements of the shield.
@ZVEKOfficial
@ZVEKOfficial 7 ай бұрын
Mate what batteries do you use to power this thing ? I thing that's the most important aspect of this project (you skipped the part where you install the batteries) since many of us who're trying to get this to run use 9V batteries and that simply isn't the optimal power source
@MichaelKlements
@MichaelKlements 7 ай бұрын
Either use 4 x AA batteries in a pack or use a 2 or 3 cell LiPo battery (that's what I've used).
@ZVEKOfficial
@ZVEKOfficial 7 ай бұрын
@@MichaelKlements Yeah well I bought a 4 pack and a 6 pack AA holder. The 4 pack doesn't have enough voltage (1.5 x 4) as the L293D driver has a voltage drop of around 1.8V so the motors spin reaaaallly slowly. Nevermind turning left/right. The 6 pack is also meh to be honest. I think I need to buy a high voltage high capacity LiPo battery like you mentioned to run this at its full potential. Or maybe 2x 18650 Li Ion battery
@nithishkumar.k2619
@nithishkumar.k2619 2 жыл бұрын
We r gave the connections but the motor is not rotating 🥲
@anugrahambilad9577
@anugrahambilad9577 2 жыл бұрын
Can i do this with my old toy Car which can turn right and left with the help of gear motor How can plug that may also in the Motordrive shield
@not41540
@not41540 8 ай бұрын
with 4d desner app
@its-akiko-7734
@its-akiko-7734 2 жыл бұрын
Hello micheal, i am new to this Arduino thing, this is a project my teacher gave me, i wanted to ask for the motor driver i buyed a one but ut doesn't have some pins, instead holes like yours, my question is can i just put the pins in the hole?will it have the same effect, hope you'll answer me the dead end of my project is in 15 days💀🔫🔫🤝🏻
@MichaelKlements
@MichaelKlements 2 жыл бұрын
You'll need to solder the pins in place once they're in the holes so that you get a good electrical connection.
@HasanRavda2005
@HasanRavda2005 2 жыл бұрын
I got a problem , Everything is working fine except dc motors .They are not moving . Please help regarding this problem
@MichaelKlements
@MichaelKlements 2 жыл бұрын
Try adjusting the motor speed parameters and check that your batteries are able to supply enough current to the drivers.
@andrewtorino2320
@andrewtorino2320 5 ай бұрын
How to change the code to adjust the speed of motors?
@3LGang2L
@3LGang2L 6 ай бұрын
Hi Michael, I understand this project is 3 years old however do you believe with some adjustments to the code an analog servo motor can be used instead?
@MichaelKlements
@MichaelKlements 6 ай бұрын
Like and analog RC servo motor or one that requires a different driver?
@uzmagul9462
@uzmagul9462 Жыл бұрын
Hello can you tell me that it also solve a maze game ?
@MichaelKlements
@MichaelKlements Жыл бұрын
You'd need to tweak the code with a maze solving algorithm, this will just wander around a maze in its curent configuration.
@mashmesh-hd1eh
@mashmesh-hd1eh Жыл бұрын
Hi i need help i want to add gsm module and pir sensor on this project can you help me where to insert the codes
@binukw2507
@binukw2507 2 жыл бұрын
HI problem here! great video but when i plu my usb connection to the car 2 problems 1. it doesnt work without the usb 2. the sensor only moves nothing else doesnt
@MichaelKlements
@MichaelKlements 2 жыл бұрын
That seems like a power issue, you're probably not using a battery that can supply enough power to drive the motors.
@AarooniKrishna
@AarooniKrishna 10 ай бұрын
HELP ME its showing error in code AFMmoter its showing error why
@saravananp3904
@saravananp3904 10 ай бұрын
Same thing is happening with me also
@adwaitsworld2361
@adwaitsworld2361 6 ай бұрын
same here
@potatogaming5551
@potatogaming5551 2 жыл бұрын
Hey my car is not moving what shall I do
@bheeshampunshi2976
@bheeshampunshi2976 Жыл бұрын
Can any body help, from where to download the code?
@wingsoffire7790
@wingsoffire7790 Жыл бұрын
I want to make it
@aarush0487
@aarush0487 2 жыл бұрын
Can you tell what language did you use to code
@MichaelKlements
@MichaelKlements 2 жыл бұрын
It's C++ in the Arduino IDE
@GelFireQueensland
@GelFireQueensland 3 жыл бұрын
Great project! Thankyou for your work on this. Just changed a few speed settings for mine, works great.
@MichaelKlements
@MichaelKlements 3 жыл бұрын
That's great to hear!
@GelFireQueensland
@GelFireQueensland 3 жыл бұрын
@@MichaelKlements Hi! I've since noticed it only ever turns one direction, regardless of obstacles location. I can reverse the turn direction by changing AF_DCMotor assignments Left to Right, but I can't get it to decide to best turn direction, it only goes same way each time. The servo was incorrectly looking right first, but fixing that didn't fix the problem. I downloaded your Code again in case I accidently changed something that matters, no go. Also played around with the 'int checkDirection()' in curiosity.. Anyway maybe you can suggest an answer if you have time. Thanks from QLD Australia.
@Footdkz2007
@Footdkz2007 3 жыл бұрын
Good luck.
@aditya30020
@aditya30020 9 ай бұрын
Can you please share circuit diagram
@kunshsabharwal
@kunshsabharwal 2 жыл бұрын
How it will move ? With the help of any application ?
@MichaelKlements
@MichaelKlements 2 жыл бұрын
The code for the robot car is available from my blog linked in the video description.
@potatogaming5551
@potatogaming5551 2 жыл бұрын
Sir I cant move my vehicle I am using 9v battery
@MichaelKlements
@MichaelKlements 2 жыл бұрын
A 9V block battery isn't able to supply enough current to drive four motors.
@bivintechtamil1072
@bivintechtamil1072 Жыл бұрын
Hello Bro Can You Please Say Me How To Decrease the speed of motors and if reduced the turning speed also decreases
@MichaelKlements
@MichaelKlements Жыл бұрын
Just adjust the motor speed variables at the begining of the code, the turning speed is scaled from these so will also reduce
@fortamer4064
@fortamer4064 Жыл бұрын
Where can we get the 3D print file for chesse
@balajigoud249
@balajigoud249 Жыл бұрын
Please couldn you provide circuit diagram
@lightroomedits4325
@lightroomedits4325 2 жыл бұрын
Programming
@suvendu286
@suvendu286 2 жыл бұрын
Hello brother, I am unable to understand how you connected the female header pin to pin 13. Can you please explain?
@MichaelKlements
@MichaelKlements 2 жыл бұрын
I had to solder additional header pins onto my shield in order to plug it in - alternately you could just solder the wire directly onto the shield.
@cosmicauz1
@cosmicauz1 Жыл бұрын
Hey, how can i find codes for it?
@Shalaby2002
@Shalaby2002 6 ай бұрын
I have a question about the yellow-capped component labeled "PW" on the motor shield. Additionally, I've developed a car using the same procedure and utilizing two 3.7V batteries each. However, I've encountered two problems: 1- When I unplug the USB, the car stops working. 2- The batteries seem unable to power all four motors to move the car. Initially, the setup worked fine during testing, but these issues arose later on. Could you please provide assistance on how to address these problems? and what specific Batteries and how many of them I need and what volatge.Thanks In adavnce
@MichaelKlements
@MichaelKlements 6 ай бұрын
I assume you're talking about the jumper labelled "PWR" - mine is black not yellow. This is jumper that either allows the shield to supply power to the Arduino or disables this feature if the voltage is outside of the Arduino's range. If you're supplying power to the shield only then you need to have a jumper on here to power the Arduino as well. Using 3.7V batteries, you would need them to be connected in series and ensure that they can supply enough current to drive the motors.
@Shalaby2002
@Shalaby2002 6 ай бұрын
@@MichaelKlements Thank you for your response. Yeah Man , you got me correctly. I was referring to the yellow PWR in my case 😂. From your comment, I gather that I need two batteries, providing approximately 7.2V and 1200mA. In this scenario, I simply keep the PWR turned off as it's. COZ I'm afraid of messing things up
@MichaelKlements
@MichaelKlements 6 ай бұрын
You need a supply voltage of at least 4.5V, so either one 7.4V battery or two 3.7V batteries in series would work. If the jumper isn't on then you need to provide the Arduino with it's own power source as well.
@lilianseverinodasilva94
@lilianseverinodasilva94 Жыл бұрын
How did you solder on pin 13? I’m struggling with this one!
@ayushthakur7566
@ayushthakur7566 Жыл бұрын
Can you provide me circuit connection
@vidaddicts7273
@vidaddicts7273 3 жыл бұрын
Hello, great project! I've run into a few problems and by modifying the code a little I managed to find the solutions. Although there is one problem that I can't find a way to fix. The ultrasonic module only detects a wall once, it stops after the 2nd wall, but the engines still continue forward into the wall. Could you help me, please? (My modifications did not cause this problem since when I used the original code it didn't work either)
@ggplayer2162
@ggplayer2162 3 жыл бұрын
can u copy and paste ur code plz need help
@Sop7anaAllah
@Sop7anaAllah Жыл бұрын
Amazing tutorial Michail! short, precise, complete and simply explained. Thank you very much keep up the good work.
@MichaelKlements
@MichaelKlements Жыл бұрын
Thanks Mohammad
@MartyrInside08
@MartyrInside08 2 жыл бұрын
Does anyone have the circuit simulation of this arduino in proteus 8?
@bernicesasu1166
@bernicesasu1166 11 ай бұрын
What are the library you installed for the code
@YellowBlox7777
@YellowBlox7777 Жыл бұрын
tysm bro video was too good with nice explaination
@fpkgoon2561
@fpkgoon2561 11 ай бұрын
hey could we plug the power supply into the Arduino Uno instead of the driver shield?
@MichaelKlements
@MichaelKlements 11 ай бұрын
The motor driver pulls too much current to power it through the Arduino, you should power the driver and allow the driver to power the Arduino.
@anivarthreddy
@anivarthreddy Жыл бұрын
man do u have any ppt for this
@sefkoasim4175
@sefkoasim4175 2 жыл бұрын
IT IS WRITTING: AF Motor .h: No such file or directory
@MichaelKlements
@MichaelKlements 2 жыл бұрын
The first line after the code in the instructions tells you to install the required library, with a link to it.
@erican6708
@erican6708 2 жыл бұрын
Where is the switch and battery? And how is it wired in relation to all the components. Sorry I am new to circuits.
@MichaelKlements
@MichaelKlements 2 жыл бұрын
There is a blog post linked in the video description that has some more detail on the wiring and components used.
@sefkoasim4175
@sefkoasim4175 2 жыл бұрын
I HAVE PROBLEM WITH THE PROGRAM
@HavocNavenGaming
@HavocNavenGaming 3 жыл бұрын
How to customise how near can the distance of the robot be with the obstacle before turning away. I want my robot to be about 10cm distance from the obstacle
@MichaelKlements
@MichaelKlements 3 жыл бұрын
Just change the parameter stopDist in the code to 10
@ggplayer2162
@ggplayer2162 3 жыл бұрын
i dont have the 13 slot on my board so where can i put it
@siddhantpant462
@siddhantpant462 2 жыл бұрын
Hi sir can you share Arduino circuit please....
@devinenimanimanvith4240
@devinenimanimanvith4240 3 жыл бұрын
Could you help me out here! I am using a 9v battery as power supply, though it is powering up the arduino board and motor driver it is not helping to drive the motors and servo motor, but when i connect to my laptop to upload the code it is poweringup enough to drive the motors and servo.
@MichaelKlements
@MichaelKlements 3 жыл бұрын
A 9V battery isn't able to provide enough current to drive four motors. It works when powered by USB as well as it is supplementing the shortfall. You need to use a better battery pack.
@PlexusSkIllz
@PlexusSkIllz Жыл бұрын
Hi Michael, it would be a great help if you tell me what I'm doing wrong here. Even though I copied your code the robot doesn't function correctly. when infront of a wall when activated it checks for spaces to move and once it finds a way it moves and doesn't stop again when it encounters any obstacles. I've seen some other people have the same problem as I. I made sure that my connections are correct so what might be the problem. Thank you very much.
@PlexusSkIllz
@PlexusSkIllz Жыл бұрын
For anybody wondering. I fixed this problem by adding return; after moveForward() in the if statement that's in the void loop
@shaneferdz82
@shaneferdz82 2 жыл бұрын
This is simply wow! So well explained
@anotherterranplayer7209
@anotherterranplayer7209 2 жыл бұрын
How can I make the robot not repeat the same trajectory after avoiding an obstacle?
@MichaelKlements
@MichaelKlements 2 жыл бұрын
You could add a random decision on whether it turns left or right at an obstacle
Arduino Robot Car with Speed Sensors - Using Arduino Interrupts
49:12
DroneBot Workshop
Рет қаралды 382 М.
Остановили аттракцион из-за дочки!
00:42
Victoria Portfolio
Рет қаралды 3,9 МЛН
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 3,6 МЛН
From Small To Giant Pop Corn #katebrush #funny #shorts
00:17
Kate Brush
Рет қаралды 71 МЛН
The Mecanum Wheel Is So Weird, It Is Genius. How It Works
12:26
Jeremy Fielding
Рет қаралды 3 МЛН
Motor driver shield control (L293D IC)
9:38
SriTu Hobby
Рет қаралды 106 М.
I Built A 4-Bay NAS Using A Raspberry Pi 5
12:24
Michael Klements
Рет қаралды 364 М.
How To Make Awesome Arduino Obstacle Avoiding Robot Car 4WD 😱🤓
13:55
Building an Internal Cycloidal Robotic Actuator
19:01
Aaed Musa
Рет қаралды 584 М.
Остановили аттракцион из-за дочки!
00:42
Victoria Portfolio
Рет қаралды 3,9 МЛН