Module 3: Binary Hero
| Course: Scratch Programming | Level: Module 3 | Project 35 of 35 |
Official Raspberry Pi Project
This lesson is based on the official Raspberry Pi Foundation project. Open it alongside this guide to access the starter project, step-by-step instructions and community remixes.
### [🍓 Open "Binary Hero" on Raspberry Pi Projects →](https://projects.raspberrypi.org/en/projects/binary-hero)
How to use it: Click the link above, then click See Inside on the Scratch project to explore the finished version. Use Remix to get your own copy to edit.
What You Will Build
Build an interactive app using binary number concepts in gameplay.
What You Will Learn
By the end of this project you will be able to:
- Use Events blocks to start scripts and respond to clicks
- Combine Motion, Looks and Sound blocks to create behaviours
- Use variables to track game state and scores
- Apply the specific Scratch concepts introduced in Module 3
You Will Need
| Item | Details |
|---|---|
| 🌐 Browser | Any modern browser — Chrome, Firefox or Edge |
| 🔶 Scratch account | Free at scratch.mit.edu |
| ⏱️ Time | Approximately 30–45 minutes |
| 📋 Starter project | Available via the Raspberry Pi link above |
Step-by-Step Guide
- Add a tech-themed backdrop.
- Display a random decimal number (1–15) on screen using a variable.
- Show 4 binary digit buttons (8, 4, 2, 1) as toggle sprites.
- When a button is clicked: toggle it on/off and add its value to a
binary_sumvariable. - When the Submit button is clicked: compare
binary_sumto the target number. - If correct: play a success sound, add 10 to score, generate new challenge.
- If wrong: play a buzzer, flash the incorrect digits in red.
- Add a hint button that lights up the correct bits.
- Add a timer per question (15 seconds).
- After 10 questions: show score, accuracy percentage and a binary certificate badge.
Extension Challenges
Try these after completing the main project:
- Extend to 8-bit numbers (0–255) for a harder mode.
- Add hex conversion challenges as a bonus level.
- Create a story mode where the player decodes binary messages to save characters.
Reflection Questions
- Which Scratch blocks did you use most in this project?
- What would you add or change if you had more time?
- How could you reuse the ideas from this project in a different context?
Share Your Work
When your project is complete, click Share in Scratch and post the link to your class or the Techbase community.
| ← Back to Scratch Course | 🎉 You’ve completed all 35 projects! |