Robotics

πŸ”¦ 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:

  1. Blink every second
  2. Blink faster (0.5s)
  3. Blink slower (2s)
  4. Brightness control with PWM
  5. 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:

  1. Red ON
  2. Red β†’ Green cycle
  3. Full cycle with yellow
  4. Pedestrian button
  5. 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:

  1. Spin forward
  2. Spin backward
  3. Control speed
  4. Drive two motors
  5. 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:

  1. Play single tone
  2. Play scale
  3. Play melody
  4. Rhythm patterns
  5. 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:

  1. Drive forward
  2. Drive backward
  3. Turn left
  4. Turn right
  5. 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:

  1. Print text
  2. Print sensor values
  3. Receive command
  4. Control LED
  5. 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:

  1. Button ON
  2. Button OFF
  3. Toggle LED
  4. Count presses
  5. 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:

  1. Running lights
  2. Breathing LED
  3. Random flashes
  4. LED + buzzer sync
  5. 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:

  1. Accelerate
  2. Decelerate
  3. Set speed levels
  4. Change speed with button
  5. 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:

  1. LED alarm
  2. Buzzer alarm
  3. Both together
  4. Activate with button
  5. 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:

  1. Draw line
  2. Draw square
  3. Draw circle
  4. Draw triangle
  5. 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:

  1. Traffic light + buzzer
  2. Button-controlled car
  3. Alarm system
  4. Drawing robot
  5. Light show

Trouble in the Field:

  • Devices conflict β†’ check pin assignments
  • System freezes β†’ check delays

On this page