Halloween STEM activities for kids

Five spooky experiments with Kiwizi, free in the browser. No kit, no sign-up: kids code a creepy tune, build a glowing jack-o'-lantern, solve pumpkin sums and fly a drone over the pumpkin patch.

Kiwizi the kiwi in a witch hat holding a jack-o'-lantern

1. Spooky Arduino buzzer tune

Ages 8+ · 10 minutes

What kids learn: Arrays, loops and the tone() function: every note is just a number (its frequency in hertz).

  1. Open the buzzer experiment in Circuit Shala.
  2. Replace the sketch with the code below.
  3. Press Run and turn the sound on. Then change the numbers to write your own creepy tune.
int buzzer = 8;
// Low and creeping... then a scream!
int notes[] = {220, 262, 247, 220, 196, 220, 165, 880};
int beats[] = {400, 400, 400, 400, 400, 400, 800, 300};

void setup() {
  for (int i = 0; i < 8; i++) {
    tone(buzzer, notes[i], beats[i]);
    delay(beats[i] + 50);
  }
}

void loop() {
}

Open the buzzer experiment →

2. Jack-o'-lantern night lamp

Ages 8+ · 15 minutes

What kids learn: Light sensors and if/else: the LDR reads how bright it is, and the code decides when the pumpkin glows.

  1. Open the night lamp experiment in Circuit Shala.
  2. Replace the sketch with the code below and press Run.
  3. Drag the Light Level (A0) slider down to make it dark. The LED flickers like a candle inside a pumpkin.
void setup() {
  pinMode(13, OUTPUT);
  Serial.begin(9600);
}

void loop() {
  int light = analogRead(A0);
  if (light < 300) {
    // Dark: flicker like a candle in a pumpkin
    digitalWrite(13, HIGH);
    delay(120);
    digitalWrite(13, LOW);
    delay(40);
    digitalWrite(13, HIGH);
    delay(200);
  } else {
    digitalWrite(13, LOW);
    Serial.println("Too bright for ghosts...");
    delay(200);
  }
}

Open the night lamp experiment →

3. Glowing monster eyes

Ages 7+ · 5 minutes

What kids learn: Timing with delay(): short and long pauses turn one LED into a blinking monster.

  1. Open the blink experiment in Circuit Shala.
  2. Replace the sketch with the code below and press Run.
  3. Try making the stare longer or the blinks faster.
void setup() {
  pinMode(13, OUTPUT);
}

void loop() {
  // Two quick blinks, then the monster stares...
  digitalWrite(13, HIGH);
  delay(150);
  digitalWrite(13, LOW);
  delay(150);
  digitalWrite(13, HIGH);
  delay(150);
  digitalWrite(13, LOW);
  delay(1500);
}

Open the blink experiment →

4. Pumpkin abacus math

Ages 5+ · 10 minutes

What kids learn: Place value and adding with carries, using Halloween word problems.

  1. Open the 3D abacus in Free play.
  2. Show each problem on the abacus, then open the answer to check.
Show 31 on the abacus: the date of Halloween!
3 beads up on the tens rod, 1 bead up on the ones rod.
You have 12 candies and a friend gives you 7 more. How many now?
19
A pumpkin patch has 25 pumpkins and 8 get carved. How many are left?
17
5 houses each have 4 bats on the roof. How many bats?
20 (add 4 five times)
You walk 45 steps to one house and 36 to the next. How many steps?
81 (a big friends carry: +6 = +10 − 4)

Open the 3D abacus →

5. Drone pumpkin run

Ages 8+ · 15 minutes

What kids learn: How a quadcopter climbs, hovers and lands: throttle, pitch and roll.

  1. Open the flight simulator in Drone Shala and press Arm Motors.
  2. Take off, then fly low (under 3 m) over each of the three pumpkins to light it up.
  3. With all three glowing, land softly on the orange H pad to finish the Halloween mission.
  4. The pumpkins appear on the flight field every year from October 20 to 31.

Open the flight simulator →

Questions from parents and teachers

What are easy Halloween STEM activities for kids?
Play a spooky tune on an Arduino buzzer, build a jack-o'-lantern lamp that glows in the dark, solve pumpkin sums on an abacus and fly a drone over glowing pumpkins. All four run free in the browser.
Do we need an Arduino kit or a drone?
No. Circuit Shala simulates the Arduino Uno, breadboard and parts, and Drone Shala simulates the quadcopter, so kids can try every activity on a laptop, tablet or phone. With a real Arduino kit, the same sketches work too.
What age are these Halloween activities for?
Pumpkin abacus math suits ages 5 and up. The Arduino and drone activities suit ages 8 and up, or younger kids with a grown-up reading along.
How long does each activity take?
About 10 to 20 minutes each, so they fit a class period, a club session or a Halloween party table.