The problem with ESP 32 flashed micropython.

Darklorian
Posts: 2
Joined: Wed May 18, 2022 12:56 pm

The problem with ESP 32 flashed micropython.

Postby Darklorian » Wed May 18, 2022 1:02 pm

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 :(

Darklorian
Posts: 2
Joined: Wed May 18, 2022 12:56 pm

Re: The problem with ESP 32 flashed micropython.

Postby Darklorian » Wed May 18, 2022 3:16 pm

At the same time, the same pin on IN works

Who is online

Users browsing this forum: Bing [Bot] and 73 guests