Page 1 of 1

The problem with ESP 32 flashed micropython.

Posted: Wed May 18, 2022 1:02 pm
by Darklorian
Greetings to all. Today I tried to work with ESP 32 for the first time by connecting PWM sg-90 to it, and I ran into the problem that the signal to the servo simply does not come out. I tried to re-connect pins and change pins in the code itself, but literally nothing helps. I tested this servo in parallel on an arduino uno, and it works. Perhaps I do not know any subtleties, or is it still a defective part?

My code:
  1. >>> from machine import Pin, PWM
  2. >>> pwm = PWM(Pin(15))
  3. >>> pwm.duty(15)
  4. >>> pwm.freq(50)
  5. # ignores my actions
Full name of my ESP - ESP-WROOM-32. Help me please :(

Re: The problem with ESP 32 flashed micropython.

Posted: Wed May 18, 2022 3:16 pm
by Darklorian
At the same time, the same pin on IN works