Sense · Move · Code
Your robot. Your lab.
Today the robot becomes lab equipment. You will plan in pseudocode, program the robot you designed, run real trials, collect real data, and make a claim you can defend. Same kit in every class, but a different lab in each course.
Absent today? Read your course's lab below and use the on-page tool with the sample numbers I give you when you see me. You will run three trials with a kit during lunch or after school, then turn in the data table and the CER.
Plan before you code
Write it in plain words. Then build it in blocks.
Pseudocode is your program written as plain sentences. It is not for the computer. It is for your team, so everyone agrees on what the robot should do before anyone drags a block.
Your robot, your design
You do not have to rebuild anything from the book. Use the robot your team designed. It just has to do the job of the lab:
Physics: it must drive in a straight line. Wheels, treads or legs, your choice.
Chemistry: it must read a colored brick held in front of the sensor and respond in a way we can see: point, sort, spin or drive.
IPC: it must pull. Any design that can drag a string tied to the back of it.
Open Coding Canvas and start from yesterday's project (PIN 1302), or a new project if I give you one. If a block you need is not in your palette, ask me.
Physics lab · How fast is your robot?
Same robot, three speed settings. Which line is steepest?
All unit we have read distance-time graphs. Today you make one from something you built. The question: when you change the speed setting in the code, how does the real speed change?
- Lay a track. Tape a meter stick or measuring tape to the floor or a long table. Mark a start line.
- Program one run. Motors forward at one speed setting, wait a fixed time, stop. Use the same wait time for every trial.
- Run three trials per setting. Measure distance from the start line to the front of the robot, in centimeters. Average the three.
- Change only the speed setting. Same robot, same surface, same time. That is what makes it a fair test.
- Enter your averages below. The tool calculates speed (v = d ÷ t) and plots each run as a line from the origin.
Variables
Independent: speed setting in the code. Dependent: distance traveled in the fixed time. Controlled: robot, wheels, surface, run time, battery charge.
Think ahead: the robot does not reach full speed instantly. How could that make a short run look slower than a long one?
| Run | Time (s) | Distance (cm) | Speed |
|---|---|---|---|
| High | — | ||
| Medium | — | ||
| Low | — |
Claim · Evidence · Reasoning
- Claim: How does the speed setting affect the robot's real speed?
- Evidence: Give your three speeds in cm/s and describe the three lines on the graph.
- Reasoning: Why does a steeper line on a distance-time graph mean a greater speed? Use the word slope.
- Error: Your three trials at one setting did not match exactly. Name two reasons why.
Chemistry lab · The robot flame test
Teach a robot to name an element by its color. Then test whether you can trust it.
Heat a metal salt in a flame and its electrons jump to higher energy levels. When they fall back, they give off light of very specific colors. That is the same pull from the nucleus we studied in One Pull, showing up as something you can see. Chemists have used flame colors to identify elements for more than 150 years.
No flames today
We are not burning anything. Colored bricks stand in for the flame colors. The real flame test comes later in the year, with goggles and a burner.
Pick a color to see which element it points to.
- Program the key. One color event for each flame color your sensor can read. The response is up to your design: point to a label, push the brick into a bin, spin a certain number of times, or drive to a spot.
- Make element labels. Write the element names on paper and set them where your robot points or sorts.
- Run an unknown. One teammate hides a brick and holds it to the sensor. Does the robot name the right element?
- Test the instrument. Now find out how far away the sensor still reads correctly. Hold one brick at each distance, five scans each, and mark ✓ or ✗.
Why test the instrument?
Every instrument has a range where it can be trusted, and a range where it cannot. A balance has a maximum. A thermometer has a top. You do not get to report a measurement from outside that range.
| Distance | Scan 1 | Scan 2 | Scan 3 | Scan 4 | Scan 5 | % correct |
|---|---|---|---|---|---|---|
| 0.5 cm | — | |||||
| 1 cm | — | |||||
| 1.5 cm | — | |||||
| 2 cm | — | |||||
| 3 cm | — |
Claim · Evidence · Reasoning
- Claim: Over what range of distances can your color sensor be trusted?
- Evidence: Give your percent correct at each distance.
- Reasoning: Why does a chemist need to know the range of an instrument before reporting a result?
- Think deeper: Copper burns green and copper chloride tends toward blue. Why is one color a clue and not proof of what a substance is?
IPC lab · Robot tug of war
Two robots, one rope. The net force decides.
Two teams tie their robots back to back with a short string. Both drive away from each other. One of three things happens: left wins, right wins, or nobody moves. Your job is to explain every result with a force diagram and the net force.
- Pair up with another team. Tie a 30 cm string between the backs of your two robots. If we have spring scales out, put one in the middle of the string so you can read the force in newtons.
- Trial 1: same setting. Both robots at the same speed setting. Predict first. What happened?
- Trial 2: change one thing. Faster setting, more mass on top, or different wheels. One change only.
- Trial 3: change something else. Can you make the losing robot win?
- Draw a force diagram for the string-and-robots system in every trial: pull left, pull right, friction. Label which force is bigger.
Remember the six steps
Pick a positive direction. Every force to the right is positive and every force to the left is negative. Add them with their signs. What is left over is the net force, and only the net force changes the motion.
Think ahead: why might the heavier robot win even when both motors are the same?
Simplified model: friction resists up to its maximum, and only the leftover force accelerates the system (a = Fnet ÷ m).
Claim · Evidence · Reasoning
- Claim: What decided the winner of each trial?
- Evidence: Describe each trial: settings, what changed, who won, and your spring scale reading if you had one.
- Reasoning: Use the words net force, balanced and unbalanced to explain why the rope moved or did not move.
- Apply F = ma: if the net force on the system is 2 N and the mass is 1.0 kg, what is the acceleration?
Last five minutes
Show it off, then put it away.
Thirty-second share
One teammate shows your robot and gives your claim in one sentence. One question from the class.
Photograph it
Take one picture of your robot before it comes apart. You will want it when we build lab rigs later this year.
Kit check
Robot apart, bricks sorted, hardware off and on the charger, cards in the box. Hardware Captain signs off.
Teacher notes · Day 3
Coding Canvas: lesson PINs open limited palettes. Check before class that the blocks each lab needs (motor speed, timed wait, color events) are in the PIN 1302 palette, or plan to give groups an open project. If the palette is missing a speed block, physics can compare a timed run against a single fixed speed and vary the run time instead.
Physics materials: meter sticks or a tape measure, masking tape, stopwatch (or the program's own wait time as the clock). The speed tool on the page plots each average as a line from the origin; it ignores the start-up acceleration on purpose, which makes a good error discussion.
Chemistry materials: red, yellow, green, blue and purple bricks as stand-ins; a ruler for the distance test. The sensor reads objects close to it, roughly a centimeter, so expect percent-correct to fall off fast past about 1.5 cm. Flame colors given here are the standard textbook associations; a real flame test is a future lab with burners and goggles.
IPC materials: string, spring scales if available, washers or extra bricks for added mass. Watch for robots being lifted off the floor by the string; tie it low. The calculator is a simplified model (static friction as a maximum, kinetic friction treated as the same value).
What comes next in the LEGO course: Basics 03 Forest Flight Rescue (pseudocode), 04 Supplies from the Skies (decomposition), then the Chore Champion design challenge. These can be worked in as kit days alongside the course labs.
Standards. Science and engineering practices (strand 1), all three courses: plan and conduct investigations; use appropriate tools; collect quantitative data using SI units; organize data in tables and graphs; develop and use models (P.1, C.1, IPC.1). Physics P.5A: describe and analyze motion in one dimension with graphs.Chemistry: connects to the electron and energy-level work in One Pull (C.6E) and to judging an instrument's precision and range.IPC IPC.5B: net force, force diagrams and Newton's second law. CSTA grades 6–8: 2-DA-08 collect data using computational tools; 2-AP-10 pseudocode; 2-CS-02 hardware and software that collect and exchange data.
This is just the start
The kits come back all year in our labs.
Keep your notebook pages from these three days. You will build on them.