Lesson 2 โ€” How to Use Teachable Machine

1.

Click and add the extension.

Step 1


2.

Add the Teachable Machine extension.

Step 2


3.

First, take out the block that allows you to connect a trained model.
Then click the Teachable Machine button, create your own machine learning model, train it, upload it to the Google server, copy the web URL of your model, and paste it into this block.

Step 3


4.

First, practise with an image project.

Step 4


5.

Create three classes: Rock, Paper, and Scissors.
Record images directly using the video camera and create your own model.

Step 5


6.

Make sure the images are clear and accurate.
Use a simple background and good lighting, and take images from different angles.

Step 6


7.

Once you have collected enough images, click the Train button to train the model.

Step 7


8.

Test the model in the preview.
After checking that it works well, click the Export Model button.

Step 8


9.

Click “Upload my model.”
The model will be saved to the Google server.

Step 9


10.

Copy the URL of your model.

Step 10


11.

Paste the model URL into your block.

Step 11


12.

Add the Camera extension.

Step 12


13.

Code it as shown below and connect your machine learning model.
Check whether it works correctly.

Step 13


14.

You can control a robot in the same way.
First, add the Node Board.

Step 14


15.

Select the Node Board.

Step 15


16.

Now try controlling the robot in the same way.
Because the robot communicates through Bluetooth, there may be a delay of about 0.3 seconds.

Step 16


๐Ÿ’ก Note: Bluetooth may have a ~0.3 second delay. This is normal.


17. ๐Ÿง  Use the Forever Loop to Keep Classifying Poses

To control your game with Teachable Machine, your code must continuously analyse and classify poses in real time.
This is why you must use the forever loop with Classify Pose inside โ€” it keeps the camera running and checking your pose every frame.

The sample code below shows the full game control structure โ€” use this as your starting template:

Sample Scratch Code โ€” Full Teachable Machine Game Control

โš ๏ธ Important โ€” You MUST use this loop structure:

Forever โ†’ Classify Pose loop โ€” required for continuous pose detection

๐Ÿ“Œ Why? The forever loop keeps the camera active and repeatedly runs Classify Pose so your game can react to your body movements instantly.
Without this loop, the pose is only checked once and your game will not respond to pose changes.

๐Ÿ’ก Tip: Add your game sprites and actions inside the “When a pose is recognised as [Pose]” blocks โ€” one block per pose you trained in Teachable Machine.

18. ๐Ÿ Build Your Own Game & Join the Competition!

Now it’s your turn! Create your own Scratch game controlled by Google Teachable Machine to compete in the challenge.
Use pose recognition to control your game characters or objects โ€” be creative!

๐ŸŽฎ Competition Rules

  • Your Teachable Machine model must recognise at least 3 different poses or gestures.
  • Your Scratch game must be playable and responsive to pose commands.
  • The game must have a clear goal or scoring system.
  • Be creative โ€” design something fun and unique!

๐Ÿ” Competition Participation Code

Enter this code on the RCC competition site to register your submission:

RCC-TM-2026
Enter at: roboticscodingchallenge.org

๐Ÿ“ฆ Submission Requirements

  • ๐ŸŽฌ A video link (YouTube or Google Drive) showing your game in action โ€” max 5 minutes
  • โœ๏ธ A written description explaining your research and game design โ€” 300+ characters
  • ๐Ÿ’ป Your Scratch project file or share link from coding.mrtrobotics.com
๐Ÿ“น Video Tip: Show at least 3 different poses controlling your game. Make sure the Teachable Machine model URL is visible in your Scratch project.
๐Ÿ“Ž For video tips and upload instructions โ†’ Submission Guide

๐ŸŽค Presentation Guide

Your presentation should cover the following points (2โ€“3 minutes):

  1. ๐ŸŽฎ Game Design โ€” What is your game about? What is the goal?
  2. ๐Ÿง  Teachable Machine Model โ€” What poses/gestures did you train? Why those?
  3. โš™๏ธ How it Works โ€” Explain how pose recognition connects to your Scratch game
  4. ๐Ÿ Gameplay Demo โ€” Show your game being played with pose controls
  5. ๐Ÿ’ก What You Learned โ€” What would you change or improve next time?
๐Ÿ†

Ready to Compete?

Submit your Scratch game and Teachable Machine model at the RCC portal

Go to RCC Portal โ†’


๐Ÿ“Š Scoring Criteria (Total: 100 points)

Category Points
๐ŸŽจ
Creative Design
Creative and original Scratch game design
20
๐Ÿง 
Pose ML Model
Accuracy & efficiency of Google Teachable Machine pose model
20
๐Ÿ’ป
Code Quality
Clean, efficient Scratch code
20
๐Ÿ†
Game / Story
Creativity & overall completeness of game / story
20
๐ŸŽฅ
Presentation
Video presentation
20
๐Ÿ… Total 100
Scroll to Top