Using Servo Motors with ESP32

Поділитися
Вставка
  • Опубліковано 27 лис 2024

КОМЕНТАРІ • 150

  • @MitzpatrickFitzsimmons
    @MitzpatrickFitzsimmons 4 роки тому +36

    Best darn electronics workshop on UA-cam!

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

  • @gga3053
    @gga3053 4 роки тому +7

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

  • @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 :)

  • @shishir.sachar4648
    @shishir.sachar4648 4 роки тому +7

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

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

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

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

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

    your videos are the foundation for my Projects

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

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

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

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

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

    • @tezzrexx
      @tezzrexx 10 місяців тому

      Same XD

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

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

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

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

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

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

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

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

    Great video. Clear and well explained.

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

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

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

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

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

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

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

    You are absolutely fantastic. Thank you so much.

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

    thank you very much for your nice video

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

    Helpful video 👍

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

    Dude you are my hero.

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

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

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

    Thank you Bill great video

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

    great video, thanks!

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

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

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

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

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

    Very interesting and well presented thanks from Orlando.

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

    Good stuff

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

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

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

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

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

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

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

    this vid was so useful thnk u so much

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

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

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

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

    Best tuts on the net for ESP32, Suubbb'd

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

    Please also do a video on MQ-6 Gas Sensor

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

    Love the vids!

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

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

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

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

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

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

    Great Tutorial!

  • @martwa-craftcosplay1986
    @martwa-craftcosplay1986 3 роки тому

    thanks a lot for your video!

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

    Super tuto.merci.

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

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

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

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

    Very interesting thanks

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

    Nevermind, You answered this in the video.

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

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

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

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

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

    16:33 what happens to the timers?

  • @-robo-
    @-robo- 4 роки тому

    Thank you.

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

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

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

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

    Thanks!

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

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

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

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

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

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

  • @derpclub4948
    @derpclub4948 2 місяці тому

    what did the bag do

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

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

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

  • @PauloHenrique-hg7iw
    @PauloHenrique-hg7iw 4 роки тому

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

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

    Well hello! :)

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

    Love your

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

    Sir home automation plz 🙏

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

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

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

    esp is not cheaper than arduino?

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

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

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

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

    I am planning to build a low cost remotw controlled car

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

    HI IM IDEATRONIC CHANNEL ELECTRONIC

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

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

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

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

    help me sir

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

    Eye-squared-see :)

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

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