I am new to coding and I have to create an obstacle avoiding robot for a project. I have previously been able to get the motors running on their own without the sensors working but suddenly I am receiving many errors.
I have looked at many different places online to find the correct code and solve my problem but I think I am having trouble with the libraries I am downloading.
I keep on getting this error:
/Users/Charlotte/Downloads/Obstacle_Avoidance/Obstacle_Avoidance.ino:8:69: fatal error: Adafruit_MotorShield.h: No such file or directory
#include <Adafruit_MotorShield.h> //include the motor shield library
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.
But I have downloaded Adafruit_MotorShield.h
Could someone please tell me what I am doing wrong? Is the file in the wrong place?
The most likely answer is that the Adafruit_MotorShield library is not properly installed. How did you install the library? Through the IDE library manager?
But I have downloaded Adafruit_MotorShield.h
Could someone please tell me what I am doing wrong? Is the file in the wrong place?
How did you download/install the library? Did you use the library manager of the IDE? The library is available through the library manager, and it is best to use this method.
If you did not use the library manager, there may be a need to install the library in your user library folder.
Where is the downloaded library file located on your computer? What did you do to install the downloaded library?
Ah no I didn't install it through the IDE library manager I downloaded stuff from websites.
I have downloaded it properly now and there are no errors.
Thank you both very much!
Now I just need to hope my code is right...