PI-72IntermediatePremium
Raspberry Pi Pico W Plays the Dinosaur Game: Servo Bot with an LDR Eye (LDR + Servo + LED)
The Raspberry Pi Pico W now plays a dinosaur game in the style of the one that pops up when there is no internet. An LDR taped to the screen spots the cactus, an SG90 servo presses the space bar and an LED shows what the bot sees. The Pico estimates the game speed from how long each cactus takes to pass and presses earlier as it speeds up. It calibrates itself at start-up and switches to night mode when the screen goes dark.
0.0(0)

That dinosaur game that shows up when your internet drops? This time a tiny bot plays it, not you. A light sensor stuck to the screen spots each cactus, a servo motor taps the space bar, and as the game speeds up the bot reacts earlier. Light, timing and motion come together in one fun experiment.
Source Code
Premium Content
The source code, block version and FAQ of this project are open to Premium members.
- All Project Code
- Block version
- Frequently Asked Questions
