• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Unit 9 – esp32 Control Servo Motor : Library problem

Q&A Forum › Category: ESP32 › Unit 9 – esp32 Control Servo Motor : Library problem
0 Vote Up Vote Down
x3mvz5pl5g5k asked 6 years ago

Hi
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”
Used: C:\Program
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.

Question Tags: Arduino, ESP32, Library, servo
3 Answers
0 Vote Up Vote Down
Abdulmagid Omar answered 6 years ago

Hi
This library worked for me fine:
https://github.com/jkb-git/ESP32Servo
also you need to change the upload speed to 115200
A. Omar

0 Vote Up Vote Down
x3mvz5pl5g5k answered 6 years ago

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.

0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Hi.

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.

Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.