That reminds me: Are the servo's and the ESP's GND connected together?
No. I have a separate power supply for each:
An external power supply connecting the ESP32 with 5V + GND.
And another power adapter with 7.4V connected with VCC and GND to the servo.
I have also used another gpio pin (GPIO_NUM_23), but it doesn't make any difference. I also tried to power the ESP32 with an external 5V power supply instead of the USB port.
Furthermore in this process I also switched back to the ESP Idf demo code version ...
Does it mean that up to 0.5ms the signal is low, for 0.5ms high and for 19ms low (pwm cycle of 20ms), for a 0 degree? Does the code for the SG90 (code below) not state, sinal high for 0.5ms and 19.5ms low (pwm cycle of 20ms), for a 0 degree?
@MicroController Yes, I'm using a power adapter (with the servo motor's recommended voltage of 7.4V). Though, this power adapter supports just an amperage up to 3000mA. Could this be an issue, since according to the datasheet at 6V the servo motor requires: - Idle current(at stopped) 4mA - Stall ...
I want to use the DS5160 Servo Motor to control its angle such as in the esp idf mcpwm servo example: https://github.com/espressif/esp-idf/tree/master/examples/peripherals/mcpwm/mcpwm_servo_control:
I use the identical code from above, where I have only changed some parameters (SERVO_MIN ...
I want to run a HTTP Webserver. Is there any way to track the current active client connections on the server, and if there are no active sockets found, I want to shut down the server and wifi.
I know that WiFi in AP mode has WIFI_EVENT_AP_STACONNECTED and WIFI_EVENT_AP_STADISCONNECTED event, but ...
you gave me valuable hints. A big thank you. Memory leaks :twisted: :twisted:
I now implemented two different versions. One with a raw pointer (which you have delete manually) and the other with a std::string. Based on my C++ knowledge I'm not quite sure if I can implement ...