Build a Custom Servo Motor with a DC Motor

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 พ.ย. 2024

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

  • @Dronebotworkshop
    @Dronebotworkshop  9 หลายเดือนก่อน +1

    Hi everyone - It's come to my attention that there has been someone masquerading as myself, responding to some comments here with a link to a Telegram chat to win a prize from me. THIS IS A SCAM, I am not holding a contest, nor do I have a Telegram account. PLEASE DO NOT RESPOND TO THESE MESSAGES!!
    It's happening on a lot of my videos, I'm taking steps to remove them manually, but as I have 162 videos, it will take some time. If you do run across a suspicious comment, I would appreciate you letting me know at info@dronebotworkshop.com.
    Thanks!
    Bill (The real one!)

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

    I am so glad we finally got to start making something together after talking all this time. I look forward to continuing the series! And great video as usual.

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

      Big fan of both of your channels! Awesome.

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

      I’m glad this happened. Great project both of you

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

      Excellent cooperation of 2 of my heroes ! Awesome video !

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

      Cool didn't know this will check it out

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

      I've been watching your videos for a while. It's good to see you getting more exposure :)

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

    Sir, I stumbled upon your channel looking for DIY projects, and I cannot be more than thankful for all the time and effort put in the content.
    No annoying (techno/pop) music, No only-hands-pointing-to-objects-without-any-description, No wobbling camera, No rant/obscene/offensive content, etc.,
    You take the time to explain all the things related to each project, and the information is easy to understand and the projects are easy to work even without the deep knowledge.
    This is the 8th video so far I've watched in the last 2-3 days. This channel is what TH-cam should be bringing up in their algorithm, not the other crap that shows twice or more on each search.
    I'm glad I found and subscribed.

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

    Title was awesome to begin with, didn’t know it was for Jeremy, another one of my favorite TH-camrs. This will make him happy and filled with joy like a child.

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

    Totally agree that Jeremy Fielding is a genius. Not only that, but he’s a very humble guy who doesn’t assume you know how something works, and explains every step. He’s also a great father to his children, involving them at every stage so that they will have a thorough understanding of Electro-mechanical engineering. He’s the “go-to” guy when it comes to modelling.

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

      Agreed on all points. He is a wonderful man. You'd be lucky indeed to have his acquaintance.

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

    I was controlling a dc motor to move a heater door on a vehicle that voltage varies from 12.8-14.3 volts dc. Using a standard actuator or pot for feed back. On the dash, it can be rotary or linear. This a custom built air distribution box in a 1967 pickup and just adjust heat from closed to wide open and anywhere in between. Enjoyed the channel & Jeremy.
    ASE Master Tech since 1978, retired.

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

    Thank you for guiding us to Jeremy for increasing our skills morely

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

    Love seeing two channels working together. Both great channels

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

    Am so glad that you and JF are buddies. I follow his channel. This project is thoroughly engrossing. Thank you!

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

    Fantastic! Thank you!!!
    I drive a Tesla and have marveled at the steering and the lack of overshoot. I’m pretty sure the Teslas uses the PID logic (which I heard of here first) and your explanation of the three components of the PID system was very enlightening. It also gives me motivation to dig a little deeper in the PID thinking.
    Thanks for helping Jeremy and his fantastic workshop. I’m eagerly awaiting his second video to see how he fixed the broken steering shaft. Giving him a couple of nights to think of solutions will yield interesting results. 🤔

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

    This video came up in my feed with almost perfect timing as I am currently working on a couple of projects requiring custom servos that Ebay just cannot provide.
    Thank you for this.

  • @Nick-ye5kk
    @Nick-ye5kk 3 ปีที่แล้ว +1

    Best channel in the business for this content.

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

    These are two of my favorite electronic channels . Jeremy is smart guy and also does a great job explaining things to you. Looks like you got got a fly by wire system.

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

      Mine, too!

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

    Bill, your explanation of PID was one of the best ones I have seen. I would like to argue though that there is a critical fourth parameter that always gets minimal, if any, attention. That fourth parameter is Calculation Interval. In any controlled operation there is latency; it takes time for a motor to spin up and move to a new position. A program loop running on a microcontroller will almost always execute many times faster than the actuator's operational latency. It will remeasuring a new actual position and calculating a new error and output before the motor has reached the position commanded by the previous calculation. This new calculation will be based on the incorrect assumption that the new measured position was the result of the previous calculation. This mistake will lead to runaway actuator behavior. It would seem from your demonstration that you are addressing this in your code somewhere, but I cannot find it. It would seem to me that it is critical when explaining how to employ a PID controller to address how the latency of the system being controlled.
    I love this series and this collaboration. I am trying to build a rover a little larger than Jeremy's so I will be following closely!!

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

      If the digital sample rate is high enough (with enough averaging) this will not happen. Mathematically there are 3 possible solutions : critically damped, underdamped, and overdamped. It will be stable if the PID is tuned overdamped near critically damped. It can oscillate if underdamped. There are mechanical issues also, : gear lash and natural resonance.

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

    I have watched a lot of Jeremy videos. Very smart guy.

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

    You were right about Jeremy, he is a genius.

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

    I was hoping you were going to make a servo with an optical encoder attached to the motor shaft of a NEMA stepper motor.

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

    If I will find a second so interesting channel it make me go out of my everday work!! - no time at all.

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

    You do just incredible videos, as does Jeremy! Can't wait to digest this, and see further collaborations! Love both of your work!

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

    Man I love the way you explain everything like a great teacher would do!

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

    Another great video Bill. Thank you. I have been looking for closed loop DC motor control for years and just came across this video. This is what I need, except for the feedback. I have been a CNC tech for over 35 years, so "back in the day" all servo control was done with DC brushed motors, but now in these "modern" times it has moved into AC Servo motors. However, all industrial CNC machines use encoders to close the loop. Even China has been selling these cheap DC gear motors, with encoders, but there is not one person yet that has utilized this for any control. I want to control shades, windows, doors, DIY CNC, and anything to control linear motion with cheap DC closed loop. Would you please consider a video with H-bridge DC gear-motor, with encoder, to close the loop. It is needed more than most people think. lol

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

    This is awesome, Two of my favorite Makers on youtube.

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

    I mentioned this on his video as well, but figured it might be use to someone here too:
    There is a really cheap alternative to traditional potentiometers called a magnetic absolute encoder. The typical one I have found that is cheap is called a AS5600 magnetic encoder. It can be had for about 2 bucks, and has a little breakout board where you either can get the same sort of signal you get from a potentiometer or receive data from I2C. It has sub degree accuracy, and won't fade and become less accurate over time like the wipes of a potentiometer.
    Actually I think I might be talking about what's talked about in the article as Hall Effect Sensors

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

      I was wondering the same. Thanks for bringing it up.

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

    This is one of the key components i''m using on my autonomous tractos project. Thanks for sharing!

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

    Thanks for this Bill - such good quality and simply put - worth waiting for!

  • @whatwhatdidtheysay...lyric2373
    @whatwhatdidtheysay...lyric2373 3 ปีที่แล้ว

    OMG! Perfect timing! Im undertaking a project just like this. Great video, excellent job!!!! And a very practical real-world purpose

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

    Timely, as I just snagged a 24vdc 3a 2560 rpm motor from the maker shop. It's part of an armchair lift actuator. I was considering using it in a CNC hack, and using a circuit like this is exactly what I had in mind.

  • @uwe.herting.37431
    @uwe.herting.37431 3 ปีที่แล้ว

    I especially love the code you wrote. Simple and very effective. Great work!

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

    I'm so excited to go through your stuff, I'm a 4th year mechanical engineering student and I'm about to take mechatronics so this should be fairly useful. Jeremy sent me btw this collab is cool!

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

    Great episode! Also very good explanation of PID control! 🙂

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

    U r the most wonderful person on earth. U shoud make videos on PID. It would be really nice for students.

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

    Thanks for this great video! It gave me a good understanding of how to use the PID library.

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

    Thats the video i am looking for so long. Thnks for detailed explanations ❤️👍

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

    Your videos are just fantastic!

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

    I would think to use a stepper motor with a position encoder (can be a pot).
    I'd also note that I took apart a small r/c servo and used it to power a bigger dc motor.

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

    this is very helpful thanks, aside from the confusion: it is called subscript, not "underscore" which would mean underlined

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

    Another great episode! What I really find valuable in these, are the libraries and commands that are kind of hard to find out otherwise. As a question, I'm not sure why you called the D component of the PID a dampening element, as it is producing an output proportional to the rate of change of the input. The faster something is moving, the greater the output. I suppose you could use a negative Kd value to subtract a rapid motion, so slow things down.

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

      D helps prevent oscillations via "prediction". It actually is related to damping.

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

    i hope i will be able to adapt this knowledge to make robotic joint out of hydraulic valves and my cheapass muscles
    anywho, thanks for the video and huge effort of making it!

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

    Thanks for the video. You can also use simple diode like 4148(cathode facing 5v side ) with a pull-up resistor on 3v3 side as a cheap and simple one-directional level convertor.

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

    This is vary helpful I been looking for a video like this to help with my robotics project I'm building a custom show time animatronic

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

    For those interested in more information on P.I.D. Controllers are also used with Type K Thermocouples and Relays to Control the Melt Temperature for Bullet Casters o greatly improve Temp. Consistency and improve uniformity by bullet caster to control the Melting Pot. There are several you Tube Videos about building them and Amazon has all the parts.

  • @X19-x5f
    @X19-x5f 3 ปีที่แล้ว

    Jeremy Fielding on the Dronebot Workshop? Looks like Christmas has come early this year!

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

    very useful drive shaft

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

    I am 66 and as a retired ASE automotive Master Tech, I enjoy the learning. I am subscribed to your channel and Jeremy’s both, but for notifications using the “Black Bell” or “Clear Bell”, I never see the results. While others I rarely watch, pop up frequently! I am scratching head. TH-cam keeps changing things, like today when “X” to close a video on a iPhone, it drops to the lower right in box style, instead of flat rectangle at the bottom. Strange…
    Thanks kindly for sharing!

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

    Bravo Bill !! Great and helpful video. I subscribed to Jeremy's site immediately! Thanks.

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

    Bill, I signed up for the newsletter about 2 years ago, received several through early 2020 and nothing since. I've resubscribed, but a question. Are the newsletters archived so one may read old letters? Thanks. As an aside, glad to see you working with Jeremy, he's quite a talented fellow!

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

    Great video Bill, at the beginning of the video you outlined the requirements of 720 degrees of rotation yet while explaining the endpoints sketch the rotation was only 120 degrees, I assume that you doing so was that it would be the common servo movement range and not the specific project requirements...

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

    Thanks a lot i am also working on it and i face some troubleshooting , this video will help me lot.
    Also i request you to please make video on FOC(Field operation control)

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

    Excellent explanation. Thank you

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

    Yes, Jeremy is awsome.😁😎

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

    Awesome video, learned a lot with it. God bless you!

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

    very useful gear set

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

    Good stuff, and great to see you having a collab. with Jeremy. One tiny niggle: I'd've been happier to see "Kp = 1.0;" rather than "Kp = 1;" to emphasise that it's not an integer. Just being a grumpy old git!

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

    As always superb! Thank you!

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

    Nice video and grate explanation, thanks!

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

    Helpful video. I liked it

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

    I been waiting for this

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

    This is an awsome video!!👍

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

    Awesome video. On a different note, have you ever made a video on the Canaduino Full-Automatic Bootloader Programmer for Atmega328P?

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

    good ideas. car window motors are cheap and wanted to build a steering mechanism such as a joystick for an outboard engine on a boat. The common steering wheels and cables used are expensive and clunky.

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

    Love Jeremy's channel.
    Just wondering why you didn't use a stepping motor.

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

    one question. i have a project where i can take inputs from a display and rotate the motor to a specified position. how can i do that only using dc motor and potentiometer ?

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

    Be aware: Potentiometers with wipers will lose linearity with use over time, which means all potentiometers more or less. The wiper will wear the wiped resistance surface thinner in places. Expect to recalibrate from time to time or use a shaft encoder to give a digital output. I have seen a piece of lab equipment unexpectedly drift way off calibration this way.

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

    I've never considered PID use in a servo. Great video as usual. With P set to one and I and D set to zero is not doing anything that remapping the input wouldn't though, right?

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

    I haven't been getting notifications off these videos lately.

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

    Hi, very good video. How can I modify the code to instead of an output for a pwm motor controller , use only one L293D with two wires one for each direction of the dc motor.

  • @user-mj3qg6cc2z
    @user-mj3qg6cc2z 3 ปีที่แล้ว +1

    Thank you for your videos.
    But can explain PID with quadcopter

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

      You trying to do PID tuning?

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

    That’s really cool

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

    Thanks for this video

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

    hello sir, I want to ask when I make a program using the ultrasonic sensor in the Labview application on the arduino the Tr and Tx lights keep flashing after I run the program and the sensor can't detect it, why sir?

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

    Bill: Jeremy likes to build big machines. Jason: hold my beer…. Great video, best PID explanation. Looking forward to the series !

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

    What about using the circuitry inside a hobby servo and soldering it to a bigger motor to drive it?

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

    What setting do I change in the code if i want to replace the potentiometer as my input to an AS5600 encoder as my input?

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

    Why are you setting the position with PWM? That makes sense if you are transmitting position via an RF link but if you are hard wired an error voltage makes for a simpler implementation.

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

    Hi, can we build a servo with a latch such that no power is needed when holding at a position for long time?

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

    Can gear positioning accuracy be improved by using gears with smaller teeth? Hope you can explain the pros and cons when it comes the size/number of gear teeth.

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

    I would say that the PWM controls the servo arm position and not the motor shaft position. (3min 58s)

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

    have you played with the serial wombat io expansion chips? would love to see them used in a project. i have ordered a couple sets now and find them awesome to use especially with small microcontrollers where space is a factor.

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

    Hello DroneBot team,
    thanks for this wonderfull tuto.
    I did it with my son for one of his project......works great.
    I have a quick question that i'm trying to solve.
    I use a small 12v actuator and drive it with the arduino.
    when approching the target, the motor slows down in order no to overshoot but up to a point that the motor is forcing whithout moving creating a buzzing noise.
    I try to fine tune my PID with no succes so far.
    if you have any idea how to solve this probleme like creating a deadzone i would appreciate.
    Thanks one again for sharing your work.
    best
    Pascal.

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

    Thanks for the video. But why use PWM as a command ? It's complicated to "decode" and doesn't mean a rotation. Wouldn't it be simpler and clearer to use something like i2c, spi or even serial communication to send the rotation command ?

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

    Sir please make video on Dot matrix display... Please.. I have to make Project on it in my college...

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

    Do you have any suggestions for how to add acceleration or deceleration with pid as you mentioned in the video? I don't seem to be able to find any tutorials about that!

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

      Search for Baldor Motion Products AN00115-001 Trapezoidal Move Calculations
      There are many texts on this subject but the above document really simplifies the problem.

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

    Hi sir how to make steeper closeloop with magnetic sensor as5600

  • @7LegSpiders
    @7LegSpiders 8 หลายเดือนก่อน

    I have 4 of these motors and I wonder if they would work to move a heavy 2-axis CNC.
    BALDOR 590CD2 TYPE PM3336P ½ HP FR 48Z 1140 RPM 230 V DC MOTOR

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

    great stuff! what brand and model power supply you using? Looks like a KORAD possibly KA3005D? squinting a bit lol

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

    Any chance of getting access to the code Please? The link is down. :(

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

    @DroneBot Workshop Sir please make video on Dot matrix display... Please.. I have to make Project on it in my college...

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

    Nice video, keep it up, thank you :)

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

    Sir I have problem in interfacing barcode scanner with raspberry pi pico.. please suggest me

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

    Very good

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

    Hi there, is it possible that you can do a video on how to create my own nodes in ZOD?

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

    I love the video but heres is a challenge to you, do the same with out a microcontroller why? In college mi teacher ask me to do this for finals in theory of control i was not able to do it

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

    Can you make a video on Pi Pico PID motor controller for position using micropython, I don’t see any out there on TH-cam.

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

    thanks

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

    42 Minutes tutorial means 42 days work for people like me 🤣

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

    İşinin ehli bravo

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

    What software do you use to make your diagrams? (e.g. PID loop diagrams)

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

    **Music starts**
    Me: "Hermitcraft recap?"

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

    How can i make servo with brush dc motor, L292D, arduino nano and potentiometer?

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

    Wish I knew about the `map` function earlier. I've been manually coding that myself my whole career 🤣