Це відео не доступне.
Перепрошуємо.

Rotate your servo motor using arduino and python's pyfirmata.

Поділитися
Вставка
  • Опубліковано 29 бер 2021
  • If you like my work you can buy me a coffee: www.buymeacoff...
    This is a tutorial about rotate a servo using python and arduino uno. I use pyfirmata python module for rotate the servo.
    If you face any problem, let me know in the comment section.
    servo with python
    python servo control
    how to control servo with python
    python servo control
    servo control python pyfirmata
    pyfirmata servo control
    servo pyfirmata
    servo pyfirmata arduino
    servo control with python arduino pyfirmata

КОМЕНТАРІ • 75

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

    By far the most succinct presentation of controlling servos with Python I've seen, thank you :)

  • @Dtomper
    @Dtomper 2 роки тому +1

    Amazing video my friend

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

    Thanku so much bro...Your video complete my project...thanks a lot

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

      welcome

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

      @@OIRLDBOX bro have you upload video on loadcell with python

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

      Bro i need a code for reading weight using loadcell and python plz

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

      @@saqlainhaider1353 my exam is near at hand. so I can help you after my exam.

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

    Thanku so much bro !

  • @ivuvigivo5719
    @ivuvigivo5719 2 роки тому +1

    Superb

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

    Thank youu so muchh

  • @henzfork
    @henzfork 2 роки тому +2

    Thank you for the tutorial. very helpful
    I have a question, I'm trying to use python to control multiple servos using a servo driver (PCA9685)
    Is there a python command I can use to address different channels among the 16 different servo channels on the servo driver?
    Since I can't simply write to the digital pins directly (which are connected to SCL & SDA)
    I'm still new to all of this.. Thanks again

    • @niranjs5672
      @niranjs5672 Рік тому

      i am looking for the same thing, did you get the solution now?

  • @amirjoy8290
    @amirjoy8290 2 роки тому +1

    I am working on a computer vision project that takes the angle if the knee while moving and I want to take that angle value and make the servo move with the same value and when I write the code and everything thing is going well the servo just doesn't move

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

      check the wiring and your code. also check your angle that you are getting from your project.

  • @Robots-and-androids
    @Robots-and-androids 8 місяців тому

    would you please send me the code? also, does this work for TWO simultaneous servos?

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

    thanks

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

    wonderful explanation works fine for me

  • @bazaiii3077
    @bazaiii3077 3 роки тому +3

    Do you know how to control an lcd screen on python with an arduino board ?

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

      yes. It's possible with pyserial. Soon I will make a tutorial about it. Thanks for the idea.

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

      @@OIRLDBOX Do you have any advice about the LCD screen because I am stuck on my project?

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

      @@bazaiii3077 cyberasylum.janithw.com/arduino-and-python-serial-connection-with-lcd/
      check it out

  • @co-valentbond8307
    @co-valentbond8307 3 роки тому +1

    Hey deshi pola......
    Love it....😉

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

      Thanks

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

      By the way
      Bujsen kivabe?

    • @co-valentbond8307
      @co-valentbond8307 3 роки тому

      @@OIRLDBOX are vai bangalir rokte bangla, tai apnar English pronunciation ekebare khati English hocche na🙂

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

      @@co-valentbond8307 😂😂😂
      Buke ashen vai😂

    • @co-valentbond8307
      @co-valentbond8307 3 роки тому

      @@OIRLDBOX cole aschi😁

  • @startuptech7357
    @startuptech7357 2 роки тому +1

    hello my IDE cant find rotateServo

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

      did you rename your function properly?

  • @ibrahimeren9544
    @ibrahimeren9544 Рік тому

    Can i use your code on nodeMCU instead of arduino uno and can you tell me how please

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

    I have a project where I want to move a servo to one of three positions.
    The idea is to have it something like:
    If value is in range from 1-5 move servo to position 1 (20 degree)
    If value is in range from 6-8 move servo to position 2 (60 degree)
    If value is in range from 9-10 move servo to position 3 (80 degree)
    Can you help me do that?
    The value comes from a device that is measuring something.
    Thanks for the video! The connection is exactly what I needed!

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

      I am sorry bro, I am kinda busy. My exam is near at hand. so I can help you after my exam. thank you.

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

      hey bro,check it out.
      drive.google.com/file/d/1yGFPvw3HaS7geFB9AhrORSOg4FQ1SUR5/view?usp=sharing
      I hope this will cover that you ask for. If it doesn't than You have to wait until my exam. And you should try yourself. Thank you.

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

    how do i make the motor rotate back after some time

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

    How do I make my servo motor rotate continuously?

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

      use while loop and correct your angle of servo in code.

  • @Richard-kx2zx
    @Richard-kx2zx 2 роки тому +1

    Is it possible to increase the rotational speed of it?

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

      yes

    • @Richard-kx2zx
      @Richard-kx2zx 2 роки тому +1

      @@OIRLDBOX how do I do it? When I decrease the sleep time it doesn’t change it speed.

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

      @@Richard-kx2zx recheck your code.

    • @Richard-kx2zx
      @Richard-kx2zx 2 роки тому

      @@OIRLDBOX all I did was change sleep(0.015) to sleep(0.001) but there was no difference between the two speeds. Could it be because of some limitations of Python?

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

      @@Richard-kx2zx remove the sleep function
      i mean make it 0. than observe it. If nothing happens than may be their is a python issue

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

    How do I make it do 1 full rotation?

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

      I used 180 servo. so in range it was 0-180. If you have a 360 servo than just simply change the range.

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

    Sir it's nice video , do you done with soil sensor .

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

      sorry
      I didn't try that.

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

      @@OIRLDBOX that 5n sir
      But sir can u tell me, how to import SERVO na in that way we need import soil sensor also , if yes .
      Can u tell me if u have any idea.

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

      @@meghapatil2249 soil sensor is something like PIR motion sensor. watch my video about pir motion sensor. mechanisms are same.

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

      @@OIRLDBOX thank you sir.

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

    bro how ur circuit looks like? is there any pics or link to show?

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

      if possible pls help because im very lost.

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

      @@xaviersim9450 bro
      circuit is available in the video
      i explained the circuit also

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

    What about stepper motor? How would you go about that?

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

      Yeah
      that was also quite easy.
      My stepper driver is malfunctioning. so i am unable to make a video on it.
      thank you.

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

      @@OIRLDBOX using pyfirmata itself?? Can you give a link to some refrence code.. thanks

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

      @@judefernandes8481 you have to use pymata which depends on Firmata protocol. and pyfirmata is also depends on firmata protocol.
      check it out.
      github.com/MrYsLab/pymata4/blob/master/examples/stepper.py

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

      @@OIRLDBOX I don't understand why there are 4 pins for Arduino it should be the enable, direction and pulse right?
      I basically didn't understand the Arduino pins part .... And what if I want to rotate it just to a particular angle?? How do I do that?

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

      @@judefernandes8481 NUM_STEPS define the steps number
      so you need to change it as how many steps you need. and in line 41 use -500 for oposite direction

  • @c.yigittolay3673
    @c.yigittolay3673 2 роки тому

    How do we connect multiple servo motors?

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

      use multiple pins
      give signal using code
      done

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

    how do i learn arduino and python's pyfirmata to build electronics circuit

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

      First you need to learn the basic of arduino. Learn arduino programming language. Build some basic project and than come back to pyfirmata. It is super easy to learn.

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

      @@OIRLDBOX would you be doing a beginner tutorial on ardunio if not who's channel (s) would you recommend

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

      @@kevongraham2849 I recommend you to follow documentation. You can also watch youtube videos. "
      Paul McWhorter" He is good.

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

      @@OIRLDBOX thanks much really appreciate the help