006 - ESP32 MicroPython: Control Servo Motor in MicroPython | PWM

Поділитися
Вставка

КОМЕНТАРІ • 41

  • @AloSilvestre
    @AloSilvestre 10 місяців тому +2

    Great explanation, thank you very much!!!

  • @aguilarjulianandres
    @aguilarjulianandres 3 роки тому +4

    should have more views. perfect explanation.
    thanks

    • @TechToTinker
      @TechToTinker  3 роки тому +1

      @Julian Aguilar, wow that's cool man. Thanks...

  • @Tolya421.
    @Tolya421. 3 роки тому +2

    Класс 👍 Все понятно и доходчиво!

  • @thweiser
    @thweiser 3 роки тому +1

    Great video with a perfect explanation! Well done 👍👍👍

  • @gingercholo
    @gingercholo 3 роки тому +7

    my servo doesn't spin

  • @mohammadaminkaramali
    @mohammadaminkaramali Рік тому +1

    Hello! Good job!
    Can you guide me? I want to shift the phase of my PWM signal. How is that possible?
    and also can esp32 generate reverse PWM?
    Thank You.

  • @mytechnotalent
    @mytechnotalent 4 роки тому +1

    YAY a simple Servo!

    • @TechToTinker
      @TechToTinker  4 роки тому

      and it was simple to control, no need for any library :). Btw, thanks Kevin

  • @ProfessorMarcosCarnevali
    @ProfessorMarcosCarnevali 4 роки тому +1

    Parabéns pelo vídeo!!! Very good!!! Muito bom!!!

    • @TechToTinker
      @TechToTinker  4 роки тому +2

      Thank you @Professor Marcos Carnevali

  • @dishendra.
    @dishendra. 3 роки тому +1

    did you modify the SG90 for continuous rotation?

    • @TechToTinker
      @TechToTinker  3 роки тому +1

      @Dishendra Mishra, it happens when you apply a PWM outside the accepted PWM duty.

  • @yoshimochii
    @yoshimochii 6 місяців тому

    is it possible to utilize the degrees greater than 180? cuz at first, the servo was rotating 360 degrees, so is it possible to utilize that?

  • @LucaL1fe
    @LucaL1fe 3 місяці тому

    are there servos which can't be controlled by angle? by duty(70) it spins left and with duty(80) it spins right, but it never stops. really annoying in my case

  • @EyadGamer2
    @EyadGamer2 6 місяців тому

    Thnx too

  • @PhanSamboriithiporl
    @PhanSamboriithiporl 11 місяців тому

    can you control servo to work full 360 degree?

  • @mytechnotalent
    @mytechnotalent 4 роки тому +2

    You should add another motor and make a simple walking robot.

    • @TechToTinker
      @TechToTinker  4 роки тому

      Hi Kevin, thank you for the suggestion. I am planning to do that maybe after timers and multitasking.

    • @mytechnotalent
      @mytechnotalent 4 роки тому

      @@TechToTinker awesome! Seeing a walking robot with MicroPython will REALLY draw MASSIVE audience.

    • @TechToTinker
      @TechToTinker  4 роки тому

      I am thinking to bring this back (I am not able to play with this again) to life but this time with MicroPython. Hopefully possible.
      ua-cam.com/video/R8QRPjkcPcU/v-deo.html

    • @mytechnotalent
      @mytechnotalent 4 роки тому

      @@TechToTinker That is amazing but I think honestly people like simple and "yea I can do that" I would focus more on a simple primitve MicroPython robot on a breadboard with servos making it walk rather than all of the complexity.

    • @TechToTinker
      @TechToTinker  4 роки тому

      Noted on that @Kevin and you are right.

  • @王振恒
    @王振恒 2 роки тому

    I can change the freq but when I use the pwm.duty it doesn't work,does anyone know how to solve it?

  • @alech3630
    @alech3630 3 роки тому

    Как установить модуль machine? Pip ругается на pycrypto и рушит всю установку

    • @TechToTinker
      @TechToTinker  3 роки тому

      Install first the Micropython firmware inside the ESP32. Carefully follow this video for that: ua-cam.com/video/elBtWZ_fOZU/v-deo.html

  • @phanidharkumar7007
    @phanidharkumar7007 3 роки тому

    I have tried connecting servo motor's power and ground directly to ESP32 as well as to external supply and also checked for various pwm duty cycle values but its not rotating. Infact, I have even used for a for loop with values of pwm duty from 0 to 120 to check from which value it starts rotating but of no use. Someone please help

    • @TechToTinker
      @TechToTinker  3 роки тому

      Have you try adding some delays?

    • @phanidharkumar7007
      @phanidharkumar7007 3 роки тому

      @@TechToTinker Everything sir. I even changed the pin to which the servo is connected and tried but no use. I got a doubt whether the servo is working fine and tried using it with arduino and it was working perfectly fine. I used an external 6V battery for the servo.And I have searched about the problem using all kinds of words/phrases. Only in one of the forums I found one person having the same problem but no solution was provided there as well.

    • @TechToTinker
      @TechToTinker  3 роки тому

      @@phanidharkumar7007if you already tried everything then what else? You should try reading the datasheet of your servo. Basically determine the following:
      1. How many volts should be use to power the servo?
      2. Common ground should always be observed! That is connecting ESP32 ground to external power supply.

    • @phanidharkumar7007
      @phanidharkumar7007 3 роки тому

      ​@@TechToTinker Sir, it's the hobby servo. I have given 6v external power supply. And yes I made sure of the common ground. However, as per your suggestion, I'll try again and get back to you

    • @karum1
      @karum1 2 роки тому

      @@phanidharkumar7007 try to change the firmware version. I was trying this to do this on esp32v1.17 but it didn't work. When I downgrade to v1.13 it works.

  • @michaelfogarty5894
    @michaelfogarty5894 4 роки тому +1

    Would love to use microPython in my projects but its just so much more work than Arduino.
    #include
    myservo.attach();
    myservo.write(90);
    done, supper easy.

    • @TechToTinker
      @TechToTinker  4 роки тому +5

      Hi @michael fogarty, I completely respect your thoughts and I appreciate for leaving a comment. I would just recommend to leave your eyes open sometimes we need to look at different angle, perspective. Cheers.

    • @sg8nj
      @sg8nj 2 роки тому

      There's no simple way achieve this angle?. Is there any package?