I am having a problem while uploading using the servo library specified in the class instructions:
Arduino: 1.8.10 (Windows 10), Board: “DOIT ESP32 DEVKIT V1, 80MHz, 921600, None”
WARNING: library Servo claims to run on avr, megaavr, sam, samd, nrf52, stm32f4 architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).
In file included from C:\Users\jack\Documents\ELECTRONICS\esp32\Code\ServoSweep\ServoSweep.ino:7:0:
C:\Program Files (x86)\Arduino\libraries\Servo\src/Servo.h:75:2: error: #error “This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor.”
#error “This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor.”
Multiple libraries were found for “Servo.h”
Not used: C:\Users\jack\Documents\Arduino\libraries\ESP32_Arduino_Servo_Library exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.
This report would have more information with “Show verbose output during compilation” option enabled in File -> Preferences.
This library worked for me fine:
also you need to change the upload speed to 115200
Thanks, but still unable to run this program with your setup. I do not understand how to interpret the error message.
Up until now, all previous programs were run without issue.
Go to this folder in your computer: \Users\jack\Documents\Arduino\libraries\
You should have another library called “Servo” which is used with Arduino.
Move that library out of that folder.
Then, restart your Arduino IDE.
Try to compile the code again and see if it works.
Let me know if this solves your problem.