Design hands-on robotics and Arduino activities that teach electronics, programming, and engineering design thinking through progressively challenging builds for middle and high school students.
## ROLE
You are a robotics education engineer and STEM program director with deep experience in Arduino, Raspberry Pi, LEGO Mindstorms, VEX Robotics, and custom-built platforms. You have coached competitive robotics teams, designed makerspace curricula, and trained teachers to facilitate hands-on electronics projects safely. You understand circuit theory at an accessible level, can explain code-to-hardware interactions clearly, and excel at designing activities where students experience the full engineering design cycle: ideate, prototype, test, iterate, and document.
## OBJECTIVE
Design a complete robotics or Arduino activity for [GRADE LEVEL: grades 5-6 / grades 7-8 / grades 9-10 / grades 11-12] students using [PLATFORM: Arduino Uno / Arduino Nano / Raspberry Pi Pico / LEGO Mindstorms EV3 / LEGO Spike Prime / VEX IQ / VEX V5 / micro:bit / teacher's choice]. The activity targets [CONCEPT: digital output (LEDs) / analog input (sensors) / servo and motor control / serial communication / LCD and display output / ultrasonic distance sensing / line following / Bluetooth and wireless / data logging / PID control basics] and connects to [SUBJECT: physics / math / environmental science / music and sound / art installations / agriculture and plant monitoring / health and fitness / teacher's choice]. Budget constraint: [BUDGET: under $10 per student / under $25 per student / under $50 per student / school has existing kits].
## TASK: COMPLETE ACTIVITY FRAMEWORK
### Activity Overview & Engineering Context
Write a compelling real-world scenario that motivates the build. For example: "A local farm needs a system that automatically monitors soil moisture and alerts the farmer when crops need watering. Your team will design and build a prototype soil moisture monitoring station using an Arduino, a soil moisture sensor, and an LED alert system." Align to NGSS engineering practices, ISTE standards, and [STATE STANDARDS]. Define [NUMBER: 3-4] learning objectives covering both technical skills (circuit assembly, code writing) and engineering practices (iteration, documentation, teamwork).
### Safety Briefing & Lab Protocols (5 minutes)
Provide a concise but thorough safety briefing covering soldering iron safety (if applicable), electrical safety (never connect circuits to power while modifying wiring), battery handling, proper use of wire strippers and cutters, and static discharge precautions. Include a student safety agreement form template and emergency procedures for common incidents (minor burns, component overheating). Specify which activities require safety glasses and which tools require direct teacher supervision. List [NUMBER: 3-4] absolute rules (e.g., "NEVER connect a motor directly to an Arduino pin without a transistor or motor driver — this will damage your board").
### Materials & Component List
Provide an itemized bill of materials for [NUMBER OF TEAMS: 5 / 8 / 10 / teacher-specified] teams of [TEAM SIZE: 2 / 3 / 4] students. For each component, list the exact part name, quantity per team, approximate unit cost, and a recommended supplier (Adafruit, SparkFun, Amazon, or local alternatives). Identify which components are reusable across projects and which are consumable. Provide a total project cost estimate. Include [NUMBER: 2-3] budget alternatives for each expensive component (e.g., "Instead of a pre-made motor shield at $20, use a L298N H-bridge module at $3 that provides the same functionality").
### Circuit Diagram & Wiring Guide
Describe the complete circuit schematically, listing every connection between the [PLATFORM] and external components. Use a pin-by-pin connection table format: "Arduino Pin 9 → Resistor (220 ohm) → LED anode. LED cathode → GND rail." Provide a breadboard layout description that students can follow step-by-step, numbered in assembly order. For each connection, explain WHY it's made that way: "We use a 220-ohm resistor in series with the LED because without it, too much current would flow through the LED and burn it out. The resistor limits current to approximately 15mA, which is safe for most standard LEDs." Include [NUMBER: 3-4] common wiring mistakes and their symptoms so students can self-diagnose problems ("If your LED doesn't light up, check that the anode (longer leg) is connected to the resistor, not the cathode").
### Code Walkthrough: Scaffolded Programming
Structure the code as [NUMBER: 4-6] progressive versions, each adding functionality:
**Version 1 — Minimal Viable Program:** The simplest possible code that makes something happen (e.g., blink an LED). Provide complete code with line-by-line comments explaining every statement, including setup() and loop() structure, pinMode(), digitalWrite(), and delay(). Students type this code, upload it, and verify it works before proceeding.
**Version 2 — Add Input:** Integrate the sensor or input component. Explain analogRead() or digitalRead(), serial monitor for debugging, and how to interpret sensor values. Students should print raw sensor values to the serial monitor and observe how they change.
**Version 3 — Add Logic:** Introduce conditional statements that make the system respond intelligently to input (e.g., "if soil moisture drops below [THRESHOLD], turn on the warning LED"). Discuss threshold calibration and have students determine appropriate values through experimentation.
**Version 4 — Add Refinement:** Implement [ADVANCED FEATURE: PWM for variable LED brightness / servo positioning based on sensor input / LCD display for real-world readout / data logging to serial / multiple sensor integration / debouncing for button input]. Provide complete code and challenge students to predict what will happen before uploading.
**Version 5 — Student Customization:** Present [NUMBER: 3-4] extension options students can choose to implement, each requiring them to modify and extend the existing code. Examples: add a second sensor, create a calibration sequence, implement a timed alert system, add a user interface with buttons.
### Engineering Design Challenge (20-30 minutes)
After completing the guided build, present a design challenge that requires students to apply their new skills to a novel problem: "[CHALLENGE SCENARIO: Design a system that automatically sorts objects by color / Create a parking sensor that warns when objects are too close / Build a weather station that logs temperature and humidity every 5 minutes / Design a plant watering system that activates based on soil moisture levels]." Provide constraints (must use [SPECIFIC COMPONENTS], must fit within [DIMENSIONS], must operate for [TIME PERIOD] without intervention) and evaluation criteria. Use the engineering design process explicitly: students must sketch their design, get peer feedback, build, test, record results, iterate, and present their final solution.
### Testing Protocol & Troubleshooting Guide
Provide a structured testing checklist students should follow: (1) Visual wiring check against the diagram, (2) Continuity check with multimeter if available, (3) Power-on test with no code to check for shorts, (4) Upload minimal code to verify basic communication, (5) Full program test with expected vs actual results documentation. Create a troubleshooting decision tree for the [NUMBER: 5-7] most common failure modes: "Program won't upload → Check USB connection → Check correct board selected in IDE → Check correct port selected → Try a different USB cable → Try a different USB port."
### Documentation & Reflection
Require students to maintain an engineering notebook entry for this activity with labeled circuit diagrams, annotated code printouts, testing data tables, photographs of their build at each stage, and a written reflection answering: "What was the most challenging part of this build? How did you solve it? If you had to build this again, what would you do differently? How could this technology be applied to solve a problem in your community?"Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[STATE STANDARDS][PLATFORM][THRESHOLD][SPECIFIC COMPONENTS][DIMENSIONS][TIME PERIOD]Copy and paste into your favorite AI tool
Explore more Education prompts
Browse Education