Hey guys,
My project is an electric longboard controlled with a Carrera Evolution controller. The inside is replaced by a Potentiometer connected to an ESP32. This communicates with a second ESP32 on the longboqard via the esp now library. This ESP32 is connected to an ESC.I tried to control the ESC but it did not work.
So i took a servo and tested the basic example sketch of the "ServoESP32 by Jaroslav Paral" (platform.io)
The code is just the example:
#include <Servo.h>
static const int servoPin = 15;
Servo servo1;
void setup() {
Serial.begin(115200);
servo1.attach(servoPin);
}
void loop() {
for(int posDegrees = 0; posDegrees <= 180; posDegrees++) {
servo1.write(posDegrees);
Serial.println(posDegrees);
delay(20);
}
for(int posDegrees = 180; posDegrees >= 0; posDegrees--) {
servo1.write(posDegrees);
Serial.println(posDegrees);
delay(20);
}
}
I tried out different GPIOs and the result is always the same:
The servo stays in 0 position, same as if i ground the Signal Pin.
(GPIOs like 15 correspond to the labels on the ESP, like P15, if i am right:
https://docs.zerynth.com/latest/official/board.zerynth.nodemcu_esp32/docs/index.html )
Servo is receiving external Power.
Servo is tested with a servo tester and working.
The ESP in use is a NODEMCU ESP-32S
What could possibly be wrong?
I tested everything i can think of.
Help is greatly appreciated.
EDIT: 128 views so far but no response. Feel free to share any thought, i will not judge and be thankful for even a "hi".