π¦ Level 2 β Sensors & IR Control
π‘ Level 1 β Fundamentals: The Spark World
Mission 1.1 β Hello World LED
Learn to blink a light, change brightness, and send messages to your computer.
Quest Steps:
- Blink every second
- Blink faster (0.5s)
- Blink slower (2s)
- Brightness control with PWM
- SOS pattern in Morse code
Trouble in the Field:
- LED doesnβt turn on β check pin number
- Blinking looks weird β check delay values
Mission 1.2 β Basic Traffic Light
Build a simple traffic light system with pedestrian button and buzzer signal.
Quest Steps:
- Red ON
- Red β Green cycle
- Full cycle with yellow
- Pedestrian button
- Buzzer crossing signal
Trouble in the Field:
- Wrong LED order β check code
- Button doesnβt respond β check input
Mission 1.3 β DC Motor Control
Control motor direction and speed using buttons and PWM.
Quest Steps:
- Spin forward
- Spin backward
- Control speed
- Drive two motors
- Stop/start with button
Trouble in the Field:
- Motor doesnβt spin β check wiring
- Wrong direction β check polarity
Mission 1.4 β Musical Buzzer
Play tones and melodies with a buzzer and create rhythm patterns.
Quest Steps:
- Play single tone
- Play scale
- Play melody
- Rhythm patterns
- LED + buzzer sync
Trouble in the Field:
- No sound β check buzzer pin
- Wrong pitch β check frequency
Mission 1.5 β Basic Car
Build a car that moves forward, backward, and turns with button control.
Quest Steps:
- Drive forward
- Drive backward
- Turn left
- Turn right
- Stop/start button
Trouble in the Field:
- Car doesnβt move β check motor driver
- Wrong turn β check motor order
Mission 1.6 β Serial Interaction
Send and receive messages between your robot and computer.
Quest Steps:
- Print text
- Print sensor values
- Receive command
- Control LED
- Control motor
Trouble in the Field:
- No text β check serial setup
- Wrong command response β check logic
Mission 1.7 β Digital Sensors
Use buttons to control outputs and count interactions.
Quest Steps:
- Button ON
- Button OFF
- Toggle LED
- Count presses
- Change motor direction
Trouble in the Field:
- Button doesnβt work β check input pin
- LED flickers β check debounce
Mission 1.8 β Light Patterns
Create animated LED effects and custom light shows.
Quest Steps:
- Running lights
- Breathing LED
- Random flashes
- LED + buzzer sync
- Custom pattern
Trouble in the Field:
- LEDs out of order β check sequence
- Pattern too fast β check delay
Mission 1.9 β Speed Control
Adjust motor speed using buttons and serial commands.
Quest Steps:
- Accelerate
- Decelerate
- Set speed levels
- Change speed with button
- Change speed with serial
Trouble in the Field:
- Motor jerky β check PWM
- Speed doesnβt change β check variable
Mission 1.10 β Alarm System
Build a simple alarm using LED, buzzer, and timed triggers.
Quest Steps:
- LED alarm
- Buzzer alarm
- Both together
- Activate with button
- Timed alarm
Trouble in the Field:
- Alarm doesnβt trigger β check condition
- Alarm doesnβt stop β check timer
Mission 1.11 β Drawing Robot
Make a robot draw shapes and patterns on paper.
Quest Steps:
- Draw line
- Draw square
- Draw circle
- Draw triangle
- Free drawing
Trouble in the Field:
- Shape distorted β check motor timing
- Robot doesnβt move straight β check alignment
Mission 1.12 β Spark World Integration
Combine all your skills into a multi-function robot.
Quest Steps:
- Traffic light + buzzer
- Button-controlled car
- Alarm system
- Drawing robot
- Light show
Trouble in the Field:
- Devices conflict β check pin assignments
- System freezes β check delays