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

42 lines
1.7 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: Flip Bot"
date: "2021-06-03"
categories: ["Activities"]
tags: ["Branching", "Iteration", "Accelerometer", "Motors", "Intermediate"]
codingSkills: ["Branching", "Iteration"]
roverConcepts: ["Accelerometer", "Motors"]
excerpt: "Learn branching, iteration, and how to use the accelerometer."
featuredImage: "/images/resources/flip-bot.png"
---
Program the rover to flip itself upside down and then stop. There are many solutions to this problem. The rover must flip itself without being touched while running and once it has flipped it should stop. You could try combining this with the Turn Over Rover program to include lights.
### Activity Demonstration
<iframe width="560" height="315" src="https://www.youtube.com/embed/176tJNx-Kd8" title="Flip Bot Activity Demonstration" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen></iframe>
### Setup
The most common way to flip the rover is having it drive up a flat vertical surface and fall backwards. Perhaps using the back of a laptop screen, a book, or a wall. These are not the only solutions. See what other driving conditions might make the robot flip.
### Heres Our Approach
This solution can be extended to make the rover reset itself and include LEDs
#### Stage 1
Start moving forward to eventually encounter a vertical obstacle.
#### **Stage 2**
Add a repeat block where the condition is a sensor block that checks if the rover is right way up. This will cause the rover to wait until it is not the right way up.
#### **Stage 3**
After the loop that waits for the robot to flip we add a motor block to stop the rover.
![](/images/content/1dfaa4-screenshot-2023-10-31-083156.png)
Example Code