Uploaded July 2022 | Updated September 2026, 1 week ago
In this live stream, Dr. Christian Hubicki and I team up to build a PID Controller, first in python and then in p5.js! We apply the controller to the classic 'cart pole' problem, attempting to balance an inverted pendulum. Code: thecodingtrain.com/tracks/robot-controllers/robot-controllers/robot-controller-1
π» Github Repo: github.com/CodingTrain/Robot-Controllers
πΉοΈ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/sketches/sB1glTRe7
Code Examples:
π» Base Python Code: tinyurl.com/cart-pole
π» Final Python Code: tinyurl.com/cartpole-control
π₯ Next: youtu.be/3FeySIv-gFM
References:
π Dr. Christian Hubicki: christianhubicki.com
π€ Optimal Robotics Laboratory: optimalroboticslab.com
βΆοΈ youtube.com/channel/UCqSfzxT0dcpEPMtVguwzATg
Videos:
π youtu.be/3FeySIv-gFM
π youtu.be/urR596FsU68
Related Coding Challenges:
π youtu.be/TDQzoe9nslY
π youtu.be/KakpnfDv_f0
Timestamps:
0:00:00 Waiting to Start
0:04:38 Welcome!
0:07:30 Introducing Dr. Christian Hubicki
0:09:49 Christian's Introductory Presentation
0:14:48 How to Follow Along
0:16:22 PID Controller Lecture
0:44:09 Coding in Python!
1:23:58 Introducing p5.js and matter.js
1:37:18 Coding in p5.js!
2:48:30 It works!
2:49:19 Wrapping up and next steps
Music from Epidemic Sound
π Website: thecodingtrain.com
πΎ Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: github.com/CodingTrain/Suggestion-Box
π‘ GitHub: github.com/CodingTrain
π¬ Discord: thecodingtrain.com/discord
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecodingtrain.com/issues/new
#robotics #pidcontroller #p5js #python #simulation #physics #robotcontrol #matterjs #cartpole #python #p5js #matterjs
In this live stream, Dr. Christian Hubicki and I team up to build a PID Controller, first in python and then in p5.js! We apply the controller to the classic 'cart pole' problem, attempting to balance an inverted pendulum. Code: thecodingtrain.com/tracks/robot-controllers/robot-controllers/robot-controller-1
π» Github Repo: github.com/CodingTrain/Robot-Controllers
πΉοΈ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/sketches/sB1glTRe7
Code Examples:
π» Base Python Code: tinyurl.com/cart-pole
π» Final Python Code: tinyurl.com/cartpole-control
π₯ Next: youtu.be/3FeySIv-gFM
References:
π Dr. Christian Hubicki: christianhubicki.com
π€ Optimal Robotics Laboratory: optimalroboticslab.com
βΆοΈ youtube.com/channel/UCqSfzxT0dcpEPMtVguwzATg
Videos:
π youtu.be/3FeySIv-gFM
π youtu.be/urR596FsU68
Related Coding Challenges:
π youtu.be/TDQzoe9nslY
π youtu.be/KakpnfDv_f0
Timestamps:
0:00:00 Waiting to Start
0:04:38 Welcome!
0:07:30 Introducing Dr. Christian Hubicki
0:09:49 Christian's Introductory Presentation
0:14:48 How to Follow Along
0:16:22 PID Controller Lecture
0:44:09 Coding in Python!
1:23:58 Introducing p5.js and matter.js
1:37:18 Coding in p5.js!
2:48:30 It works!
2:49:19 Wrapping up and next steps
Music from Epidemic Sound
π Website: thecodingtrain.com
πΎ Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: github.com/CodingTrain/Suggestion-Box
π‘ GitHub: github.com/CodingTrain
π¬ Discord: thecodingtrain.com/discord
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecodingtrain.com/issues/new
#robotics #pidcontroller #p5js #python #simulation #physics #robotcontrol #matterjs #cartpole #python #p5js #matterjs










