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_Fielding3 жыл бұрын
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.
@thomaslum23 жыл бұрын
Big fan of both of your channels! Awesome.
@Leroys_Stuff3 жыл бұрын
I’m glad this happened. Great project both of you
@PhG19613 жыл бұрын
Excellent cooperation of 2 of my heroes ! Awesome video !
@bigsteve67293 жыл бұрын
Cool didn't know this will check it out
@tombudd12813 жыл бұрын
I've been watching your videos for a while. It's good to see you getting more exposure :)
@jaimerosariojusticia3 жыл бұрын
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 KZbin 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.
@arthurmorgan89663 жыл бұрын
Title was awesome to begin with, didn’t know it was for Jeremy, another one of my favorite KZbinrs. This will make him happy and filled with joy like a child.
@tomthumb30853 жыл бұрын
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 Жыл бұрын
Agreed on all points. He is a wonderful man. You'd be lucky indeed to have his acquaintance.
@ishimwehonore80422 жыл бұрын
Thank you for guiding us to Jeremy for increasing our skills morely
@josephpennella33963 жыл бұрын
Love seeing two channels working together. Both great channels
@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.
@sinjhguddu49743 жыл бұрын
Am so glad that you and JF are buddies. I follow his channel. This project is thoroughly engrossing. Thank you!
@Nick-ye5kk3 жыл бұрын
Best channel in the business for this content.
@pboston6RR3 жыл бұрын
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. 🤔
@jamescullins2709 Жыл бұрын
I have watched a lot of Jeremy videos. Very smart guy.
@1607rosie3 жыл бұрын
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.
@edwardcdg3 жыл бұрын
Mine, too!
@paulramasco67693 жыл бұрын
This is awesome, Two of my favorite Makers on youtube.
@jasonruch35293 жыл бұрын
Man I love the way you explain everything like a great teacher would do!
@stevenpwilliams3 жыл бұрын
You do just incredible videos, as does Jeremy! Can't wait to digest this, and see further collaborations! Love both of your work!
@EsotericArctos3 жыл бұрын
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.
@piconano3 жыл бұрын
I was hoping you were going to make a servo with an optical encoder attached to the motor shaft of a NEMA stepper motor.
@kbouwman643 жыл бұрын
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!!
@prestonknodelliii8382 жыл бұрын
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.
@eternalxpectator2 жыл бұрын
This is one of the key components i''m using on my autonomous tractos project. Thanks for sharing!
@nixo00773 жыл бұрын
If I will find a second so interesting channel it make me go out of my everday work!! - no time at all.
@ardespmaker3 жыл бұрын
Thanks for this Bill - such good quality and simply put - worth waiting for!
@alandavis64293 жыл бұрын
You were right about Jeremy, he is a genius.
@JLCPCB2 жыл бұрын
Great episode! Also very good explanation of PID control! 🙂
@rhudithomas75822 жыл бұрын
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
@BeefIngot3 жыл бұрын
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
@jrkorman3 жыл бұрын
I was wondering the same. Thanks for bringing it up.
@uwe.herting.374313 жыл бұрын
I especially love the code you wrote. Simple and very effective. Great work!
@whatwhatdidtheysay...lyric23733 жыл бұрын
OMG! Perfect timing! Im undertaking a project just like this. Great video, excellent job!!!! And a very practical real-world purpose
@bradlesc10003 жыл бұрын
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!
@narayan69113 жыл бұрын
Thats the video i am looking for so long. Thnks for detailed explanations ❤️👍
@danieldivinsky49882 жыл бұрын
Your videos are just fantastic!
@glensharp32752 жыл бұрын
Thanks for this great video! It gave me a good understanding of how to use the PID library.
@braddixon33383 жыл бұрын
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.
@Enigma7583 жыл бұрын
D helps prevent oscillations via "prediction". It actually is related to damping.
@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.
@murraymadness46742 жыл бұрын
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.
@OGMann2 жыл бұрын
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.
@Mtmonaghan2 сағат бұрын
May help some folk if they understand that a normal arduino has a 10 bite ADC. That is a possible 2^10 or 1024 divisions. The processor you are using is a 12 bite ADC, that is 2^12 or 4096 divisions. The pot you are using has a four rotation range but you are only using two of them. This is why your pot range is approximately 0 to 0.5 x 4096, about 2000.
@tubeDude483 жыл бұрын
Bravo Bill !! Great and helpful video. I subscribed to Jeremy's site immediately! Thanks.
@bountyjha3 жыл бұрын
U r the most wonderful person on earth. U shoud make videos on PID. It would be really nice for students.
@yoashuain1 Жыл бұрын
Yes, Jeremy is awsome.😁😎
@jrkorman3 жыл бұрын
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!
@electronic79793 жыл бұрын
Helpful video. I liked it
@NZHippie3 жыл бұрын
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...
@isidorovazquez69683 жыл бұрын
Awesome video, learned a lot with it. God bless you!
@mrkattm2 жыл бұрын
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.
@damsaddles99112 жыл бұрын
Excellent explanation. Thank you
@scualo003 жыл бұрын
Nice video and grate explanation, thanks!
@petermolnar60173 жыл бұрын
As always superb! Thank you!
@tolikche3 жыл бұрын
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.
@kevgermany3 жыл бұрын
Love Jeremy's channel. Just wondering why you didn't use a stepping motor.
@youtubeworldlk76503 жыл бұрын
very useful drive shaft
@imarobodude Жыл бұрын
this is very helpful thanks, aside from the confusion: it is called subscript, not "underscore" which would mean underlined
@JohnWinquist3 жыл бұрын
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?
@j1952d3 жыл бұрын
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!
@DesertVox Жыл бұрын
What about using the circuitry inside a hobby servo and soldering it to a bigger motor to drive it?
@jacknewzeland49133 жыл бұрын
This is an awsome video!!👍
@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. KZbin 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!
@ALXandroATS3 жыл бұрын
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.
@mrobi57973 жыл бұрын
Awesome video. On a different note, have you ever made a video on the Canaduino Full-Automatic Bootloader Programmer for Atmega328P?
@wardogdauwdd30206 ай бұрын
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
@michaeljoshuamanallo17423 жыл бұрын
I been waiting for this
@douras963 жыл бұрын
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 ?
@primecouncil64752 жыл бұрын
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!
@X19-x5f3 жыл бұрын
Jeremy Fielding on the Dronebot Workshop? Looks like Christmas has come early this year!
@miyesisandella14793 жыл бұрын
very useful gear set
@crazytronics99173 жыл бұрын
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)
@Mecatronicgarage2 жыл бұрын
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-mj3qg6cc2z3 жыл бұрын
Thank you for your videos. But can explain PID with quadcopter
@snfn78473 жыл бұрын
You trying to do PID tuning?
@easy_3d3 ай бұрын
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 ?
@andrewbarnard32293 жыл бұрын
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.
@edwardcdg3 жыл бұрын
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.
@ianbuttery86933 жыл бұрын
and they show hysteresis.
@jon24873 жыл бұрын
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!
@AdaptivePhenix2 жыл бұрын
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.
@pascallavanchy16422 жыл бұрын
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.
@wretchedfibs43063 жыл бұрын
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.
@k4x4map463 жыл бұрын
great stuff! what brand and model power supply you using? Looks like a KORAD possibly KA3005D? squinting a bit lol
@7LegSpiders8 ай бұрын
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
@crazytaxi32772 жыл бұрын
Hi, can we build a servo with a latch such that no power is needed when holding at a position for long time?
@Rudie_2 жыл бұрын
I would say that the PWM controls the servo arm position and not the motor shaft position. (3min 58s)
@pranavdhandar3 жыл бұрын
Sir please make video on Dot matrix display... Please.. I have to make Project on it in my college...
@studentofedison4212 жыл бұрын
Thanks for this video
@Ed_Aylward8 ай бұрын
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?
@AGR47210 ай бұрын
That’s really cool
@carolinecaroline22643 жыл бұрын
Hi there, is it possible that you can do a video on how to create my own nodes in ZOD?
@alexgonzalez23383 жыл бұрын
Bill: Jeremy likes to build big machines. Jason: hold my beer…. Great video, best PID explanation. Looking forward to the series !
@GordieGii3 жыл бұрын
What software do you use to make your diagrams? (e.g. PID loop diagrams)
@Dasol02462 жыл бұрын
Can you make a video on Pi Pico PID motor controller for position using micropython, I don’t see any out there on KZbin.
@pranavdhandar3 жыл бұрын
@DroneBot Workshop Sir please make video on Dot matrix display... Please.. I have to make Project on it in my college...
@botak333 Жыл бұрын
Hi sir how to make steeper closeloop with magnetic sensor as5600
@restaliayurike68383 жыл бұрын
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?
@kryptocat42403 жыл бұрын
4:57 Sir Can i Use ROTARY ENCODER In Place Of Sensor/Potentiometer
@Dronebotworkshop3 жыл бұрын
Read the article, it explains how to use different sensors
@BeefIngot3 жыл бұрын
A rotary encoder wont have absolute positioning, so youd need to find a contrived way of homing the servo every time and acknowledge the possibility that a missed step means misalignment.
@SuperToughnut3 жыл бұрын
I haven't been getting notifications off these videos lately.
@RixtronixLAB3 жыл бұрын
Nice video, keep it up, thank you :)
@ericfreund5944 Жыл бұрын
Any chance of getting access to the code Please? The link is down. :(
@juanfra19972 жыл бұрын
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
@mohitnama21583 жыл бұрын
Sir I have problem in interfacing barcode scanner with raspberry pi pico.. please suggest me
@willwyatt98013 жыл бұрын
Could this work with an arduino UNO?
@kritancreations64712 жыл бұрын
How can i make servo with brush dc motor, L292D, arduino nano and potentiometer?
@anonymoushandle693 жыл бұрын
Was the overflow of micros() inside the interrupt handler considered at all? After 70 minutes wouldn't PWM readings become erroneous?
@slimhazard3 жыл бұрын
The start and pwm_period variables are both unsigned. If an unsigned value rolls over by less than half of its range, then subtraction yields the result you‘d expect. For example, if the current value is 1 and the previous one was 2^32 - 1, then 1 - (2^32 - 1) evaluates to 2, and in fact that was a 2 µs interval. So rollover is only a problem in the unlikely event that the PWM pulse lasts longer than 35 minutes.
@anonymoushandle693 жыл бұрын
@@slimhazard thanks for the clarification!
@Enigma7582 жыл бұрын
Why not use an encoder rather than a pot, wouldn't that be less prone to wear, and arguably more accurate?
@commenter47997 ай бұрын
I searched for this comment. I guess it wouldn't be a big deal for a golf cart, but I was thinking the constant current draw for the pot would be a waste.
@Enigma7587 ай бұрын
@@commenter4799 Absolute encoders are often used in servo motors. What I like about them is that optical encoders are less affected by wear than a pot which has a mechanical wiper.
@commenter47997 ай бұрын
@Enigma758 not going to lie, I forgot about optical encoders, lol. I was thinking of the hobby encoders that look like pots, which probably wouldn't be any better than the pot.