Servos on a Raspberry Pi - No Jitter!

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • In this project, I control a servo using a potentiometer on a Raspberry Pi coded in Python. I show how to remove "jitter" from the servo arm by using the gpiozero library.
    This project was inspired by Lesson 20 in Paul McWhorter's Raspberry class: • Raspberry Pi LESSON 20...
    Project Code on Github
    RPi.GPIO library code: github.com/lpf...
    gpiozero library code: github.com/lpf...
    Song: Atch - This Feeling
    Music provided by Vlog No Copyright Music.
    Creative Commons - Attribution 3.0 Unported
    Video Link: • Atch - This Feeling (V...
    #raspberrypi #servo #python

Комментарии • 32

  • @noweare1
    @noweare1 Год назад +1

    Big difference using the zero library, thumbs up

  • @LuisWOLF-tz5th
    @LuisWOLF-tz5th Месяц назад

    Sweet information 👌 on the raspberry pi 😊

  • @paulmcwhorter
    @paulmcwhorter 2 года назад +1

    Excellent! Love the protractor.

  • @Fraunzi
    @Fraunzi 7 месяцев назад

    Great job Lori, I'm curious to see if you'd be interested in making a video on how to show analog feedback (voltage translated to degrees) from modifying these servos and adding a lead to the pot located at the base of the servo.

    • @lorisrobots
      @lorisrobots  7 месяцев назад +1

      No idea what you are suggesting

  • @keithlohmeyer
    @keithlohmeyer 2 года назад +1

    Excellent production as always. I will have to check out pigpio and look closer at the gpiozero. Thanks for posting

    • @lorisrobots
      @lorisrobots  2 года назад

      Thanks for watching Keith! I haven't caught up on your videos yet since I am trying to do the HW without getting hints from others 🙂! Using the alternate pin factory and gpiozero really seems to work well. One downside of gpiozero is it does not have I2C support yet. Another approach would be to use a servo (PWM) driver board. But I wanted to see if I could do it without resorting to such a board.

  • @hinriksvansson6138
    @hinriksvansson6138 Год назад +1

    Really well done, It helped me a lot to watch this video

    • @lorisrobots
      @lorisrobots  Год назад

      Glad it helped! Thanks for watching!

  • @VeryMuchBlessed
    @VeryMuchBlessed 6 месяцев назад +1

    Brilliant work. Thanks for making this video. Very helpful.

    • @lorisrobots
      @lorisrobots  6 месяцев назад

      Glad it was helpful. Thanks for watching!

  • @carldaniels6250
    @carldaniels6250 6 месяцев назад

    Great video! Putting together a servo driven gimbal for a drone and I'm trying to remove as much jitter as possible. Also, love that you use camelCase when coding - you've got a new subscriber! :)

  • @user-tq6hj8bh9y
    @user-tq6hj8bh9y 25 дней назад

    Noice :) , thanks.

  • @arnoldschmucker9977
    @arnoldschmucker9977 2 месяца назад

    Very good! Do you have a solution to servo jitter on the Arduino?

    • @lorisrobots
      @lorisrobots  2 месяца назад

      I believe you do not have this level of jitter on Arduino or Pico as you do on an Raspberry Pi. The RPi is using software generated pulses. I believe the Arduino and Pico will use hardware generated pulses. That was the key to stopping the jitter on the RPi was to send hardware generated pulses. Hopefully I have that right - still not an expert at this stuff.

  • @OZtwo
    @OZtwo 11 месяцев назад

    Thanks for this video! Just started playing around with the Raspberry Pi myself and wanting to create a simple eye using two servos and of course ran into the jitter issue that I am trying to work out. Could adding a server hat help as well? I started the project with one but found I could simply power two 9g servos off the GPIOs. Before testing the servo 'hat' I thought I would ask you first. Thank you for this great video!

    • @lorisrobots
      @lorisrobots  11 месяцев назад +1

      I have not tried to use a servo hat. The key (based on my experiences) was to use hardware generated pulses rather than software generated pulses. So if the servo hat works that way, then I would expect it to work. Thanks for watching!

  • @zorabixun
    @zorabixun Год назад

    Lori, as always good work, interesting project very helpful to understand many elements making difference to make the good working projects. It was interesting to see how you sort it out to eliminate the jumping arrow 👍
    Good to see nice girl between wolves 🤪😁 .... joking

    • @lorisrobots
      @lorisrobots  Год назад +1

      Yes - not too many women involved in this area. That is why I chose pink and purple colors for my brand. I want women to feel welcome here! Thanks for watching!