Build Your Kit page and full Micromelon website
Complete website build including: - Build Your Kit store page with cart system, sectioned layout (Hardware, Software, Attachments, Spare Parts), inline quote request form, and sticky sidebar summary - 16+ pages: Education, Platform, Resources, News, About Us, Download, Contact, Rover, Code Editor, Robot Simulator, etc. - 89+ MDX resource articles and 18 news posts - Store product images scraped from micromelon.com.au - Quote request API route with Airtable integration - Dynamic back links and cover photos on resource pages - Redesigned downloads page - Fixed corrupted MDX code blocks
This commit is contained in:
138
content/resources/sumo.mdx
Normal file
138
content/resources/sumo.mdx
Normal file
@@ -0,0 +1,138 @@
|
||||
---
|
||||
title: "Activity: Sumo"
|
||||
date: "2021-06-03"
|
||||
categories: ["Activities", "All", "Simulator Activities"]
|
||||
tags: ["Colour Sensors", "Branching", "Iteration", "Algorithm Design", "Ultrasonic", "IR", "Motors", "Advanced"]
|
||||
excerpt: "Learn branching, iteration, algorithm design, and how to use the Rover’s motors, colour, ultrasonic, and IR sensors."
|
||||
featuredImage: "/images/resources/sumo.png"
|
||||
---
|
||||
|
||||
A classic robotics competition challenge. Have your rovers battle in the sumo ring. If a rover is disabled or leaves the ring for any reason it loses the match. There are many possible approaches to staying in the ring while pushing the opponent out. This challenge is a great opportunity to design attachments for your rovers.
|
||||
|
||||
####
|
||||
Relevant Coding Skills
|
||||
|
||||
Branching
|
||||
|
||||
Iteration
|
||||
|
||||
Functions
|
||||
|
||||
Variables
|
||||
|
||||
-->
|
||||
|
||||
Algorithm Design
|
||||
|
||||
Maths
|
||||
|
||||
####
|
||||
Relevant Rover Concepts
|
||||
|
||||
Ultrasonic
|
||||
|
||||
IR
|
||||
|
||||
Colour
|
||||
|
||||
Gyroscope
|
||||
|
||||
Accelerometer
|
||||
|
||||
Motors
|
||||
|
||||
LEDs
|
||||
|
||||
-->
|
||||
|
||||
Buzzer
|
||||
|
||||
-->
|
||||
|
||||
Activity Demonstration
|
||||
|
||||
### Setup
|
||||
|
||||
The sumo exercise works best with a circular arena but any shape can work. The edges of the arena should be a clear contrast to the body of the arena so rovers can use colour sensors to detect when they are at the edge. We recommend the arena be 60-100cm in diameter with a 3-5cm edge. There are many variations of rules available online.
|
||||
|
||||
**The Quick & Easy Setup**
|
||||
|
||||
Use a desk as the arena floor and make the arena circle with coloured tape.
|
||||
|
||||
### Here’s Our Approach
|
||||
|
||||
Note that this is a simple approach that should be improved upon. Try different tactics and include sensors like IR and Accelerometer to better find and push your opponent.
|
||||
|
||||
#### Stage 1: Stay Away From The Edge
|
||||
|
||||
First we will add a repeat while true loop as we want our code to run continuously. We can then use an IF statement to move backward and turn around if the colour sensor detects the edge of the ring.
|
||||
|
||||
#### **Stage 2: Move Around The Ring**
|
||||
|
||||
If the robot doesn’t detect the edge it should move in search of the opponent. We can use the ELSE part of the IF statement to move forward.
|
||||
|
||||
#### **Stage 3: Push The Opponent**
|
||||
|
||||
Staying in the ring is most important. After checking for the edge, we can use an ELSE IF (ELIF) in the IF statement to detect if an opponent is in front with the ultrasonic sensor. If it is close use a motor block to set our motors to full speed to charge the opponent.
|
||||
|
||||

|
||||
|
||||
Example Code
|
||||
|
||||
### Related Posts
|
||||
|
||||
Resources
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/creating-a-sumo-unit)
|
||||
|
||||
[All](/resources?category=All)
|
||||
|
||||
[Creating A Sumo Unit For Your Digital Technologies Class](/resources/creating-a-sumo-unit)
|
||||
|
||||
[All](/resources?category=All)
|
||||
|
||||
How to run a sumo unit in your digital technologies classroom.
|
||||
|
||||
[Read More →](/resources/creating-a-sumo-unit)
|
||||
|
||||
[All](/resources?category=All)
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/ultrasonic-sensor)
|
||||
|
||||
[All](/resources?category=All), [Guides](/resources?category=Guides)
|
||||
|
||||
[The Ultrasonic Sensor](/resources/ultrasonic-sensor)
|
||||
|
||||
[All](/resources?category=All), [Guides](/resources?category=Guides)
|
||||
|
||||
Learn all about the ultrasonic sensor!
|
||||
|
||||
[Read More →](/resources/ultrasonic-sensor)
|
||||
|
||||
[All](/resources?category=All), [Guides](/resources?category=Guides)
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/year-7-digital-tech-at-st-peters)
|
||||
|
||||
[All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories)
|
||||
|
||||
[Case Study: Year 7 Digital Tech at St Peters Lutheran College](/resources/year-7-digital-tech-at-st-peters)
|
||||
|
||||
[All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories)
|
||||
|
||||
See how Meg Foley at St Peters conducted a challenge for their Year 7s using Micromelon.
|
||||
|
||||
[Read More →](/resources/year-7-digital-tech-at-st-peters)
|
||||
|
||||
[All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories)
|
||||
Reference in New Issue
Block a user