Exercises

Exercise 1: Binary Counter

Implement an LED array that counts in binary.

Learning Goals:

  • Understand digital output
  • Simple circuit design
  • Resistors and LEDs
  • Basic breadboard wiring
  • Sketch code structure
  • Linear code logic

 

Exercise 2: Speedometer

Implement an LED that models a car speedometer display.

Learning Goals:

  • Understand analog input
  • Use constants & variables
  • Function return results
  • Use complex IF/ELSE logic

 

Exercise 3: Button Trigger

Add a button trigger to the binary counter.

Learning Goals:

  • Understand digital input
  • State change detection
  • Counting logic
  • FOR loops
  • Serial Monitor debugging

 

Example 4: Thermometer

Make a thermometer with an LCD text display, and a connection to a Processing graphing application.

Learning Goals:

  • Use an LCD for untethered text display
  • Serial output to a host computer
  • Real-time data visualization with Processing