Computer Science
Beginner
200 mins
Teacher/Student led
What you need:
Chromebook/Laptop/PC

Understanding Embedded Components and Planning

In this lesson, you'll learn about embedded systems by exploring components like sensors and actuators. Follow steps to design a system, discuss ethical impacts, assign team roles, and create a detailed plan for your project.

Teacher Class Feed

Load previous activity

    1 - Introduction

    In this lesson, you'll explore key components like sensors and actuators, learn step-by-step system design, assign team roles, discuss ethics, and create an initial plan. 

    Embedded systems are specialised computers integrated into devices for specific tasks, like a smart thermostat. You'll design automated applications while being flexible with tech like Micro:bit or Arduino.

    It should span several sessions, allowing you time to think deeply and collaborate with your team.


    Remember, planning involves abstraction – simplifying complex systems into manageable parts.

    2 - Exploring Embedded Components

    Start by understanding core components of embedded systems, referencing foundations like CPU architecture and digital vs. analogue inputs from earlier lessons. Embedded systems integrate these components to perform specific tasks efficiently.

    Key components include:

    • Microcontroller: The 'brain' (e.g., in Micro:bit), handling processing (recall CPU and memory from 'Hardware and OS' unit). It executes instructions and manages data flow.
    • Sensors: Inputs that detect environmental changes, like temperature sensors (analogue, providing continuous values) or buttons (digital, providing on/off states).
    • Actuators: Outputs that perform physical actions, like LEDs for lighting or motors for movement, responding to microcontroller commands.
    • Power Supply and Connections: Batteries or adapters for energy, and wires or circuits for integrating components securely.

    This demonstrates abstraction: focusing on essential parts while ignoring unnecessary details to simplify design.

    Activity: List components for a sample project, like a door alarm (e.g., motion sensor as digital input, buzzer as actuator). Note if inputs are digital or analogue. Then draw a simple diagram of the components and their connections, labelling each part.

    3 - Step-by-Step System Design

    Now, design your embedded system step by step. This process builds on computational thinking skills like problem-solving and algorithmic thinking, helping you break down complex tasks into manageable parts.

    1. Define the Problem: Clearly state what task your system will automate. Think about real-world needs, such as monitoring room temperature or detecting motion for security. Example: Create a system that automatically waters plants when soil moisture is low.
    2. Choose Components: Select appropriate sensors and actuators based on your problem. Be flexible with available technology – for instance, use a Micro:bit's built-in sensors or add external ones via GPIO pins. Consider compatibility and power requirements.
    3. Sketch the System: Draw a diagram showing how components connect. Use free tools like draw.io, or simply sketch on paper and scan it. Label inputs, outputs, and the microcontroller clearly to visualise the flow.
    4. Plan the Logic: Outline the system's behaviour using pseudocode. This is like a blueprint for your program, incorporating sequences, conditionals, and loops (outcome 2.6). Example: IF sensor_value > threshold THEN activate actuator.
    5. Consider Inputs/Outputs: Differentiate between digital inputs/outputs (simple on/off, like a button or LED) and analogue ones (continuous values, like a temperature sensor – recall outcome 2.14). Think about how you'll read and respond to these in your code.

    Example Pseudocode for a Light-Activated LED:

    WHILE true
        read analogue input from light sensor
        IF input < 500 THEN
            turn on LED
        ELSE
            turn off LED
        END IF
    END WHILE
    Activity: Spend about 30 minutes sketching your system's diagram and writing basic pseudocode. Remember to be flexible – you could implement this in Python for Micro:bit or the Arduino IDE, depending on your hardware. If you're stuck, refer back to examples from the 'Algorithms and Pseudocode' unit.

    4 - Ethical Discussion

    Embedded systems are everywhere in our daily lives, from smart home devices to medical equipment, and they can have significant ethical and societal impacts. In this step, you'll discuss these aspects, building on what you've learned about the relationship between computing technologies and society and the positive and negative impacts on culture and society. For example, while these systems can improve efficiency and safety, they might also raise concerns about privacy or unintended harm.

    Take time to think about how your embedded system could affect people and the environment. Use the following prompts to guide your discussion:

    • Privacy: Consider how your system collects or stores data. For instance, if it uses sensors to monitor activity, how can you ensure user data isn't misused? A good practice is to avoid unnecessary data logging and inform users about what data is collected.
    • Safety: Think about potential risks from actuators or outputs. For example, if your system controls a motor, set speed limits to prevent accidents. Ask: What could go wrong, and how can we add safeguards?
    • Accessibility: Ensure your design is inclusive, following principles like universal design. Could adaptive technology help people with disabilities use your system? For example, add audio feedback for visually impaired users.
    • Environmental Impact: Evaluate the system's power consumption or material use. Opt for energy-efficient components to reduce waste, and consider the long-term effects on resources.
    Activity: Spend 20-30 minutes debating these prompts with your team. Jot down key decisions, such as 'We'll add fail-safe mechanisms to shut down the system if a sensor detects unsafe conditions' or 'We'll use low-power modes to minimise environmental impact.' This will help you compare positive outcomes (like convenience) against negatives (like privacy risks).
    Remember to integrate these ethical considerations into your overall plan. Responsible design means thinking ahead to create technology that benefits society without causing harm.
    123learn · Online learning platform

    Unlock the full learning experience

    You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.

    Hundreds of curriculum-aligned lessons
    Interactive activities in every lesson
    Printable resources & progress tracking
    Copyright Notice
    This lesson is copyright of Coding Ireland 2017 - 2026. Unauthorised use, copying or distribution is not allowed.
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more