Robotic Car, Closed Loop Control Example

Sdílet
Vložit
  • čas přidán 25. 07. 2024
  • Get the map of control theory: www.redbubble.com/shop/ap/550...
    Download eBook on the fundamentals of control theory (in progress): engineeringmedia.com
    I demonstrate the value of closed loop control in an uncertain environment using my Zumo Robot car. If you're interested in building one yourself and trying this out I think I've given you enough information to go and write your own simple code. These types of platforms are great for learning since it's so easy to tweak the code and test it out. This is the first video of a series where I'll explain my process for designing a control system.
    Errata:
    Don't forget to subscribe! I'm on Twitter @BrianBDouglas!
    If you have any questions on it leave them in the comment section below or on Twitter and I'll try my best to answer them.
    I will be loading a new video each week and welcome suggestions for new topics. Please leave a comment or question below and I will do my best to address it. Thanks for watching!

Komentáře • 130

  • @BrianBDouglas
    @BrianBDouglas  Před 11 lety +176

    My full-time job is designing control systems for satellites and aircraft. I've had some pretty fantastic mentors over the years who have helped me realize the value of what I learned in school. These lessons are what I'm trying to pass on to others so hopefully more people will get interested and excited about engineering systems. My recommendation to you would be to read/watch tons of different explanations of the same topic and choose what works for you ... that and practice!

    • @yasirpunathil7143
      @yasirpunathil7143 Před 4 lety +2

      Thank you, Brian. Love from India

    • @BoZhaoengineering
      @BoZhaoengineering Před 4 lety +1

      I have a engineering degree working for sustainable energy but in structure and mechanical. Where can I get started to make control system for a robot car?

    • @emeggiolaro
      @emeggiolaro Před 4 lety

      Thanks a lot

    • @1121samurai
      @1121samurai Před 3 lety

      感谢Brian!让我重燃对控制系统的激情!

    • @PasanJayaweeraYashoda
      @PasanJayaweeraYashoda Před 3 lety

      @@BoZhaoengineering Hello Bo!, I'm a biomedial Eng Undergrad so i might not know as much as you, but you can start by learning to program microcontrollers(preferably arduino) and learning step by step about various different motor drivers and such.. there are lot of good tutorials on the internet, then you can design a control system with the inputs that you plan to implement (it,ultrasound) and output as the pwm for motor driver and switching direction

  • @BrianBDouglas
    @BrianBDouglas  Před 11 lety +27

    Thanks! It went unstable at the end because I had increased the gain higher than 1/35. If you noticed the car never actually went back to the flag and so by increasing the gain I reduced that final error. But if you increase it too much the car goes unstable. However, the real root of the problem is that a proportional controller isn't the correct choice for this case. I couldn't increase the gain high enough to have zero error while still staying stable. I'll explain in a future video.

  • @tsmith9038
    @tsmith9038 Před 3 lety +4

    Everyone in controls needs to watch this video. It does a wonderful job of making sense of the maths, graphs, poles, and codes.

  •  Před 8 lety +22

    Well, after one semester of studying control theory I finally got it thanks to this video. I missed connection between algebraic representation and reality. Thank you.

  • @BrianBDouglas
    @BrianBDouglas  Před 11 lety +8

    You just did! Thanks for watching and please share with your friends so that I can grow the channel and eventually make this a one-stop resource for controls related tutorials.

  • @jameslow5738
    @jameslow5738 Před 10 lety +48

    Best Video ive ever seen for control theory

  • @lucasli9225
    @lucasli9225 Před 9 lety +8

    Brian, THANKS A LOT for this fantastic small project. I have finished the control theory course for years and it is your way of teaching that really attracts me. I highly appreciated your videos and I believe many more people will benefit from your enlightening guidance. Hope you get more videos in the future^^

  • @charlesaralmeida
    @charlesaralmeida Před 9 lety +4

    Very nice video!! I've started studying closed loop control and this video has got me excited to keep studying hard! Thank you, Brian, for the good job with your channel!

  • @buddhadas5310
    @buddhadas5310 Před 8 lety +5

    i love all your videos on control system....it makes me realize how its work in real life..Thanks a lot.

  • @vvyogi
    @vvyogi Před 9 lety +1

    Wow, you were able to cover(at least get through) all that in such a limited time. Mind blowing ! You are a great tutor B.douglas.

  • @saikhamhein
    @saikhamhein Před 10 lety +17

    If you publish a book i will get one for sure no matter how much

  • @Fsifab
    @Fsifab Před 11 lety

    Again, incredible work! Your explanations make concepts I had written off as too difficult for me years ago so much more accessible. I plan on using your videos both at work and in my volunteer work with our local school and STEM programs. Please, keep it up and thank you.

  • @RohitKumar-fg1qv
    @RohitKumar-fg1qv Před 6 lety +2

    This is by far the best channel on control engg.

  • @BrianBDouglas
    @BrianBDouglas  Před 11 lety +1

    Good question. I could have used a compass (or even the compass and gyro as a pair). I chose a gyro only because I wanted to talk about the gyro sensor in the next few videos. The control law attempts to minimize vehicle rotation, if I had used the compass the control law would have tried to maintain a specific heading. If I had a specific goal for the car (other than to show a closed loop controller) I probably would've picked a different sensor.

  • @HenryYong
    @HenryYong Před 5 lety +1

    Recently bought an Arduino robot kit and one of the motors has greater output than the other one. This video will definitely helps me! Thank you!

  • @mbabaeevideos
    @mbabaeevideos Před 11 lety

    You're always full of energy. Thanks Brian

  • @Brendan77132
    @Brendan77132 Před 11 lety +1

    I'am in my final year of electronic engineering in Ireland, in exams I could do all the control mathematics with great grades but had not the faintest idea what I was doing until now! WOW! Great video.

  • @joaosousapinto3614
    @joaosousapinto3614 Před 7 lety

    Congratulations on the great work. I'm sure a lot of people would appreciate more videos! :D

  • @maxlouis7803
    @maxlouis7803 Před 11 lety

    I have never commented on anyone's video in my life but your videos have helped me understand a lot of things and i would like to thank you for that. I hope to see more control system videos !!!!

  • @shush1329
    @shush1329 Před 2 lety

    Thank you so much for this video, I am currently an undergraduate student focusing on monitoring and advanced control, I love both math and electronics and when I read your comment about your full time job, you answered me the question, I want to be a control design engineer!!

  • @vedantwankhede7481
    @vedantwankhede7481 Před 7 lety

    really loved!!!
    explained everything very simply , god bless u man!!!!

  • @Pedritox0953
    @Pedritox0953 Před 3 lety

    Awesome project!!

  • @gershoma5538
    @gershoma5538 Před 7 lety +1

    GREAT GREAT GREAT intro to control systems. This puts everything in perspective.
    +sub :D

  • @nina23164
    @nina23164 Před 7 lety

    Sir you are awsome!! Im doing masters in System and Control and it is sometimes really boring but watching this remembers me how cool it can be.

  • @dragonballzrb
    @dragonballzrb Před 11 lety

    I'm going to watch a lot of your video's.Thankyou for putting effort into making these great videos. Seriously, they are great and helping a lot! I am going to combine it with two books and then try something myself.

  • @KelvinLeUT
    @KelvinLeUT Před 11 lety

    awesome demo
    love the block diagrams

  • @JbCal3
    @JbCal3 Před 6 lety

    Great video. Simple explanations.

  • @TheBirdMan
    @TheBirdMan Před 9 lety

    Man you rock !!!!!!!! This is control systems ! Now I get it ! Now I even love this subject man ! You did it ! Hats offf !

  • @ddee2501
    @ddee2501 Před 5 lety

    Love your work !

  • @UmeshPathak0911
    @UmeshPathak0911 Před 8 lety

    Nice! Waiting for the next video

  • @pranami11
    @pranami11 Před 6 lety

    I like your videos very much. You are an extraordinary teacher with very good knowledge of control theory.

  • @jobta
    @jobta Před 11 lety

    Brian, good job as allways.

  • @nikoskalousis3523
    @nikoskalousis3523 Před 11 lety

    Great, insightful video!
    BTW: Nice backyard!

  • @vamsikrishnapsrit2947
    @vamsikrishnapsrit2947 Před 7 lety

    thank you very much. your video gave me sufficient information for my academic project.

  • @oisanji
    @oisanji Před 11 lety

    I'm an Electrical Engineering Student, I'm glad I subbed, keep up the great work.

  • @SonOfOsiris3
    @SonOfOsiris3 Před 11 lety

    Excellent video. Good job, sir!

  • @wipebolb
    @wipebolb Před 11 lety

    Very good and enjoyable example of a control system :D

  • @vinodhkumar264
    @vinodhkumar264 Před 7 lety

    Excellent Video, you really helped me understand control systems a lot more thank you very much sir

  • @Floride2008
    @Floride2008 Před 10 lety +3

    I love your videos!

  • @robsonalvesdias3440
    @robsonalvesdias3440 Před 11 lety

    Congratulations for your videos Brian, I'm sure it helps lots of people, I am one of them. I'm trying to make a car go towards to one direction, in my case the disturb is caused by little difference between wheels speed. I thought I could do that using a acelerometer, but someone told me I should use a gyro.
    My goal at this moment is to get that.

  • @7382121868
    @7382121868 Před 5 lety

    Great job

  • @adammiszta
    @adammiszta Před 10 lety +4

    Awesome!

  • @krishnaj2020
    @krishnaj2020 Před 4 lety

    great video sir

  • @venugopals9680
    @venugopals9680 Před 11 lety

    awesome. great work.

  • @Thesinter1
    @Thesinter1 Před 8 lety +5

    Nice T-shirt "Спутник" !

  • @yaswanthvasu877
    @yaswanthvasu877 Před 5 lety

    Tq ,it enhances my practical skill ,lucky to see this video

  • @hasannasir1191
    @hasannasir1191 Před 11 lety

    Good ideas Brian..

  • @arunsinghmehra7728
    @arunsinghmehra7728 Před 7 lety

    great video man just keep it up

  • @ebertchate8408
    @ebertchate8408 Před 4 lety

    Hi Brian ...I like your videos because these are very interesting...I hope more videos from you.

  • @ghostofsin
    @ghostofsin Před 5 lety

    Amazing channel !

  • @omer9797
    @omer9797 Před 6 lety

    You are brilliant Thank you for videos

  • @Trunks7890
    @Trunks7890 Před 11 lety +1

    its great that you are doing all this! one problem i have seen with control system courses in school is that its taught as just a math course without enough explanations into the applications of what we are learning. students need to look into other resources such as your videos to better understand the applications

  • @patolorde
    @patolorde Před 7 lety

    Thanks this is really good for me.

  • @camius1
    @camius1 Před 11 lety

    thanks for the videos!!

  • @nasim3269
    @nasim3269 Před 3 lety

    I like how you demonstrated the implementation of control systems using electronics and embedded systems though most control engineers usually don't need to do the implementation.

  • @shubhamshursenghogare6334

    You are a legend!

  • @Pi314159265ify
    @Pi314159265ify Před 10 lety +1

    Great Video!! Thank you :-)

  • @BrianBDouglas
    @BrianBDouglas  Před 11 lety

    Hi Cruz, you are correct that the EMI caused by the motors would be picked up by the compass. I haven't tried it on my latest project but on a past project I wrapped the motors with a high magnetic permeability metal to shield the other components from the motors. Another thought is depending on the speed of the motors and the expected turning rate of the car you might be able to filter the magnetic component from the motors out of the compass reading. Interested to see if it would work!

  • @jsbc003
    @jsbc003 Před 11 lety

    Freaking awesome!

  •  Před 11 lety

    Great intro!

  • @ArthurYCLiu
    @ArthurYCLiu Před 11 lety

    Pretty interesting. I am starting working on my quadrotor. This just gave me some idea.

  • @silenttitan3147
    @silenttitan3147 Před 9 lety

    Nice Video!!!

  • @michaelsetiawan7293
    @michaelsetiawan7293 Před 11 lety

    Brian you are better than my lecture, give us more videos!!

  • @sofianetidjani
    @sofianetidjani Před měsícem

    Very interesting controlmate

  • @MrNewAmerican
    @MrNewAmerican Před 6 lety

    Prof Brian Douglas is da bom.

  • @Rednose422
    @Rednose422 Před 6 lety

    Super Video thanks a lot

  • @jacoopec
    @jacoopec Před 5 lety

    just amazing

  • @Rahul8624
    @Rahul8624 Před 11 lety

    Hey that was awesome,,, keep going

  • @kritarthagautam1223
    @kritarthagautam1223 Před 3 lety

    This is what our Indian education system lacks, we know the theory but not the applications and as a results the subject sucks.Even if we look for the same topic the educator also lacks the practical knowledge.
    Your video makes a difference Sir.

  • @mertgunes9854
    @mertgunes9854 Před 7 lety

    thank you, this is great :)

  • @89Ep
    @89Ep Před 8 lety

    hey.. Great video!!
    is there part 2 video with explains the PID controller ?
    hope you can help with a PID code for this kind of car

  • @Rhombicuboctah3dron
    @Rhombicuboctah3dron Před 11 lety

    You're the man

  • @toninogalit
    @toninogalit Před 9 lety +3

    NICE, I just wanted to know why do you need to build a 5 frames average filter in this ("primitive, simple") example and from where do you get the gain 1/35 of your closed loop?
    thank you so much:-)

  • @BrianBDouglas
    @BrianBDouglas  Před 11 lety

    Hi Dipendra, I have to admit that I'm not a programming expert but here is my recommendation. First off, understanding "how" to program is more important than learning a specific language (i.e. the logic and flow of a program). At my job I use Matlab more than anything and you can write some pretty sophisticated scripts with Matlab. I can read through C and can tweak code but haven't really had to write large programs from scratch in C. I guess it depends on what you're using it for.

  • @tHaH4x0r
    @tHaH4x0r Před 8 lety +10

    Shame that you didnt really continue this series except for the "Robotic Car - A Simple Way to Build a Model" video... Any plans on continuing with this series after these few years?

  • @j3_
    @j3_ Před 10 lety

    Thanks for this easy-to-follow instructions!
    Delightful arduino+science playground.
    How about publish a book?

  • @elangot1843
    @elangot1843 Před 5 lety

    Thanks

  • @YS-zg6lg
    @YS-zg6lg Před 9 lety +2

    amazing! the last 10s were more fun though! ha

  • @prathmeshsurnis7181
    @prathmeshsurnis7181 Před 3 lety

    Hey Brian can you make a separate and detailed video illustrating the method of designing a control system and then implementing it on hardware.
    Thanks

  • @mathUFABC
    @mathUFABC Před 8 měsíci

    you should do one of those inverted pendulum robots, just like the segway alike, very much common in arduino projects. That would be nice, the system identification and also the real life LQR application.

  • @dobkhnistheking
    @dobkhnistheking Před 11 lety

    Awesome ... while you are at it ... can you demonstrate the use of pd or pid for cruise control found in cars?

  • @BrianBDouglas
    @BrianBDouglas  Před 11 lety +2

    Hi James, I just made a video about building a really simple plant for the Zumo bot. It's two videos ago if you go to my channel. I'm planning on making a more in depth one in a few weeks. Do you have a Zumo? Have you done any modeling of it?

  • @sixstation6480
    @sixstation6480 Před 3 lety

    Far out. I think the educational opportunities here are great!

  • @TeganBurns
    @TeganBurns Před 10 lety

    Adjust those gains and give it a sense of direction /w the magnetometer! Might wanna get the MPU-9150 also. Oh and while i'm at it you're gonna need to find out what has an electromagnetic field [like the motors ;)] and keep the magnetometer away.

  • @edwinalexanderforerocruz3991

    hello, excellent video; In my university they want to do this tests with a table that turns 5 times faster than the nominal with the use of Psoc. I hope you can help me thanks.

  • @djredrover
    @djredrover Před 2 lety

    Hey Brian, I love you videos man keep em coming. Is it possible for you to make a few videos about implementing an MPC system on an Arduino for a 6-DOF craft? I somewhat understand the theory but implementing matrix computations on Arduino and also the details needed to correctly implement the system is not easy to do. Any help in this field would be greatly appreciated.

  • @yomaster145
    @yomaster145 Před 11 lety

    I love these videos! But why was a gyro used instead of something more finite like a compass?

  • @MitchSandoe
    @MitchSandoe Před 10 lety +3

    13:17 I'M DONE, DAMMIT! GAHHHHHH!

  • @JaimeSilva
    @JaimeSilva Před 7 lety

    the feed back circuit is everytime a sensor in other applications or can it just be other thing?

  • @DmitriyNE
    @DmitriyNE Před 11 lety

    Клевая майка. I mean, cool shirt :) And awesome channel too.

  • @phillipmaser132
    @phillipmaser132 Před 3 lety

    Brian, Great Videos... However, Kalman Filter and MIMO systems using Matlab plus are my lackings. Any chance on videos and examples on these topics. I have problems with more than one input like pressure and temperature. Trying to optimize and perform system ID is more second-order or more systems. After building math models and trying to tune cascade models. hardware in the loop is different at this level. Does not tune very well. Any ideas?

  • @priyankaarora8503
    @priyankaarora8503 Před 4 lety

    is g/35 the conversion for angular velocity measurement to linear speed?

  • @socialogic9777
    @socialogic9777 Před 3 lety

    Can i perform the same on ARM microcontroller.

  • @Kevin-lg7uu
    @Kevin-lg7uu Před 6 lety +1

    Buddy...can u suggest some university to do masters in control system

  • @franckelec5764
    @franckelec5764 Před 5 lety

    What encoder for your motor do you use?

  • @CruzMonrreal
    @CruzMonrreal Před 11 lety

    The compass will have noise introduced by the magnetic fields that the motors create.

  • @valeriuok
    @valeriuok Před 4 lety

    Since the rotation is not centered at origin of the car's reference frame, I think the car will try to preserve a trajectory parallel to the original black line.

  • @dragonballzrb
    @dragonballzrb Před 11 lety

    @Brian Douglas Where did you learn all of this? I have a couple of Control Systems books but they aren't that great that I can do this kind of stuff (and I'm not talking about the Arduino). Maybe you have a better book you can recommend? Thanx for the video's !

  • @arohik1901
    @arohik1901 Před 5 lety

    Which software and hardware used

  • @nepalipaan
    @nepalipaan Před 11 lety

    Hey Brian,
    love your videos man. I am currently doing my masters in electrical, want control to be my focus. As an electrical engineer, we weren't required to take any other programming classes than C (which I didn't understand very well) during undergraduate at our university. I was hoping you could advise me on what programming courses would help me to become a good control engineer? Would greatly appreciate your help.