Part 7
Working with BASIC Stamp Processors
Contents at a Glance
Chapter 1: Introducing the BASIC Stamp
Introducing the BASIC Stamp
Buying a BASIC Stamp
Working with the BASIC Stamp HomeWork Board
Connecting to BASIC Stamp I/O Pins
Installing the BASIC Stamp Windows Editor
Connecting to a BASIC Stamp
Writing Your First PBASIC Program
Project 48: Hello, World!
Flashing an LED with a BASIC Stamp
Project 49: An LED Flasher
Chapter 2: Programming in PBASIC
Introducing PBASIC
Building a Test Circuit
Project 50: An LED Test Board
Flashing the LEDs
Using Comments
Creating Names
Using Constants
Assigning Names to I/O Pins
Using Variables
Doing Math
Using If Statements
Using DO Loops
Using FOR Loops
Chapter 3: More PBASIC Programming Tricks
Using a Push Button with a BASIC Stamp
Checking the Status of a Switch in PBASIC
Project 51: A Push-Button-Controlled LED Flasher
Randomizing Your Programs
Reading a Value from a Potentiometer
Project 52: Using a Potentiometer to Control Flashing LEDs
Using Subroutines and the GOSUB Command
Chapter 4: Adding Sound and Motion to Your BASIC Stamp Projects
Using a Piezo Speaker with a BASIC Stamp
Project 53: Creating Sound with a Piezo Speaker
Using a Servo with a BASIC Stamp
Project 54: Using a Servo with a BASIC Stamp