030 Implementing Line Following on a Robot with Proportional Control

  Рет қаралды 194

Making Stuff with Chris DeHut

Making Stuff with Chris DeHut

Ай бұрын

Learn how to incorporate line following in a robot as we did with the Zoomie (Autonomous Robot). Gain an understanding of PID controls using just one component (proportional) and how to tune the control system effectively using a spreadsheet. Using 2 TCRT5000 analog photo-reflective sensors, you can achieve accurate line following.
VISIT OUR COMPANION WEBSITE
makingstuffwithchrisdehut.com
INDEX TO ZOOMTOWN VIDEO SERIES
makingstuffwithchrisdehut.com...
REPOSITORY FOR ZOOMTOWN SOURCE CODE & OTHER DATA
makingstuffwithchrisdehut.com...
Some of the technologies explored in this experiment include, but is certainly not limited to:
[*] Autonomous Robotics
[*] Photo reflective sensors
[*] Time of flight sensors
[*] Hall effect sensors
[*] Rotary encoders
[*] Odometry
[*] Line following
[*] Color recognition and detection sensor
[*] Automatic route planning
[*] Localization
[*] Robotic cars
[*] Dead Reckoning
#TCRT5000, #robotics #pico #linefollower #linefollowing

Пікірлер: 9
@GM-el2zb
@GM-el2zb Ай бұрын
Great piece of work again.
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Ай бұрын
Thanks again!!! Cheers! Chris
@SteveWoodgate
@SteveWoodgate Ай бұрын
Hi Chris Could you explain why the full proportional value of the Shift_Amt is applied to both left and right motors inside of half to each? This PID stuff is all new to me.
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Ай бұрын
Hi Steve, good question and I will attempt to answer that. I started out thinking I would only adjust the speed of the slower of the two wheels (especially when turning) because most of the time, the wheel speed of the "faster" wheel is near the upper limit. As development went on and I started testing the proportional control, I realized I needed more intensity to fix severe errors. Adjusting just one of the motors was creating a limit to how fast I could recover from error because I was hitting the motor's limit. At this point, the Proportional was only being applied to one wheel. I then implemented the proportional adjustment to both motors, one opposite the other so that recovery would happen twice as fast and I hopefully would stay off of the Upper and Lower limits of the motor's working range. As you suspect, I should apply half the proportional adjustment to each wheel, however, I didn't (senior moment I guess). The good part was that change resulted in good performance. With that said, I could have doubled the "P" value and halved the "P" for each wheel to be more "traditional". In a few weeks you will see a major re-write in this section of the code. Looking over the code I started to see a way to reduce the "work" being done so I thought I would give it a go and it seems to be working pretty good so far. The constant evolution of a program is always fun, but I have to be careful to not get stuck in the "let's make it better loop" or this project will never move forward. Cheers! Chris
@SteveWoodgate
@SteveWoodgate Ай бұрын
@@MakingStuffwithChrisDeHut Of course! The idea of applying the adjustment to both wheels in opposite directions is inspired for keeping away from the motor speed limits. As you said, I see now, the "P" value is just a scaling factor to the shift_amt and it is the overall effect that matters in getting the result you wanted. Very clever coding on your part, I look forward to see what you have come up with in the next version. Fascinating series you have created with Zoom Town. Cheers, Steve
@tomek3633
@tomek3633 Ай бұрын
First comment, yeah ;) it is so great to see the zoomie moving in a straight line! I guess maybe I won't be able to do so, since I will be attending a whisky tasting tonight ;) Enjoy your pizza!
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Ай бұрын
Hello Tomek! Yup Zoomie is going straight, turns are coming up soon too. How was the whisky tasting????? Pizza was great last night. Cheers! chris
@tomek3633
@tomek3633 Ай бұрын
@@MakingStuffwithChrisDeHut first of all: we tasted Danish whisky. I did not even know the Danish make whisky but obviously they are in the same [latitude?longitude?] as edinborough, scotland, so why not. Same weather conditions and good water as the scots have. The whisky was actually quite good, but did not meet my desired level of smokeyness, so i did not by any bottles.
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Ай бұрын
@@tomek3633 Well I guess that leaves more money for more PICOs to play with then :-) Sounds like you enjoyed the experience though and that is always a plus.
029 How to Steer a Robot with Encoder Feedback
24:07
Making Stuff with Chris DeHut
Рет қаралды 206
031 Collision Avoidance System For Robots
22:39
Making Stuff with Chris DeHut
Рет қаралды 199
I wish I could change THIS fast! 🤣
00:33
America's Got Talent
Рет қаралды 120 МЛН
WHO LAUGHS LAST LAUGHS BEST 😎 #comedy
00:18
HaHaWhat
Рет қаралды 17 МЛН
033 DON'T LET MICROPYTHON'S GARBAGE COLLECTOR RUIN YOUR PROGRAM
22:03
Making Stuff with Chris DeHut
Рет қаралды 429
EEVacademy #6 - PID Controllers Explained
27:11
EEVblog
Рет қаралды 205 М.
Tigger C: a file system on 6502 for I2C serial EEPROMs
25:20
Hopper Development Environment
Рет қаралды 592
037 The Ever Evolving Zoomie and Viewer Suggestions
23:12
Making Stuff with Chris DeHut
Рет қаралды 265
E022 How to Plan & Structure a Large MicroPython Program
35:43
Making Stuff with Chris DeHut
Рет қаралды 362
034 Using the TCRT5000 for Line Following and More
25:35
Making Stuff with Chris DeHut
Рет қаралды 253
035 Time To Reevaluate ZoomTown and the Current Approach
1:01:13
Making Stuff with Chris DeHut
Рет қаралды 332
E028 Adding Acceleration to Velocity Control for robots
36:25
Making Stuff with Chris DeHut
Рет қаралды 228
I made a SUPER FAST Line Follower Robot Using PID!
10:02
Shyam Ravi
Рет қаралды 297 М.
E023 Take a Look at the Zoomie Program Framework with it's Deterministic Loop
38:30
Making Stuff with Chris DeHut
Рет қаралды 185
Опять съемные крышки в смартфонах? #cmf
0:50
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 12 МЛН