Robotic Car, Closed Loop Control Example

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

КОМЕНТАРІ • 130

  • @BrianBDouglas
    @BrianBDouglas  11 років тому +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 4 роки тому +2

      Thank you, Brian. Love from India

    • @BoZhaoengineering
      @BoZhaoengineering 4 роки тому +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 4 роки тому

      Thanks a lot

    • @1121samurai
      @1121samurai 3 роки тому

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

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

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

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

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

  • @BrianBDouglas
    @BrianBDouglas  11 років тому +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.

  •  8 років тому +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  11 років тому +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 10 років тому +48

    Best Video ive ever seen for control theory

  • @RohitKumar-fg1qv
    @RohitKumar-fg1qv 6 років тому +2

    This is by far the best channel on control engg.

  • @lucasli9225
    @lucasli9225 10 років тому +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^^

  • @buddhadas5310
    @buddhadas5310 8 років тому +5

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

  • @Brendan77132
    @Brendan77132 11 років тому +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.

  • @vvyogi
    @vvyogi 9 років тому +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.

  • @HenryYong
    @HenryYong 5 років тому +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!

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

    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.

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

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

  • @saikhamhein
    @saikhamhein 10 років тому +17

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

  • @maxlouis7803
    @maxlouis7803 11 років тому

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

  • @charlesaralmeida
    @charlesaralmeida 10 років тому +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!

  • @nina23164
    @nina23164 7 років тому

    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.

  • @Thesinter1
    @Thesinter1 8 років тому +5

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

  • @BrianBDouglas
    @BrianBDouglas  11 років тому +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.

  • @oisanji
    @oisanji 11 років тому

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

  • @joaosousapinto3614
    @joaosousapinto3614 7 років тому

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

  • @Trunks7890
    @Trunks7890 11 років тому +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

  • @Fsifab
    @Fsifab 11 років тому

    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.

  • @gershoma5538
    @gershoma5538 7 років тому +1

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

  • @pranami11
    @pranami11 6 років тому

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

  • @michaelsetiawan7293
    @michaelsetiawan7293 11 років тому

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

  • @TheBirdMan
    @TheBirdMan 9 років тому

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

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

    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.

  • @dragonballzrb
    @dragonballzrb 11 років тому

    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.

  • @mbabaeevideos
    @mbabaeevideos 11 років тому

    You're always full of energy. Thanks Brian

  • @vamsikrishnapsrit2947
    @vamsikrishnapsrit2947 7 років тому

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

  • @adammiszta
    @adammiszta 10 років тому +4

    Awesome!

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

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

  • @robsonalvesdias3440
    @robsonalvesdias3440 11 років тому

    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.

  • @jobta
    @jobta 11 років тому

    Brian, good job as allways.

  • @BrianBDouglas
    @BrianBDouglas  11 років тому

    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.

  • @vinodhkumar264
    @vinodhkumar264 7 років тому

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

  • @BrianBDouglas
    @BrianBDouglas  11 років тому

    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!

  • @Floride2008
    @Floride2008 10 років тому +3

    I love your videos!

  • @UmeshPathak0911
    @UmeshPathak0911 8 років тому

    Nice! Waiting for the next video

  • @tHaH4x0r
    @tHaH4x0r 8 років тому +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?

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

    Very interesting controlmate

  • @vedantwankhede7481
    @vedantwankhede7481 7 років тому

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

  • @JbCal3
    @JbCal3 6 років тому

    Great video. Simple explanations.

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

    Awesome project!!

  • @yaswanthvasu877
    @yaswanthvasu877 5 років тому

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

  • @KelvinLeUT
    @KelvinLeUT 11 років тому

    awesome demo
    love the block diagrams

  • @SonOfOsiris3
    @SonOfOsiris3 11 років тому

    Excellent video. Good job, sir!

  • @nikoskalousis3523
    @nikoskalousis3523 11 років тому

    Great, insightful video!
    BTW: Nice backyard!

  • @wipebolb
    @wipebolb 11 років тому

    Very good and enjoyable example of a control system :D

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

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

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

    You are a legend!

  • @MrNewAmerican
    @MrNewAmerican 6 років тому

    Prof Brian Douglas is da bom.

  • @7382121868
    @7382121868 5 років тому

    Great job

  • @ddee2501
    @ddee2501 5 років тому

    Love your work !

  • @mathUFABC
    @mathUFABC 9 місяців тому

    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.

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

    great video sir

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

    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

  • @toninogalit
    @toninogalit 9 років тому +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:-)

  • @YS-zg6lg
    @YS-zg6lg 9 років тому +2

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

  • @ArthurYCLiu
    @ArthurYCLiu 11 років тому

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

  • @hasannasir1191
    @hasannasir1191 11 років тому

    Good ideas Brian..

  • @patolorde
    @patolorde 7 років тому

    Thanks this is really good for me.

  • @venugopals9680
    @venugopals9680 11 років тому

    awesome. great work.

  • @ghostofsin
    @ghostofsin 5 років тому

    Amazing channel !

  •  11 років тому

    Great intro!

  • @arunsinghmehra7728
    @arunsinghmehra7728 7 років тому

    great video man just keep it up

  • @omer9797
    @omer9797 6 років тому

    You are brilliant Thank you for videos

  • @MitchSandoe
    @MitchSandoe 10 років тому +3

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

  • @BrianBDouglas
    @BrianBDouglas  11 років тому +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?

  • @jacoopec
    @jacoopec 5 років тому

    just amazing

  • @elangot1843
    @elangot1843 5 років тому

    Thanks

  • @89Ep
    @89Ep 8 років тому

    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

  • @Pi314159265ify
    @Pi314159265ify 10 років тому +1

    Great Video!! Thank you :-)

  • @jsbc003
    @jsbc003 11 років тому

    Freaking awesome!

  • @dobkhnistheking
    @dobkhnistheking 11 років тому

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

  • @silenttitan3147
    @silenttitan3147 9 років тому

    Nice Video!!!

  • @j3_
    @j3_ 10 років тому

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

  • @Rednose422
    @Rednose422 6 років тому

    Super Video thanks a lot

  • @CB-kt7qd
    @CB-kt7qd 7 років тому +1

    I tried your code to my zumo robot and it did not work, after doing some research i found that you made some mistakes, in fact you are reading raw data from the gyro, you have to do the conversion (dps or rad/sec). Where does the 1/35 comes from? normally it should be RW where R is (the length of the axel/2) and W is the angular speed, and what is the unit of the velocity, are you sure that the units are uniform?
    I also think that you should change the equations of Vleft and Vright, if you want your robot to drive straight with respect to the earth reference, because if the disturbance G.z is positive then the left wheel should drive faster than the right wheel to compensate.
    I donno how you code worked.

  • @Kevin-lg7uu
    @Kevin-lg7uu 6 років тому +1

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

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

    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?

  • @camius1
    @camius1 11 років тому

    thanks for the videos!!

  • @Rahul8624
    @Rahul8624 11 років тому

    Hey that was awesome,,, keep going

  • @TeganBurns
    @TeganBurns 10 років тому

    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.

  • @yomaster145
    @yomaster145 11 років тому

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

  • @Rhombicuboctah3dron
    @Rhombicuboctah3dron 11 років тому

    You're the man

  • @mertgunes9854
    @mertgunes9854 7 років тому

    thank you, this is great :)

  • @dragonballzrb
    @dragonballzrb 11 років тому

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

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

    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.

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

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

  • @JaimeSilva
    @JaimeSilva 7 років тому

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

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

    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.

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

    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.

  • @CruzMonrreal
    @CruzMonrreal 11 років тому

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

  • @nepalipaan
    @nepalipaan 11 років тому

    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.

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

      Python

  • @AntonMorzhakov
    @AntonMorzhakov 9 років тому +15

    СПУТНИК !!!!

  • @JaymzBond
    @JaymzBond 11 років тому

    sadly school is shit in many countries over the world. they just waste your time with old and useless things in the most confusing way of "teaching" if you can call it that way.
    btw i just found you and i m glad i did.

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

    Can i perform the same on ARM microcontroller.