Chapters
This textbook is organized into 20 chapters covering 485 concepts across all topics in the Moving Rainbow course.
Chapter Overview
- Introduction and Computational Thinking Foundations — Introduces the four computational thinking pillars—decomposition, pattern recogn...
- Python Basics: Variables, Data Types, and Operators — Covers Python's core building blocks: variables and assignment, all fundamental ...
- Python Functions, Modules, and Programming Best Practices — Teaches function definition, parameters, return values, variable scope, the DRY ...
- Python Control Flow, Loops, and Error Handling — Covers conditional statements (if/elif/else), for and while loops, loop control ...
- Raspberry Pi Pico Hardware and Development Environment — Introduces the RP2040 microcontroller, GPIO pins, MicroPython firmware, Thonny I...
- MicroPython APIs, GPIO Control, and Electrical Fundamentals — Covers the machine.Pin, PWM, ADC, utime, urandom, and neopixel MicroPython APIs ...
- Color Theory: The RGB Color Model and Color Mixing — Explores the RGB additive color model, primary light colors, the color wheel, sp...
- NeoPixel LED Hardware: WS2812B, Wiring, and Form Factors — Covers WS2812B integrated circuits, addressable LED technology, single-wire seri...
- NeoPixel Programming: Pixels, Colors, and the NeoPixel Library — Teaches the NeoPixel class: pixel indexing, RGB tuple format, strip.write(), 24-...
- Advanced Color Theory: HSV, Gamma Correction, and Color Palettes — Introduces the HSV color space, gamma correction for perceptual accuracy, gamma ...
- Mathematics for LED Programming — Covers the mathematical concepts powering LED effects: modulo arithmetic, linear...
- Basic LED Animation Patterns — Implements the first wave of animation effects—blink, rainbow, moving rainbow, r...
- Intermediate Animation Techniques — Covers fade in/out, theater chase, ripple, bounce, random walk, brightness scali...
- Advanced Animation Patterns: Comet, Scanner, and Candle — Teaches the most complex animation effects—heartbeat, Larson scanner, comet tail...
- Electronics Fundamentals: Resistance, Ohm's Law, and Components — Covers resistance, Ohm's Law, complete circuit paths, short and open circuits, p...
- Circuit Assembly: Resistors, Transistors, and Circuit Types — Builds on electronics theory with transistor switch circuits, transistor current...
- Power Systems, Batteries, and Energy Management — Covers all battery types (coin cell, AA, AAA, 9V, USB power bank, LiPo, 18650), ...
- Input Devices, Sensors, and State Machines — Teaches momentary push button wiring, GPIO input mode, pull-up and pull-down con...
- Interactive Animations and Development Tools — Connects input and animation by implementing mode-based, button-triggered, photo...
- Project Design, Capstone Projects, and Presentation — Covers the complete project lifecycle from ideation and requirements specificati...
How to Use This Textbook
Each chapter builds on the previous ones — concepts introduced early reappear in later chapters as prerequisites. Work through chapters in order, particularly for the first half of the book (Python fundamentals → Pico hardware → NeoPixel → color → animation). The electronics chapters (15–17) and project design chapter (20) can be revisited at any point once you have the core programming skills.
Note: Each chapter lists all concepts covered. Complete prerequisite chapters before advancing to topics that depend on earlier material.