Cause and Effect Machines
Overview
Before a child can understand that code produces output, they need to understand that actions produce results — and that changing the action changes the result. This experiment uses ramps and simple machines to make cause-and-effect tangible. You change the height of a ramp, and the car goes faster. You push harder, and the cup falls over. Same input, same output. Different input, different output. That is the logic of every function ever written.
The Question
What happens when we make the ramp taller? Does the car go faster or slower?
(For younger children, the simpler version: What happens when we let go of the car at the top?)
Background
Simple machines — ramps, levers, pulleys — are the physical world's version of functions. You put something in (input), the machine does something to it (process), and you get a result (output). A ramp converts height into speed. A lever converts push into lift. These are concrete, visible, and graspable for very young children.
The key computational concept here is determinism: the same setup produces the same result every time. That's not magic — that's how the world works, and it's how programs work too.
Hypothesis
Before you start, ask your child to guess:
"If we make the ramp really tall, will the car go fast or slow?"
Accept any answer. You're not testing whether they get it right — you're practicing the habit of predicting before testing.
For the target challenge: "Do you think the car will knock the cup over? Let's find out!"
Materials
See frontmatter list. Everything should be household items. If you don't have a board for a ramp, use a baking sheet, a large book, or even a couch cushion propped against the sofa.
Procedure
Setup (3 minutes)
- Prop one end of your board on a single book or block to make a low ramp.
- Place the plastic cup or cereal box at the bottom of the ramp, about 6 inches from the end.
- Gather your rolling objects nearby.
Experiment 1: The Ramp (10 minutes)
Trial 1 — Low ramp:
Place the toy car at the top of the ramp. Say: "Ready? What's going to happen?"
Let go. Watch together. Narrate: "The car rolled down! Did it hit the cup?"
If it hit the cup: "It knocked it over! The car had enough speed." If it didn't reach: "It stopped! Not enough speed. How can we make it go faster?"
Trial 2 — Higher ramp:
Add more books under the ramp. Say: "The ramp is taller now. Will the car go faster or slower? What do you think?"
Let go. Compare: "Wow, it went MUCH faster this time! Taller ramp = faster car!"
Trial 3 — Highest ramp:
Stack even more books. Ask: "What will happen NOW?"
Let them predict, then test. The car should zoom and knock the cup far.
The big insight: Say: "Every time we made the ramp taller, the car went faster. Same car, different ramp, different speed. WE changed what happened by changing the ramp."
Bonus — The repeat test: Do the same height twice. "Will it do the same thing again?" Yes — same input, same output. That's reliability.
Experiment 2: Different Objects (5 minutes)
Keep the ramp at one height. Now change what rolls down it:
- Toy car (rolls fast, straight)
- Ball (rolls fast, might curve)
- Orange (rolls, bumpy)
- Block (doesn't roll — slides or stops)
For each one, ask: "Will this one knock the cup over?"
After the block fails: "Why didn't the block roll? It's not round! The shape matters."
The insight: Same ramp, different object, different result. The input changed.
Record (2 minutes)
You don't need paper. Just talk about what you discovered:
"What made the car go fastest? What didn't roll at all? What surprised you?"
For older children (3-4), you can draw three ramps (small, medium, tall) and have them draw a line showing how far the car went from each one.
Analysis
Guide the conversation with these questions:
- "When the ramp was short, was the car fast or slow?"
- "When we made it tall, what changed?"
- "Did the car do the same thing both times we tried the tall ramp?" (Repeatability)
- "Why didn't the block work?" (Properties of the object matter)
The Explanation
For your child (keep it simple): "When something is up high and you let go, it goes down. The higher up it starts, the faster it goes. That's how ramps work!"
For you (the parent): This demonstrates gravitational potential energy converting to kinetic energy, but more importantly for the software-ai pillar, it demonstrates input-output relationships. The height of the ramp is the input variable. The speed/distance of the car is the output. Changing the input changes the output predictably. Keeping the input the same keeps the output the same. This is functional thinking.
Extensions
- Lever experiment: Put a ruler over a block (fulcrum). Put a pom-pom on one end. Press the other end down — the pom-pom launches! Change where the fulcrum sits — does the pom-pom go higher or lower?
- Sponge experiment: Squeeze a wet sponge gently — a little water comes out. Squeeze hard — a lot of water. "Same sponge, different squeeze, different amount of water!"
- Domino chain: Line up blocks or dominos. Push the first one. Watch the chain reaction. "You only pushed ONE, and they ALL fell! One action caused a whole chain of things to happen."
Safety Notes
- Ramp stability: Make sure the ramp setup is stable and won't collapse. Heavy books can fall on small feet. Use lightweight blocks when possible.
- Small objects: If using marbles or small balls, supervise closely with children under 3 (choking hazard). Larger balls are safer.
- Height: Keep ramps low — 12-18 inches max. Higher ramps can launch objects unpredictably.
- The cup/target: Use a lightweight plastic cup or empty cardboard box, nothing glass or hard that could bounce back.
- Lever launching: If doing the lever extension, only launch soft objects (pom-poms, cotton balls). Never launch hard objects indoors.