Raspberry Pi Zero Devastator robot improvements -- using Pygame to read the keyboard, and the PWM inputs of the L298N for motor speed control.
You can download the code for this and previous episodes from:
https://www.explainingcomputers.com/pi_devastator_videos.html
The first three episodes in this series are:
Raspberry Pi Devastator Robot #1:
https://www.youtube.com/watch?v=DyQxvfwQbTg
Raspberry Pi Devastator Robot #2:
https://www.youtube.com/watch?v=j6mglfhWZrQ
Raspberry Pi Devastator Robot #3:
https://www.youtube.com/watch?v=pK0XvjiP2qk
IMPORTANT NOTE:
On October 30th 2021, a new version of Raspberry Pi OS was released known as “Bullseye”. This has new camera drivers that are not compatible with the Python camera code demonstrated in this video. Sorry. If you are running the version of Raspberry Pi OS known as "Buster", or an earlier version, things should work just fine. I discuss the matter in depth in my video here: https://www.youtube.com/watch?v=ykM5bvVURJw
More videos on SBCs and broader computing and related topics can be found at:
null
You may also like my ExplainingTheFuture channel at: null
Chapters
00:00 Introduction
01:04 Project review
06:25 Reading the keyboard in Pygame
09:24 Pygame robot control code
12:09 First test
13:27 PWM speed control
16:42 Final test
466 Comments