Files
Tim Hadwen 1f8c46597b Site audit: fix broken images, add activity metadata, clean up content
- Remove broken image references from 25 MDX files (deleted spacer/content images)
- Add codingSkills and roverConcepts frontmatter to 24 activity pages
- Fix "Activity Demonstration" headings in 15 activity files (plain text -> h3)
- Remove unused "All" category from 89 MDX files
- Decode HTML entities (> <  ) in 9 content files
- Escape bare < > characters in MDX to fix build errors
- Standardize contact email to contact@micromelon.com.au
- Add missing description to rover-repair-request metadata
- Include previous session work: about-us updates, difficulty filtering,
  LearningPathway component, expanded schools list, new product/resource images

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 21:49:15 +10:00

53 lines
2.0 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Activity: Binary Bot"
date: "2022-05-10"
categories: ["Activities", "Simulator Activities"]
tags: ["Iteration", "Motors", "Maths", "Intermediate"]
codingSkills: ["Iteration", "Maths"]
roverConcepts: ["Motors"]
excerpt: "Complete a simple exercise using only binary numbers!"
featuredImage: "/images/resources/binary-bot.png"
---
** **
Complete the Driving Shapes exercise but using only binary numbers instead of decimal numbers. If youre unfamiliar with Driving Shapes, all you need to do is program your rover to move in a shape e.g. square or triangle.
![](/images/content/2e96eb-drivingshapes.png)
### Activity Demonstration
### Setup
![](/images/content/2eaef8-unsplash-image-kgltfcgfc28.jpg)
#### Learning Binary
[**READ MORE**](/resources/learning-binary)
All you need is your computer, a Micromelon Rove and a flat, uniform surface to drive it on. If youre unfamiliar with what binary is check out our Learning Binary post.
### Heres Our Approach
You can write a binary number by prefacing 0b before your binary number in python, e.g. 0b100 is 4.
The binary number block can be placed in any position a normal number block would go.
The convert block located in the utilities category has an option for binary. You can put a normal number block (from the MATH category) into this and convert it to any binary number, this is useful when you want to print out what a normal number would look like in binary.
#### **Stage 1**
For this solution we repeated the while loop forever so we keep getting a square movement pattern. Then I substituted my binary blocks into the turn degrees and movement blocks.
#### To Note
Sometimes youll need to adjust your angles since the rovers will turn different amounts depending on the surface they are on. See if you can find a really accurate solution with your rover and on the floor in the classroom.
![](/images/content/7d9018-binary-bot-answer-1.png)
Example Code
![](/images/content/07757e-binary-bot-answer-2.png)
Example Code