Use joystick to control servos on an esp32cam

Hello I need help I’ve tried to use servos on blynk but they don’t moove it’s not an electronic problem because I use another code with a real joystick and it’s work so the problem is in the code. (I know there isn’t the pass word etc but I don’t want to share my password

 #define BLYNK_PRINT Serial
#include <ESP32Servo.h>

#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

Servo servo1;
Servo servo2;



void setup()
  // Debug console

  Blynk.begin(auth, ssid, pass);

void loop()

I hope you will help me !

@lesfouduDIY please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:


ok thank you I didn’t know how to do that
Have a good day !

How are your V3 and V4 widgets configured?


In other examples servo.h is used instead of ESp32servo.h, worth a try…

servo.h and esp32servo.h are not the same library, so if you put servo.h instead of esp32servo.h you will get an error.

I don’t understand what’s wrong ?

Of course you’ll need to install the library first if you don’t have it already installed… Just saying that all examples i saw were using the servo library…

I already download the library I’m using ESP32Cam board and ESP32Servo.h

Take a look here, maybe it will help you… Slider is used there instead of joystick