Skip to content

Don't just learn technology. Build it.

From CBC classroom concepts to practical skills in electronics, programming, robotics, and IoT.

Designed for the Kenyan CBC Curriculum

Learn

Everything a Learner Needs, in One Place

How STEMA connects to class, the skills learners gain, the parts they use and the projects they finish.

From Classroom to Prototype

Every activity starts from a concept learners already meet in class, then turns it into something they can wire, code and test.

  • Pre-Technical Studies

    In class

    Electrical circuits

    Hands on

    Assemble and test real circuits on a breadboard.

  • Integrated Science

    In class

    Environment and energy

    Hands on

    Measure light, temperature and humidity with sensors.

  • Mathematics

    In class

    Data and graphs

    Hands on

    Plot live sensor readings as graphs and interpret the trends.

  • Agriculture

    In class

    Soil and irrigation

    Hands on

    Monitor soil moisture and automate watering for a school garden.

  • Digital Skills

    In class

    Logic and programming

    Hands on

    Write if/else logic that makes real hardware respond.

Curriculum mappings are curriculum-informed supplementary learning and are not official KICD endorsements.

Build

From an Idea to a Working Project

Describe what you want to make, get help when you are stuck, and experiment before touching the hardware.

Turn an Idea Into a Project Plan

Describe any project in your own words and get the parts, wiring, code and an explanation. Or paste your own code and have it checked.

No need to know the parts. Just say what it should do.

0/800

Log in to save your projects.

Need an idea?

Sample: Smart Dustbin

An example of the project blueprint you'll get.

Sample output

Wiring Diagram

  • Arduino UNO 5V to HC-SR04 VCC
  • Arduino UNO GND to HC-SR04 GND
  • Arduino UNO D9 to HC-SR04 Trig
  • Arduino UNO D10 to HC-SR04 Echo
  • Arduino UNO 5V to Servo (SG90) Red
  • Arduino UNO GND to Servo (SG90) Brown
  • Arduino UNO D6 to Servo (SG90) Orange

Drawn from the AI's plan. Check it against the Wiring Guide, then ask a teacher to check your circuit before powering it.

stema_project.ino
1// Sample: Smart Dustbin
2// Board: Arduino UNO | Generated by the STEMA Code Lab
3
4#include <Servo.h>
5
6const int TRIG_PIN = 9;
7const int ECHO_PIN = 10;
8Servo servo;
9
10long readDistanceCm() {
11  digitalWrite(TRIG_PIN, LOW);
12  delayMicroseconds(2);
13  digitalWrite(TRIG_PIN, HIGH);
14  delayMicroseconds(10);
15  digitalWrite(TRIG_PIN, LOW);
16  long duration = pulseIn(ECHO_PIN, HIGH, 30000);
17  return duration * 0.0343 / 2; // speed of sound, there and back
18}
19
20void setup() {
21  Serial.begin(9600);
22  pinMode(TRIG_PIN, OUTPUT);
23  pinMode(ECHO_PIN, INPUT);
24  servo.attach(6);
25  servo.write(0);
26}
27
28void loop() {
29  // 1. Sense
30  long distance = readDistanceCm();
31  Serial.print("Distance (cm): "); Serial.println(distance);
32
33  // 2. Decide
34  bool activate = (distance > 0 && distance < 20);
35
36  // 3. Act
37  if (activate) {
38    servo.write(90);
39  } else {
40    servo.write(0);
41  }
42
43  delay(200);
44}

Warning: AI-generated code and wiring instructions are for learning purposes. Always verify with a teacher or qualified supervisor before powering a circuit.

Recommended Parts

  • Arduino UNO + USB cable
  • Ultrasonic sensor (HC-SR04)
  • Servo motor (SG90)
  • Breadboard & jumper wires

Wiring Guide

  1. HC-SR04: VCC → 5V, GND → GND, Trig → D9, Echo → D10.
  2. Servo: brown → GND, red → 5V, orange → D6.
  3. Connect every GND to one common ground rail.

How it Works

Arduino UNO reads Distance (HC-SR04) and controls Servo motor. When any input crosses its threshold, the outputs turn on.

  1. Disconnect power, then wire the circuit using the wiring list below.
  2. Install from the Arduino Library Manager: Servo.
  3. Select "Arduino UNO" and the correct port in the Arduino IDE, then upload.
  4. Open the Serial Monitor at 9600 baud and watch the readings.
  5. Adjust the threshold values until the project reacts the way you want.

Safety notes

  • Always disconnect power before changing the wiring.
  • Use low-voltage power only (12V DC or less). Mains electricity must be handled by a qualified adult.
  • ESP32 pins are 3.3V only. A 5V signal can permanently damage the board.
  • Motors, pumps and several servos need their own power supply and a shared ground, not a board pin.
  • Keep water away from the electronics.

Testing & Troubleshooting

  1. Open the Serial Monitor at 9600 baud and hold your hand 10cm from the sensor. The distance should change as you move.
  2. If the distance stays at 0, check the Trig and Echo wires are not swapped.
  3. If the servo shakes or the board resets, give the servo its own 5V supply and share GND.

For schools

Bring STEMA to Your School.

Give learners a practical route from classroom concepts to working prototypes.

  • Practical skills that stick

    Learners apply science and mathematics concepts by wiring, coding and testing something that visibly works.

  • Aligned with CBC competencies

    Projects connect to CBC's focus on competencies and give learners practical evidence of what they can do.

  • Problem-solving and teamwork

    Learners plan, test, fail safely and improve their designs together.

  • Solutions to real local problems

    Projects draw on everyday challenges such as irrigation, waste management and energy use.

  • Support for teachers

    Ready-made projects, safety notes and an AI mentor reduce the preparation needed for each session.

Talk to the STEMA team

Tell us about your school and we'll be in touch.

We save these details so the STEMA team can reply to your enquiry.