Hi, i am trying to make a obstacle avoiding car using Arduino UNO and Motor driver L293D and i have uploaded the code and the libraries and i am using a 9v battery when i upload the code its starts working and works fine(while the plug is still connected to arduino) when i take out the plug it stops working even if the battery is connected i don't know why but everything is fine still its not working please help me regarding this
...........................................................................
Help us help you.
Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'
Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
Please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.
Please post a schematic.
Please post an image of your project.
Please describe the problem better then you just did.
......................................................................
If you are using a 9V battery like this.
Don't.
.................................................................
Info about multi things
.......................................................................................................................
I2C scanner
https://www.arduino.cc/reference/en/libraries/i2cscanner/
What did the I2C scanner report?
.........................................................................................
Bread board power rail split
...............................................................................................................................................
Serial Input basics.
................................................................................................................
The search box is a useful tool.
For instance using the words "9v battery" in the search box one could find lots of reasons why this may be a bad idea.
.........................................................................................................
disclaimer
The events portrayed in this post are not all true. The names are not real names of real people and real organizations.
..............................................................................
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.


