Ibnovate Course 2 · The Rising Builders
⏱ 75 minLive session · ages 12–15

Session 8 — Build a Smart Gadget

Duration: 75 min · Format: live online · Ages: 12–15

Session goal: by the end, students can combine a sensor, a decision, and an output into a working gadget in the simulator, tune its threshold, and document it like an engineer.

Before class — prep (5 min)

Agenda

Time Segment
0:00 Hook — a gadget that decides for itself (5 min)
0:05 Teach — plan it: Sense → Think → Act (10 min)
0:15 Teach — code the decision (the if) (15 min)
0:30 Activity — build, test & tune the gadget (30 min)
1:00 Check for understanding (8 min)
1:08 Wrap-up + homework (7 min)

0:00 · Hook (5 min)

Ask the class (chat or unmute):

Let them guess, then reveal: it has all three pieces they've met — a sensor to sense, code to think, and an output to act. Tell them today they snap those pieces into their own real gadget.


0:05 · Teach — Plan it: Sense → Think → Act (10 min)

Explain: every gadget starts with a plan. Share the diagram and have each student pick one idea to build.

Share this diagram:

Sense with a sensor, think with Arduino, act with an output

Offer three starter ideas:

Ask: have each student finish this sentence in the chat — "My gadget will sense ___, think (if ___), and act by ___."


0:15 · Teach — Code the decision (the "Think") (15 min)

Explain: the magic is an if statement — it lets the gadget decide for itself. Walk through the code line by line, naming the Sense, Think, and Act.

Build/type this together:

void setup() {
  pinMode(13, OUTPUT);
}

void loop() {
  int light = analogRead(A0);   // SENSE
  if (light < 400) {            // THINK: is it dark?
    digitalWrite(13, HIGH);     // ACT: light ON
  } else {
    digitalWrite(13, LOW);      // ACT: light OFF
  }
}

⚠ Watch for the #1 misconception: students expect it to work perfectly first try and give up when it doesn't. Reframe — the number 400 is a threshold you tune, and real engineers spend most of their time testing and adjusting, not getting it right the first time.

Ask: "What happens if we make the threshold 900 instead of 400? When would the LED come on then?" (Answer: it turns on much more easily — almost all the time.)


0:30 · Activity — Build, test & tune (30 min)

Students build their gadget in the simulator. Demo the first build, then circulate.

  1. In Tinkercad Circuits, add the Arduino, a sensor (e.g., photoresistor on A0), and an output (LED on pin 13 with a resistor). Wire it up.
  2. Add the decision code above (adapt it to their chosen gadget).
  3. Start Simulation. Cover the sensor — does the LED turn on?
  4. Tune the threshold: the number 400 decides when it triggers. Too sensitive, or not enough? Change it and re-test. This tuning is engineering.

Circulate and ask: "What threshold worked for your gadget? How did you know?"

Debrief: have 2–3 students share their gadget, their threshold, and one thing they changed while testing.


1:00 · Check for understanding (8 min)

Ask these aloud or drop them in the chat. Answer key (for you):

  1. What are the three parts of a smart gadget?Sense → Think → Act — a sensor, an if decision, and an output.
  2. What does the if statement do? → It lets the gadget decide between options based on the sensor reading.
  3. What is the threshold? → The value that triggers the action (here, 400) — you tune it by testing.

1:08 · Wrap-up + homework (7 min)


Teaching notes

Vocabulary

Term Meaning
if statement Code that decides between options
Threshold The value that triggers an action
Prototype A first working version
Debug Finding and fixing problems
Iterate Test → tweak → test again

Resources

Next session

Block 3 — Competition & Portfolio: the finale — students turn their work into a competition entry, a research paper, and a standout presentation.

Ibnovate · Build · Innovate
Type to search · Esc to close
Welcome back
Sign in to continue building.
Accounts are created by Ibnovate — ask your instructor for your login.
🔒