Larson Scanner
1 | |
About This MicroSim
The Larson Scanner is named after Glen A. Larson, the creator of the TV shows Battlestar Galactica and Knight Rider. This distinctive sweeping light effect was used for:
- Cylon robots in Battlestar Galactica (1978)
- KITT - the intelligent car in Knight Rider (1982)
This MicroSim recreates the iconic effect with 12 red LEDs that sweep back and forth with a fading trail.
How to Use
- Speed Slider: Move right for faster animation, left for slower
- Watch the red lights sweep left-to-right and back
- Notice the fading trail effect on adjacent lights
Technical Details
The effect creates visual persistence through:
- Active light: Full brightness (255 alpha)
- Adjacent lights: Medium fade (150 alpha)
- Two positions away: Dim (80 alpha)
- Inactive lights: Very dim (30 alpha)
- Glow effect: Larger semi-transparent circles behind the active light
Lesson Plan
Learning Objectives
- Understand animation timing and frame-based updates
- Learn about alpha transparency and visual persistence
- Explore arrays and position calculations
- Practice responsive design patterns
Target Audience
- Middle school students (grades 6-8)
- High school programming classes
- Maker/electronics enthusiasts
Prerequisites
- Basic understanding of loops and arrays
- Familiarity with coordinate systems
- Introduction to timing and animation concepts
Activities
- Speed Exploration: Experiment with the slider to find the most realistic scanner speed
- Count the Trail: How many lights show the fading trail at any moment?
- Modify the Code: Try changing the number of circles or fade levels
- Build It: Create a physical Larson Scanner with LEDs and an Arduino
Discussion Questions
- Why does the fading trail make the animation look more realistic?
- How would you modify this to have multiple scanners?
- What other pop culture references use similar lighting effects?
Extension Project
Build a physical Larson Scanner using:
- Arduino or Raspberry Pi Pico
- 12 red LEDs or NeoPixel strip
- Shift registers (74HC595) for LED control
Sample Prompt
Create a p5.js sketch for a simulation of a Larson Scanner.
The project has a row of 12 red evenly spaced horizontal
circles that fade in and out like Cylon robot eyes.
A slider below the drawing area allows a user to control
the speed of the animation. Keep the background black
for contrast with the red lights.
References
- Larson Scanner on Hackaday - Hardware projects and tutorials
- Glen A. Larson on Wikipedia - Creator of the original effect
- Knight Rider KITT - The famous AI car with the scanner
- Arduino Larson Scanner Tutorial - Build your own with LEDs