I tried same motor on arduino board and is working perfectly, can't figure out how to make this running on esp32 and it becames frustrately.
I tried code from all tutorials availables and all youtube videos related and nothing make this damn motor running, I also tried for loops for PWM.duty in hope that one will make the motor running.
Code: Select all
from machine import Pin, Timer, PWM
from time import sleep
pin = Pin(23)
servo = PWM(pin)
servo.freq(50)
servo.duty(anything here)
sleep(0.5)
Please help me with solution