Using Servo Motors with ESP32

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

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

  • @MitzpatrickFitzsimmons
    @MitzpatrickFitzsimmons 4 года назад +36

    Best darn electronics workshop on RUclips!

  • @TinyMaths
    @TinyMaths 4 месяца назад +1

    Thank you! Just moving over from using only the ESP32 for controlling the 8 servos in my Rubik's cube solver, to using PCA9685 to control the servos instead; a bit of a learning curve but with repeated watches things are clear now and I've got the first few servos up an running. Your channel has been a great help in getting to grips with Arduino etc.

  • @walid4337
    @walid4337 4 года назад +28

    i learned from him in 3 months more than I learned in 3 years studying electronics in college 🎓

    • @mariogayoso
      @mariogayoso 4 года назад

      Have you watched all his videos?

    • @chipdipleraka7343
      @chipdipleraka7343 4 года назад +3

      could you imagine having him as a professor?! definitely a natural teacher. "we'll be looking at servos so time to get things moving..today in the worksh.... i mean classroom."

  • @gga3053
    @gga3053 4 года назад +7

    Perfect! Exactly what I need for an upcoming ESP32 project. Thank you so much for all your helpful videos.

  • @shishir.sachar4648
    @shishir.sachar4648 4 года назад +7

    MAN AFTER SUCH A LONG TIME ,NICE TO HEAR IT. THANK YOU FOR YOUR VIDEO.

  • @luisengineering
    @luisengineering 3 года назад

    your videos are the foundation for my Projects

  • @johnmellor6065
    @johnmellor6065 4 года назад +3

    always look forward to your videos, you seem to answer questions that arise when watching the videos

  • @phillipneal8194
    @phillipneal8194 3 года назад +2

    At 26:45 the 200 amp power supply remark cracked me up ! Thanks !

    • @tezzrexx
      @tezzrexx 10 месяцев назад

      Same XD

  • @OcenaSoft
    @OcenaSoft 4 года назад +3

    So pleased your working with the ESP32, this thing is great but has far too much to take in all at once

  • @toysareforboys1
    @toysareforboys1 4 года назад +1

    Using your video I built a ESP32 firework controller using i2c (32 cues) but of course with i2c it could handle up to 128 cues at least. Thanks so much, works so flawless :)

  • @hectorrosa470
    @hectorrosa470 5 месяцев назад +1

    Awesome Totally👍👍👍 You Are Awesome. Informative from begging to end. Covering mostly all bases.

  • @gulshan0799
    @gulshan0799 4 года назад +2

    Sir , i have waited so long to learn something new. Finally it's happening

    • @typingcat
      @typingcat 4 года назад

      Is "sir" in Indian English like "dude" in American English?

    • @gulshan0799
      @gulshan0799 4 года назад

      @@typingcat no, i think "dude" is something you can use with a friend or family but i use "sir" for someone who can teach me something......mostly

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

    THE OG! thank you once again for a great lesson (not only a tutorial)

  • @malch2843
    @malch2843 4 года назад +2

    Thank you, you videos are presented so well, you have the gift of being able to pass on sometimes complex information in a clear and concise manner. Best wishes to you and your loved ones in these crazy times.

  • @GeekDetour
    @GeekDetour 4 года назад

    This was a VERY comprehensive tutorial - I particularly loved the beautiful web page handling. Congrats and Thank you!

  • @indigoigloo
    @indigoigloo 4 года назад +11

    Are you psychic? How did you know my next project involves EXACTLY the topics you cover today??? THANK YOU!

    • @MrGatlin98
      @MrGatlin98 4 года назад

      Same here! I'm making a servo clock.

  • @georgevidas8256
    @georgevidas8256 4 года назад +2

    I’m a fan of your site and now I’m hooked on the ESP 32. You can spend hours perfecting the web based interface but it is a cool way to operate the controller.

    • @webforder4201
      @webforder4201 4 года назад +1

      If you want to skimp out you can get the ESP8266, most of the functionality is the same you just have to use different libraries

    • @georgevidas8256
      @georgevidas8256 4 года назад

      @@webforder4201 Absolutely correct - I just finished a miniature weather station which sits outside my house using the ESP8266. I check temperature, humidity and barometric pressure from my iPhone based on learnings from this channel.

    • @webforder4201
      @webforder4201 4 года назад

      George Vidas cool. I did a similar thing, except I send information to a raspberry pi using get requests.
      The good thing about the ESP-32 is you can do multi threaded things, but the same thing can be achieved using millis

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

    you are a diamond in the ruff. love all your vids but this one really helped me out . thanks

  • @marwen_dev
    @marwen_dev 4 года назад +1

    It has been a while ! Welcome back

  • @rohanprak
    @rohanprak 4 года назад

    thanks a lot for such a detailed video step by step. i didn't do electronics or computer science engg, but still was able to understand and implement.

  • @ArmandoGonzalez-np2wt
    @ArmandoGonzalez-np2wt 2 года назад

    Fantastic video covering everything I needed for my project!!! Thanks for the help!

  • @qzorn4440
    @qzorn4440 4 года назад

    this is a great place to find up to date diy info... saves me from chasing after not so koool stuff... thanks...:)

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

    Great video. Clear and well explained.

  • @WillPemble
    @WillPemble 4 года назад +2

    Hi Bill!
    Thank you for your amazing content. Clear, concise, and cheerful.
    I spend most of my free time building backyard roller coasters. But now that I'm starting a #vanlife project, Arduino - and your tutorials -will figure massively into my life! So, again, thank you!

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

      "cheerful" lol. I would never describe Bill as cheerful! Great guy and info though!

  • @serenadenphoto
    @serenadenphoto 4 года назад +1

    A lot of useful information. Thank you.

  • @jamesgoacher1606
    @jamesgoacher1606 4 года назад +1

    I need to go to the earlier video you mentioned because Servo Motors do not behave in the way I thought it seems and I was collecting questions as you spoke.
    I'll be back. :-)

  • @wbillich
    @wbillich 3 месяца назад

    You are absolutely fantastic. Thank you so much.

  • @DanielGarza0
    @DanielGarza0 10 месяцев назад

    Dude you are my hero.

  • @shazmiah
    @shazmiah 4 года назад +2

    Hi. I've been watching your videos for many years with great interest. I love the clear concise instructions, present ation - especially the graphics and animations!
    Would you be kind enough to let me know where you get the graphics from and what software you use to put together the animations an videos?
    Your avid fan!

  • @johnhadley1117
    @johnhadley1117 3 года назад

    this really helps for pwm and html nicely organized KKudos!!

  • @tenderermean000
    @tenderermean000 4 года назад +2

    Howdy! Great video! Quick question. What exactly is that breadboard power supply. Seems super useful!

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

    Excellent as usual. A couple of questions: Does the presence of multiple timers mean you can run servos independently? And please provide a video about controlling servos via the built-in Bluetooth.

  • @saqibjaved1900
    @saqibjaved1900 3 года назад

    impressive professionalism.
    would you make a tutorial on how to send temperature sensor data from one esp32 to and operating servo based on that data on another esp32, using espNOW protocol. I searched your channel but could not find a video on this topic. espNOW is a very much awsome protocol.

  • @heinrichhelmbold419
    @heinrichhelmbold419 4 года назад +2

    Amazing video as always! Thank you. Please would you consider doing a pwm dc motor driver with the esp32?

  • @Leroys_Stuff
    @Leroys_Stuff 4 года назад

    Thank you Bill great video

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

    Thank you so much that was very helpful, in love with your titorials

  • @bluescream7463
    @bluescream7463 4 года назад

    Well done, thanks for the info and the explanation ! Please keep doing the things you do, it is so interesting and well explained. Big thumb up !!

  • @pete162
    @pete162 4 года назад +3

    Hi Bill, Your instructions are very helpful. Thank you! Have you been also been setting up lessons for 3D Experience?

  • @TheFreakzeichen
    @TheFreakzeichen 4 года назад +1

    great video, thanks!

  • @graphboss
    @graphboss 4 года назад +1

    thank you very much for your nice video

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

    Servo with 555 timer is also interesting cool video.😁👍

  • @electronic7979
    @electronic7979 4 года назад +1

    Helpful video 👍

  • @kmatt999
    @kmatt999 4 года назад +1

    Possible use for 900+ servos at one time, field of small solar panels in a hex shape to sorta resemble flowers, 2 servos per pannel and configure each to get the panels pointed at the best light using some light sensors, probably a master sensor that directs all the servos to go to applicable locations. Probably super inefficient compared to a few big pannels but would look cool?

  • @MicrobyteAlan
    @MicrobyteAlan 4 года назад

    Very interesting and well presented thanks from Orlando.

  • @tedsykora1858
    @tedsykora1858 4 года назад +1

    Good stuff

  • @markharrisllb
    @markharrisllb 3 года назад

    Please may I ask why the Arduino IDE was used in preference over Platformio? Is it simply because more people have Arduino or is there a reason Platformio doesn’t work with ESP?
    As always a phenomenal video, thank you.

  • @philgo2024
    @philgo2024 4 года назад

    So interesting and so well presented thanks from France. I"m learning all i need to know for my projects on your videos and blog !

  • @codecage9333
    @codecage9333 4 года назад +4

    Should there have been a common ground between the ground connection of the PCA9685 and the ground of the 5V supply for the servos?

    • @mannyperie4014
      @mannyperie4014 3 года назад

      It depends if your servo is using the controller board's voltage supply...like stated in the video, its better to use external power supply and ground.

  • @EmbeddedClub
    @EmbeddedClub 4 года назад

    Great Tutorial!

  • @nicksparks3543
    @nicksparks3543 3 года назад

    Best tuts on the net for ESP32, Suubbb'd

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

    That was a nice video. How would you move both motors at the same time instead of one at a time?

  • @baseldaoudrajha3835
    @baseldaoudrajha3835 3 года назад

    thanks for this video cuz I was trying to hook up a servo to a Raspberry pi Pico but don't know how to wire it externally

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

    Can someone explain why it’s critical to have ground reference from the servo (just some links to reading material would be nice) also why and how is it safe to having two negative connections from to two different power sources and voltages

  • @cowyngodlonton7921
    @cowyngodlonton7921 4 года назад +1

    Love the vids!

  • @Lunolux
    @Lunolux 4 года назад +2

    nice video
    11:36 why we need to connect the servo ground cable to the esp32 ground ? never understand this )=

    • @hoppynaki
      @hoppynaki 4 года назад +1

      All devices need to be connected to a common ground. This ensures that all the devices have a common reference point. If they are not ground common the voltage between the devices could vary thus causing data corruptions.

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

    this vid was so useful thnk u so much

  • @JohnDoe-yh9ll
    @JohnDoe-yh9ll 4 года назад

    This is really cool would be nice if you could show how to connect both these thru a bluetooth gamepad app for android or ios.

  • @batuhansakal8771
    @batuhansakal8771 4 года назад

    Could you make CANBUS communication via ESP32 please? I guessed you mentioned it in the previous esp32 video.

  • @funwithcircuits8222
    @funwithcircuits8222 4 года назад +1

    Please also do a video on MQ-6 Gas Sensor

  • @bignosethethird
    @bignosethethird 4 года назад +1

    I am busy programming an 8-legged Lego Technic robot with 33 SG90-servos and 2 stepper motors on an ESP32, thanks to I2C and 3 daisy-chained PCA9685s. Who can beat 33 servos?

  • @funwithcircuits8222
    @funwithcircuits8222 4 года назад +1

    Please do a video on HW 139 touch sensor with arduino

  • @tonysfun
    @tonysfun 4 года назад +1

    Very pro videos! Like your videos, simple and slow enough for me! ha ha ha

  • @Bartnl1985
    @Bartnl1985 4 года назад

    Could you also make a tutorial about using servos and LED strip('s) at the same time by PWM with the 16p controller?

  • @martwa-craftcosplay1986
    @martwa-craftcosplay1986 3 года назад

    thanks a lot for your video!

  • @patricklepoutre
    @patricklepoutre 4 года назад

    Great video as always. Those 9685 boards are very cheap. I read we could set the output to full on, to mimic a gpio output, is it true? Could we drive other equipment using this principle, like relay or mosfet? Others?

  • @electronlibre7544
    @electronlibre7544 3 года назад

    Super tuto.merci.

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

    Very interesting thanks

  • @magnuswootton6181
    @magnuswootton6181 3 года назад

    those servo testers are good for setting the 0 position without backdriving them.

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

    16:33 what happens to the timers?

  • @-robo-
    @-robo- 4 года назад

    Thank you.

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

    Do you have a tutorial for use in Home Assistant?

  • @trevorloughlin1492
    @trevorloughlin1492 4 года назад

    This could be very useful in combination with mechanical amplifiers for my telerobotic army to rule the world. But since I am a bit busy on my time machine right now, could you come up with some project using servo motors and mechanical amplifiers?

    • @patricklepoutre
      @patricklepoutre 4 года назад

      You're not ambitious. Why just rule the world when you can rule the UNIVERSE, hiar hiar hiar.

  • @khbohl
    @khbohl 4 года назад

    In the part with the two servos, they are moving a bit bumpy, did you figured out why they not running smoother?

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

    Thanks!

  • @cliffbuck4905
    @cliffbuck4905 4 года назад

    Hi
    I like your work
    I’m new at this and I’m having trouble with my project I’m trying to making a popup target with ESP8266,ESP32, limit switch and Wi-Fi. All I wanted to do is win the target is hit then falls and hit the limit switch and make the servo motor go to 180° and back down every time the limit switch is hit it brings the target up.I’ve been working on this for about six months. I’m about ready to give up can you help me please.

  • @SuperToughnut
    @SuperToughnut 3 года назад

    Can gears be used to expand/fine-tune the limit of a servo?

  • @raghibshams333
    @raghibshams333 4 года назад

    Please make any implementation video of esp-32 using the esp32 mcu (module) only too..... I'm requesting since a long time... pls....

  • @supperslash1376
    @supperslash1376 4 года назад +1

    I no this is a weird question, but how do you make your animations? 11:31" Are you useing a presentation software, or special software. After effects?
    I am just asking because I LOVE it keep up the great work. :D

    • @jankorteweg1
      @jankorteweg1 4 года назад

      dronebotworkshop.com/about-dronebot-workshop/faq/

    • @jankorteweg1
      @jankorteweg1 4 года назад

      Q - What video editing software and equipment do you use?
      A - I use Apple Final Cut Pro to create videos. The sound is edited using the amazing open-source tool Audacity. I shoot with Canon cameras and use Shure and Blue microphones. I make use of Apple OSX, Ubuntu Linux and Microsoft Windows to create my content.
      Q - What software do you use to create those animated diagrams in the videos?
      A - I’m sure this is the most asked question I get! I use Apple Keynote to make the animated diagrams. Actually, I use Keynote for many graphic applications, as I’m essentially illiterate when it comes to Photoshop.

    • @supperslash1376
      @supperslash1376 4 года назад

      @@jankorteweg1 Thank you so much, and great Work. :D

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

    What are the SDA and SCL on ESP32-S3? There is no port 22...

  • @TheRealFrankWizza
    @TheRealFrankWizza 4 года назад +1

    Nevermind, You answered this in the video.

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

    max LEDs used in a project by me is 18 and maximum servos used by me in a single project is 5 and he was talking about 990servos i don't think simple projects can use upto 16 servos

  • @heliarms
    @heliarms 3 года назад

    Great video! I tried this but my servo buzzes consistently when not moving. Do you know why?

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

      you need to change the code because you are driving the servo past its limit, i had the same problem with the basic stamp 2

  • @derpclub4948
    @derpclub4948 Месяц назад

    what did the bag do

  • @capistranogardener6100
    @capistranogardener6100 4 года назад

    If you disconnect the ESP32 from your PC after running the sketch, does the code remain on the device for use with a different power supply so that it can run on its own?

    • @malch2843
      @malch2843 4 года назад

      Yes, the code is stored on the Esp32, so when you power it up from a different power supply the code will automatically start running.

    • @capistranogardener6100
      @capistranogardener6100 4 года назад

      @@malch2843 Thank You for that info

  • @PauloHenrique-hg7iw
    @PauloHenrique-hg7iw 4 года назад

    is it possible to transmit data as an im link from one to another?

  • @andrewk6008
    @andrewk6008 4 года назад

    Well hello! :)

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

    I need a big favor from you. First let me tell you what I'm going through. No servers will run if I use a breadboard! I use those little breakout boards for powering the breadboard and if I use those I have to crank up the power supply to like around 9:00 or 10 volts to even get close to 5 volts output from those breadboard controllers. And if I use a substantial digital servo forget it you can't use a breadboard at all I have to connect it directly to power from some kind of power source.
    It has taken me feeling like a loser to finally figure out what was going on. Now I'm faced with the dilemma I need to buy a bench top power supply is the one I had was terrible I don't want another terrible import that is going to be flaky unable to control amperage and have no presets or memory slots. I don't have experience in knowing what to buy and what not to buy and I don't have a lot of money. Could you please tell me if there's anything acceptable that I could buy for under $150 I know that isn't a lot of money for such a thing but again it may be enough for hobby stuff like this. I had a really nice tectonics one but it got broken in a move and I threw it out I should have tried to get it fixed it was a combination power supply with straight DC presets memory slots whatever you want to call them and also had a decent signal generator I also had a really nice little tectronics o scope with that God damage to and it was beyond repair almost certainly but if I could just be confident in buying an inexpensive power source it would be a great help for me. I would like to build some tiny power supplies for individual projects but that's in the future
    Any suggestions that you could give me would be greatly appreciated please anyone chime in here

  • @asphalt9zk8dp42
    @asphalt9zk8dp42 4 года назад

    i have always get error in checking code on arduino app 1.8.9 (giude me please)🙏🙏🙏

  • @zainalhas7416
    @zainalhas7416 4 года назад

    Love your

  • @en_coded
    @en_coded 4 года назад

    esp is not cheaper than arduino?

  • @chetanreddy8875
    @chetanreddy8875 4 года назад

    Sir home automation plz 🙏

  • @DomeGang
    @DomeGang 4 года назад +1

    Sir please make a video on aurdiuno uno programs in simple way so any one can understand.love u from india

    • @webforder4201
      @webforder4201 4 года назад +1

      Pretty sure there are tutorials for the arduino uno. But it’s quite simple the program the Uno, you can select examples in the arduino IDE, if you are having a hard time understanding. The first example “blink” will show you how it kind of works

    • @DomeGang
      @DomeGang 4 года назад

      @@webforder4201 thank you sir

    • @webforder4201
      @webforder4201 4 года назад

      @@DomeGang No problemo, you can use sites like instructables.com if you are having a really hard time aswell

    • @DomeGang
      @DomeGang 4 года назад

      @@webforder4201 I don't have pc or laptop so I decided to learn it before I get it.but I don't have enough mony to get it.thank you one again your a humble person.thank you

    • @webforder4201
      @webforder4201 4 года назад

      @@DomeGang
      Your welcome, lol.
      www.programmingelectronics.com/arduino-crash-course/
      This site should also teach you the basics.
      Also, I think there are simulators for arduino aswell.

  • @gilrodriguez6209
    @gilrodriguez6209 8 месяцев назад

    I have this problem
    ledcAttachPin(pin, getChannel()); // re-attach the pin after frequency adjust
    | ^~~~~~~~~~~~~
    | ledcAttach
    c:\Users\DELL\Documents\Arduino\libraries\ESP32Servo\src\ESP32PWM.cpp: In member function 'void ESP32PWM::attachPin(uint8_t)':
    c:\Users\DELL\Documents\Arduino\libraries\ESP32Servo\src\ESP32PWM.cpp:235:17: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
    235 | ledcAttachPin(pin, getChannel());
    | ^~~~~~~~~~~~~
    | ledcAttach
    c:\Users\DELL\Documents\Arduino\libraries\ESP32Servo\src\ESP32PWM.cpp: In member function 'void ESP32PWM::detachPin(int)':
    c:\Users\DELL\Documents\Arduino\libraries\ESP32Servo\src\ESP32PWM.cpp:263:9: error: 'ledcDetachPin' was not declared in this scope; did you mean 'ledcDetach'?
    263 | ledcDetachPin(pin);
    | ^~~~~~~~~~~~~
    | ledcDetach
    exit status 1

  • @davidbradley3074
    @davidbradley3074 4 года назад +1

    *************** I need a parts list to buy against, can someone help me? ******************

  • @zaprodk
    @zaprodk 4 года назад

    Eye-squared-see :)

  • @KevinHarringtonBuildsRobots
    @KevinHarringtonBuildsRobots 4 года назад

    I am glad to see my library was useful! One point i would add is that i also made a library that wrapps the linearization calibration for the ADC, to give more accurate ADC readings: github.com/madhephaestus/ESP32AnalogRead Its much more accurate than the built in analogRead()

    • @alladyn21
      @alladyn21 3 года назад

      Hello
      Is it possible to rotate the servo 360 by e.g. 1000 degrees with your library?

    • @KevinHarringtonBuildsRobots
      @KevinHarringtonBuildsRobots 3 года назад

      @@alladyn21 those types of servos are limited to a max of 180 degrees. the limitation is in the servo itself. There are "360 degree continuous rotation" servos that are controlled for velocity instead of position, but are fairly uncommon. There are also serial bus servos such as the lx-16a that work well with the ESP32.

    • @alladyn21
      @alladyn21 3 года назад

      @@KevinHarringtonBuildsRobots yes i know i have a servo that can turn around, but i asked how to do it with your library. Thanks for the answer

  • @rockyx3290
    @rockyx3290 4 года назад

    I am planning to build a low cost remotw controlled car

  • @dr_ned_flanders
    @dr_ned_flanders 3 года назад

    \*thinks\* I could make an esp32 millipede. Damn it! Not enough servo motors.

  • @memesoo.kang_
    @memesoo.kang_ 4 года назад +2

    Lol I just burned my servo by connecting it to 7V, I opened YT to find a way to fix it(with doubt).
    And boom. What a timing.
    Turns out, you can connect it to the 5V with a capacitor and that may fix the issue BEFORE connecting to a 7V for more power.
    learn.adafruit.com/adafruit-arduino-lesson-14-servo-motors/if-the-servo-misbehaves

    • @webforder4201
      @webforder4201 4 года назад

      What do you have that uses 7V, just interested. Did you put too many batteries?

    • @memesoo.kang_
      @memesoo.kang_ 4 года назад

      @@webforder4201 7.4 ish cuz it was 2cell lipo
      It was Vin pin in Arduino

    • @khbohl
      @khbohl 4 года назад

      For 7-8.4 V you must use a HV Servo.

  • @Ideatronic1
    @Ideatronic1 4 года назад

    HI IM IDEATRONIC CHANNEL ELECTRONIC