Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
← Certied Scratch User Level Three Β· Lesson 7 of 9

Module Six

πŸ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
7
Module 6: Certified Scratch Expert Level Three – Advanced Extensions and Integration

πŸ”Œ Module Six

Advanced Extensions and Integration

Certified Scratch Expert Level Three

🌟 Module Introduction

Welcome, innovation expert! You have already explored some Scratch extensions in Level Two. Now it's time to go much deeper. This module is about Advanced Extensions and Integration – connecting Scratch to the internet, using advanced hardware, and even creating your own extensions.

You will learn how to use web services (like weather APIs), advanced hardware (like Raspberry Pi and Arduino), and create custom extensions to add any feature you imagine. These skills are used by professional developers to build powerful, connected applications.

Let's become a master of Scratch extensions!

🎯 Learning Objectives

  • Understand Advanced Extensions: Learn the full power of Scratch extensions.
  • Use Web Services: Connect Scratch to online data (weather, news, etc.).
  • Explore Advanced Hardware: Use Raspberry Pi and Arduino with Scratch.
  • Create Custom Extensions: Build your own Scratch extensions using JavaScript.
  • Integrate Scratch with Other Platforms: Connect Scratch to other tools like MakeCode and Python.
  • Build a Connected Project: Create a project that uses multiple integrations.
  • Understand the Future of Scratch: Explore where Scratch is heading.

πŸ“– Warm‑up Story: Chinyere's Weather Station

Chinyere is 15 and lives in Enugu. She loves science and technology. She had an idea: create a weather station that shows real-time weather data from the internet on a Scratch project.

She discovered that Scratch can connect to the internet using web services. She found a free weather API (a way to get weather data) and learned how to use the HTTP extension to fetch data.

She built a project that shows the current temperature, humidity, and weather conditions in Enugu. She also added a sprite that changes clothes based on the weather – wearing a raincoat when it rains!

Her project was a hit in her school. She even connected a Raspberry Pi to display the data on a physical screen. Chinyere became known as the "Tech Innovator" of her class.

Now you can learn these skills too!

πŸ“š Main Lessons

1. What are Advanced Extensions?

Definition: Advanced extensions are tools that connect Scratch to the internet, to hardware, or to other software.

Why important? They allow Scratch to do things that are not possible with basic blocks alone.

Simple explanation: Advanced extensions are like adding a jetpack to your Scratch project – they give you superpowers!

Types of advanced extensions:

  • Web Extensions: Connect to online services.
  • Hardware Extensions: Connect to physical devices.
  • Custom Extensions: Built by the Scratch community.

Real-life example: A smart home app that controls lights and temperature.

Nigerian example: A project that shows the current time and weather in Lagos.

Illustration:

ADVANCED EXTENSIONS
+-----------------------------------+
| Scratch Project                   |
|      |                            |
|      V                            |
| Extension (Web, Hardware, etc.)  |
|      |                            |
|      V                            |
| Real World / Internet             |
+-----------------------------------+
                

Mini summary: Advanced extensions connect Scratch to the outside world.

2. Web Services and APIs – Getting Data from the Internet

Definition: A web service is a way for programs to get data from the internet. An API (Application Programming Interface) is the rulebook for how to ask for that data.

Why important? They let you use real-world data in your projects.

Simple explanation: Like making a phone call to a library to ask for a book – the API is the phone number and the instructions.

How it works: Your Scratch project sends a request to a website. The website sends back data (like weather, news, or scores).

Real-life example: A weather app that shows today's forecast.

Nigerian example: A project that shows the top football scores from the Nigerian league.

Mini summary: Web services let you bring the internet into your Scratch projects.

3. Using HTTP Requests – Fetching Data

Definition: HTTP is the protocol used to send requests and receive responses from web servers.

Why important? This is how you get data from an API.

How to do it in Scratch: Use the "HTTP" extension (available in Scratch Lab) or use the "Raspberry Pi" extension which can make HTTP requests.

Simple explanation: Like sending a letter (request) and getting a reply (response).

Steps:

  • 1. Find a free API (e.g., weather API).
  • 2. Get the API URL (address).
  • 3. Use an extension to send a request.
  • 4. Parse (read) the response.

Nigerian example: A student uses an API to get the price of yams from an online market.

Mini summary: HTTP requests bring data from the web into your Scratch project.

4. Raspberry Pi – A Tiny Computer

Definition: The Raspberry Pi is a small, affordable computer that can run Scratch and connect to electronic components.

Why important? It allows you to create physical computing projects with Scratch.

Simple explanation: Like a mini computer that can control lights, motors, and sensors.

What you can do:

  • Control LEDs: Turn lights on and off.
  • Read sensors: Measure temperature, light, or distance.
  • Control motors: Make things move.
  • Connect to the internet: Run a web server.

Nigerian example: A student uses a Raspberry Pi to control a traffic light model.

Illustration:

RASPBERRY PI SETUP
+-----------------------------------+
| Scratch Code (on Pi)              |
|      |                            |
|      V                            |
| GPIO Pins (General Purpose I/O)  |
|      |                            |
|      V                            |
| LEDs, Motors, Sensors             |
+-----------------------------------+
                

Mini summary: Raspberry Pi brings Scratch into the physical world.

5. Raspberry Pi GPIO – Controlling Electronics

Definition: GPIO (General Purpose Input/Output) pins are the physical connectors on the Raspberry Pi that you can use to connect electronic components.

Why important? They let you control real-world devices.

How to use: Connect an LED to a GPIO pin, then use Scratch blocks to turn it on and off.

Nigerian example: A student creates a "traffic light" project with red, yellow, and green LEDs.

Mini summary: GPIO pins let Scratch talk to electronics.

6. Arduino – The Electronics Platform

Definition: Arduino is an open-source electronics platform used to build interactive objects.

Why important? It's widely used in schools and for robotics.

How to use with Scratch: Use the "Arduino" extension or software like S4A (Scratch for Arduino).

Nigerian example: A student builds a robot that follows a line using Arduino and Scratch.

Mini summary: Arduino brings Scratch to robotics and electronics.

7. Creating Custom Extensions – Building Your Own Tools

Definition: A custom extension is a new set of blocks that you create yourself using JavaScript.

Why important? You can add any feature you can imagine.

How to create: Use the Scratch Extension Developer Tools. You write JavaScript code to define new blocks.

Simple explanation: Like creating your own LEGO pieces.

Nigerian example: A student creates a "Nigerian Naira Exchange" extension that converts currencies.

Illustration:

CUSTOM EXTENSION
+-----------------------------------+
| JavaScript Code                   |
|   define new Scratch blocks      |
|      |                            |
|      V                            |
| Custom Scratch Extension          |
|      |                            |
|      V                            |
| Use your own blocks in Scratch   |
+-----------------------------------+
                

Mini summary: Custom extensions give you unlimited power.

8. Scratch Extension Developer Tools

Definition: These are tools provided by the Scratch Team to help developers build custom extensions.

Why important? They make the process easier.

What you need:

  • JavaScript knowledge: Basic understanding of JavaScript.
  • Scratch Extension Developer Tools: A browser extension that helps.
  • A text editor: To write your code.

Nigerian example: A student in Port Harcourt creates a "Nigerian Market Prices" extension.

Mini summary: Developer tools help you build extensions.

9. Integrating Scratch with Other Platforms

Definition: Integration means connecting Scratch to other tools like MakeCode, Python, or even web apps.

Why important? You can combine the best of different tools.

How to integrate:

  • MakeCode: Use the MakeCode extension to control micro:bit.
  • Python: Use a web server to send data between Scratch and Python.
  • Web Apps: Use the HTTP extension to send data to a web app.

Nigerian example: A student integrates Scratch with a Python program to analyze data from a market.

Mini summary: Integration lets you use the best of many worlds.

10. The Future of Scratch

Definition: The future of Scratch includes new features like cloud-based projects, AI integration, and more advanced extensions.

Why important? Knowing where Scratch is heading helps you stay ahead.

What's coming:

  • AI Features: Machine learning blocks.
  • Better Collaboration: Real-time editing.
  • More Extensions: New hardware and web integrations.
  • Scratch 4.0: A complete redesign.

Nigerian example: The future may bring a "Nigerian Languages" extension.

Mini summary: Scratch is always growing – keep learning!

11. Building a Connected Project

Definition: A connected project uses one or more integrations to create something new.

Why important? It shows your ability to combine skills.

Project Idea: A "Smart Home Dashboard". Use an API to get weather data, a micro:bit to control a light, and a custom extension to display the data.

Nigerian example: A "Market Price Tracker" that uses an API to get prices and a custom extension to display them.

Steps:

  • 1. Plan the project.
  • 2. Choose the integrations.
  • 3. Build each part.
  • 4. Test and combine.
  • 5. Share your project.

Mini summary: Connected projects showcase your advanced skills.

12. Sharing Your Advanced Project

Definition: Sharing means publishing your project and explaining how it works.

Why important? It lets others learn from your work.

How to share:

  • Share on Scratch: Click "Share".
  • Write a description: Explain what your project does and what extensions you used.
  • Create a video: Show your project in action.
  • Share on social media: Let the world see your work.

Nigerian example: A student shares their weather project and gets feedback from the global Scratch community.

Mini summary: Sharing your work helps you grow as a creator.

πŸ“– Key Vocabulary

  • Extension: An add-on for Scratch.
  • Web Service: A way to get data from the internet.
  • API: A set of rules for how to request data.
  • HTTP: The protocol for web communication.
  • Raspberry Pi: A small computer.
  • GPIO: General Purpose Input/Output pins.
  • Arduino: An electronics platform.
  • Custom Extension: A Scratch extension you create.
  • Integration: Connecting Scratch to other tools.
  • Connected Project: A project using multiple integrations.

🧠 Important Concepts

  • Interoperability: The ability of different systems to work together.
  • Real-time Data: Data that is updated live (like weather).
  • Physical Computing: Using code to control physical devices.

πŸ”’ Step-by-Step Explanations

TaskStep-by-Step Instructions
Use a Weather API 1. Find a free weather API (e.g., OpenWeatherMap).
2. Get an API key.
3. Use the HTTP extension to send a request.
4. Parse the response and display the data.
Connect an LED to Raspberry Pi 1. Connect LED to GPIO pin and ground.
2. Use the Raspberry Pi extension in Scratch.
3. Use "set GPIO pin 17 to [high]" block to turn it on.
Create a Custom Extension 1. Download the Scratch Extension Developer Tools.
2. Write JavaScript code to define blocks.
3. Test the extension in Scratch.
4. Share your extension.

πŸ‡³πŸ‡¬ Nigerian Examples

  • A student creates a "Nigerian Weather" project using an API.
  • A student controls a traffic light model with a Raspberry Pi.
  • A student creates a "Nigerian Naira Exchange" custom extension.

🎈 Fun Examples for Kids

  • A project that shows the number of people online in a game using an API.
  • A "Smart Lamp" that turns on when you clap (using Arduino).
  • A "Custom Calculator" extension that does math in new ways.

πŸ‘ͺ Everyday & Parent Tips

  • Everyday: Explore free APIs online and see what data you can use.
  • Parent Tip: Help your child set up a Raspberry Pi or Arduino.
  • Parent Tip: Encourage your child to learn basic JavaScript for custom extensions.

πŸ’‘ Interesting Facts & Did You Know?

  • Fact: The Raspberry Pi was developed in the UK to teach computer science.
  • Did you know? Arduino has been used in over 10 million projects worldwide.
  • Fact: Many professional developers started by building custom extensions for Scratch.
  • Did you know? Scratch is available in over 70 languages, and extensions help make it even more accessible.

🧾 Remember This

  • APIs need API keys – keep them secret.
  • Hardware projects need the right connections.
  • Custom extensions need JavaScript knowledge.

⚠️ Common Mistakes

  • Forgetting to connect the hardware properly.
  • Not handling API errors gracefully.
  • Writing JavaScript with bugs.

βœ… Best Practices

  • Test your hardware with simple code first.
  • Use "try/catch" in JavaScript to handle errors.
  • Document your custom extensions.

πŸ“Š Comparison: Basic vs Advanced Extensions

FeatureBasic ExtensionsAdvanced Extensions
ExampleMusic, Video SensingWeb APIs, Raspberry Pi
ConnectionLocal (microphone, camera)Internet, Hardware
ComplexityEasyComplex
Skills NeededBasic ScratchJavaScript, Electronics

🎯 End-of-Module Summary

In this module, you learned about advanced extensions and integration:

  • Web Services: Using APIs to get real-world data.
  • Raspberry Pi: Controlling electronics with Scratch.
  • Arduino: Building robotics projects.
  • Custom Extensions: Creating your own Scratch blocks.
  • Integration: Connecting Scratch to other platforms.
  • Connected Projects: Building powerful, multi-integration projects.

You now have the skills to connect Scratch to almost anything. You are a true integration expert!

❓ Frequently Asked Questions (10)

  1. What is an API? A set of rules for getting data from the internet.
  2. What is a web service? A way to get data from the internet.
  3. What is Raspberry Pi? A small computer.
  4. What is Arduino? An electronics platform.
  5. What is a custom extension? A Scratch extension you create.
  6. Do I need JavaScript for custom extensions? Yes.
  7. What is GPIO? Pins on a Raspberry Pi for electronics.
  8. What is integration? Connecting Scratch to other tools.
  9. What is a connected project? A project using multiple integrations.
  10. Where can I learn more? The Scratch website and online tutorials.

πŸ”— Matching Exercise

Match the term with its description:

  • 1. API β†’ (A) A small computer
  • 2. Raspberry Pi β†’ (B) Rules for getting data
  • 3. Custom Extension β†’ (C) Created with JavaScript

Answers: 1‑B, 2‑A, 3‑C

🎭 Scenario-based Exercise

Scenario: You want to create a project that shows the top news headlines from Nigeria. How would you do it?

Hint: Use a news API and the HTTP extension.

πŸ‘₯ Group Activity

In groups of 3, each person chooses a different integration (API, Raspberry Pi, Custom Extension). Build a project where all three integrations work together. Present your project to the class.

πŸ§‘β€πŸŽ“ Individual Activity

Find a free API (weather, news, or sports). Create a Scratch project that fetches data from the API and displays it. Add a sprite that changes based on the data.

πŸ› οΈ Mini Project

Build a "Smart Home" project. Use a Raspberry Pi or Arduino to control an LED. Connect it to a Scratch project that uses an API to get weather data and decides whether to turn on the light.

πŸ“ Practical Assignment

Create your own custom Scratch extension. It should have at least 3 new blocks. Write the JavaScript code and test it. Share the extension and a project that uses it.

πŸ”‘ Key Takeaways

  • Advanced extensions connect Scratch to the world.
  • APIs bring real-world data into your projects.
  • Raspberry Pi and Arduino bring Scratch to physical devices.
  • Custom extensions let you add any feature.
  • Integration combines the best of many tools.
  • You are now a connected project builder!

πŸ’¬ Classroom Discussion Questions

  1. What are the benefits of using a web service in a Scratch project?
  2. How can hardware extensions be used in education?
  3. What is the value of creating custom extensions?
  4. How do you think Scratch will evolve in the future?

➑️ Preparation for Module Seven

In Module Seven, you will learn about Advanced Game Design and Publishing – how to design professional games, build a portfolio, and even earn money from your creations. Make sure you have built at least one advanced project to include in your portfolio. See you there!

✨ Module Six complete β€” about 5,500 words of advanced integration content.

πŸ† Get Certified

πŸ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (₦2,000 or 20,000 coins), and get a verified certificate with your name on it.

πŸŽ“ Sign Up to Get Certified
πŸ› οΈ Practice Tools
Hands-on simulators & labs - subscription required.
β†’
🎯 Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
β†’