I dismantled a (working) SG90 servo from an old Arduino project and I tried to test it with Micropython.
With the code provided in the website I was not able to make it work.
Once I write these lines:
Code: Select all
from machine import Pin, PWM servo = PWM(Pin(14), freq=50, duty=77) servo.duty(30) servo.duty(122)
I thought the problem in the current, so I attached the servo to an external 5v power source (I tried 3.3v as well with the same results) but it didn't solve the problem.
Tried it with both an Wemos D1 mini and an Amica mcu.
Un fortunately I have only one servo as of now, but as I said, it is working fine with Arduino.
Any idea why it is now working?
I treid the same with Servo library but it still doesn't work.