I have this connection but with the esp32, it does not work with analogWrite but it does with digital Write();, and in the code two pins 22 and 23 in analogWrite(); one at value 255 and another at value 0, it does not work neither spin however when I disconnect any pin 23 or 22 it spin. I want control the velocity
You should read arduino/reference for thos two I/Ooperations. The difference is huge.
Why 2 PWM ports for controling one load? Please post real schematics, not a geography picture.
Why not using the version You describe as "working"? Why asking about the not working version?
Your words about pins can not be followed in the picture You posted.
1 Like
Welcome! Post a link to the part you are using that gives technical details. I found several look alike units.
Never had to use PWM on an ESP32, but I think you can't use analogWrite();
Google ESP32 PWM for examples.
Leo..