CONTENTS
INTRODUCTION
1 CREATING LIGHT
Color Codes
PROJECT: Electric Flowers
2 CONTROLLING ELECTRICAL CURRENT
How Bright Is That?
Resistors in Parallel
3 FLASHING, DIMMING, AND OSCILLATING
PROJECT: Build a Slow Switch
PROJECT: Flashing LEDs with an Integrated Circuit
PROJECT: A More Efficient Light Dimmer
4 CREATING MOTION AND SOUND
PROJECT: Controlling a Servomotor
Beeps and Squeaks
5 COMPUTER-CONTROLLED LEDS
Tools for Programming
Your First Program
Numbers and Constants
Ports
Patterns
Dimming
Controlling 120-Volt Lamps
PROJECT: Metronome
Serial Control of 14 Dimmable LEDs
PROJECT: Randomly Twinkling LEDs
6 COMPUTER-CONTROLLED MOTORS
More Power
Controlling Servomotors
Controlling Stepper Motors
PROJECT: Making Music with Your Computer
PROJECT: Making the Computer Speak
7 SENSING THE WORLD
Using LEDs as Light Sensors
Proximity Switch
Sonar
Piezoelectric Tap Sensor
PROJECT: Cecil, a Sessile Robot
PROJECT: Rover, a Simple Wheeled Robot
8 COMMUNICATION
Buttons
An LCD Text Display
Communicating Between a LaunchPad and Another MSP430 Chip
Synchronous Communication
Bluetooth
Infrared
9 PROGRAMMING
Data Types
Constants
Assignment
Expressions
Control Flow
Library Functions
Slightly More Complex Issues
INDEX