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

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 มิ.ย. 2024
  • In this video, we will explore another example application of PWM which is controlling the angle of rotation of servo motor using MicroPython
    For more details visit my blog post at:
    techtotinker.com/2020/09/15/0...
    Please do Like, Comment, Share, and Subscribe.
    Thank you,
    #TechToTinker #MicroPython, #ESP32
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 43

  • @AloSilvestre
    @AloSilvestre 5 หลายเดือนก่อน +3

    Great explanation, thank you very much!!!

  • @aguilarjulianandres
    @aguilarjulianandres 3 ปีที่แล้ว +3

    should have more views. perfect explanation.
    thanks

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

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

  • @vladimirastrelin1719
    @vladimirastrelin1719 ปีที่แล้ว

    Amazing..it works perfectly. Thanks a lot for your great tutorial !

  • @Tolya421.
    @Tolya421. 3 ปีที่แล้ว +2

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

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      Glad you loved it. Thanks.

  • @thweiser
    @thweiser 3 ปีที่แล้ว +2

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

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว +1

      Glad it helped! Thanks.

    • @ounsspace2573
      @ounsspace2573 2 ปีที่แล้ว +1

      Yeah😀😀😀😀🙃🙃🙃

  • @ProfessorMarcosCarnevali
    @ProfessorMarcosCarnevali 3 ปีที่แล้ว +1

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

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว +2

      Thank you @Professor Marcos Carnevali

  • @gingercholo
    @gingercholo 2 ปีที่แล้ว +4

    my servo doesn't spin

  • @EyadGamer2
    @EyadGamer2 26 วันที่ผ่านมา

    Thnx too

  • @mytechnotalent
    @mytechnotalent 3 ปีที่แล้ว +1

    YAY a simple Servo!

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

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

  • @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.

  • @yoshimochii
    @yoshimochii หลายเดือนก่อน

    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?

  • @anokhautomation4453
    @anokhautomation4453 3 ปีที่แล้ว

    soooper

  • @PhanSamboriithiporl
    @PhanSamboriithiporl 6 หลายเดือนก่อน

    can you control servo to work full 360 degree?

  • @dishendra.
    @dishendra. 3 ปีที่แล้ว +1

    did you modify the SG90 for continuous rotation?

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

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

  • @michaelfogarty5894
    @michaelfogarty5894 3 ปีที่แล้ว +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  3 ปีที่แล้ว +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 ปีที่แล้ว

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

  • @user-bs6cj1dx1m
    @user-bs6cj1dx1m ปีที่แล้ว

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

  • @mytechnotalent
    @mytechnotalent 3 ปีที่แล้ว +2

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

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

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

    • @mytechnotalent
      @mytechnotalent 3 ปีที่แล้ว

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

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      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.
      th-cam.com/video/R8QRPjkcPcU/w-d-xo.html

    • @mytechnotalent
      @mytechnotalent 3 ปีที่แล้ว

      @@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  3 ปีที่แล้ว

      Noted on that @Kevin and you are right.

  • @phanidharkumar7007
    @phanidharkumar7007 2 ปีที่แล้ว

    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  2 ปีที่แล้ว

      Have you try adding some delays?

    • @phanidharkumar7007
      @phanidharkumar7007 2 ปีที่แล้ว

      @@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  2 ปีที่แล้ว

      @@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 2 ปีที่แล้ว

      ​@@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.

  • @alech3630
    @alech3630 2 ปีที่แล้ว

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

    • @TechToTinker
      @TechToTinker  2 ปีที่แล้ว

      Install first the Micropython firmware inside the ESP32. Carefully follow this video for that: th-cam.com/video/elBtWZ_fOZU/w-d-xo.html