SHS2 Engineering · Semester 2, Week 18
Embedded Systems
Lesson notes
Learning Objectives
Indicator: 2.4.2.LI.1 - Declare variables and constants, perform control actions and loops, write functions in C, test and debug programmes within the Arduino IDE.
By the end of the lesson, learners can:
- Declare variables and constants correctly in the Arduino IDE, using appropriate data types and naming conventions.
- Write C programmes that use if-else decision structures and for/while loops to control the behaviour of an LED connected to an Arduino board.
- Create and call user-defined functions in the Arduino environment to organise code into reusable blocks.
- Upload a compiled programme to the Arduino microcontroller and verify its operation in the physical world.
- Identify and fix common syntax, logic and wiring errors by testing and debugging programmes within the Arduino IDE.
Sign in with your phone number to read the full note and download the GES plan - free.
Sign in with phone numberCurriculum details
- Strand
- Automation and Embedded Systems (Strand 4)
- Sub-strand
- Embedded Systems (4.2)
- Content standard
- 2.4.2.CS.1 - Demonstrate an ability to programme in the Arduino Environment. 2.4.2.LO.1 Use the IDE of Arduino to write simple programmes in C and upload them onto the Arduino microcontroller. 2.4.2.LO.2 Develop applications which interface with simple hardware like switches, LEDs, LCDs, Relays, IR Sensors, Seven and Multi-Segment Displays, as well as other digital sensors.
- Indicator
- 2.4.2.LI.1 - Declare variables and constants, perform control actions and loops, write functions in C, test and debug programmes within the Arduino IDE.
- Suggested placement
-
Semester 2, Week 18
(Week 38 of the year)
Our suggestion, laid out in curriculum order across three terms of twelve weeks. NaCCA does not fix the week, so follow your school's scheme of learning.
- Curriculum reference
- NaCCA curriculum document, p. 103
Exemplars (from the NaCCA curriculum)
Experiential Learning: Guide learners through the basics of navigating the Arduino microcontroller and IDE through hands-on exercises. The facilitator should guide the learners to implement simple concepts in C programming like variable and constant declarations, loops, if else decisions, functions and debugging within the Arduino IDE. Simple hardware interfacing with LEDs and switches should be employed to demonstrate these concepts. Project-based Learning: Learners work on a simple mini project like a traffic light where they apply their programming skills to solve the given problem. Digital Learning: Learners are encouraged to use the available online resources to explore more tutorials and programming projects involving Arduino-embedded kits. Collaborative Learning: Learners work in groups on a mini project. Each group should assign a specific role(s) to members towards the solution of the challenge. Roles may, for example may, be modelled after typical design and production teams in the industry to give them the relevant exposure and develop team and collaborative skills. Assessment (2.4.2.AS.1). The document marks these depth-of-knowledge levels for this indicator: Level 1 Recall; Level 2 Skills of conceptual understanding; Level 3 Strategic reasoning; Level 4 Extended critical thinking and reasoning. Teaching and Learning Resources: - Arduino Embedded System Kits - Video documentaries - audio-visual equipment and laptops with MS Office installed