Microcontroller Projects Using the Basic Stamp provides clear explanations of the software and hardware design principles needed to effectively work with the BASIC Stamp. This book isn't just for beginners, If you are a seasoned designer, you'll like the task-oriented command reference, and chapters that cover analog I/O, serial communications, and LCDs. The benefit of this book is that it explains PBASIC commands in more detail than Parallax documentation.
Includes a well-written Stamp reference. Covers introductory material and advanced projects. A complete task-oriented Stamp command reference; covers BS1, BS2, and BS2SX, BS2e and BS2p.
Learn about advanced math, digital I/O, analog I/O, serial I/O, LCDs, keypads, motors, I/O expansion, and how to move to PIC or SX programming.
Projects include: reading buttons, driving relays, PWM output, a capacitance meter, homebrew ADC, interfacing a EEPROM, a PC-based frequency meter, interfacing standard and serial LCDs, using analog keypads, several games, a logic probe, a data logger, and a Morse code keyer.
Text book-style exercises (with solutions) to check your progress or for use in classroom.
Includes CD-ROM with Parallax software, Basic Stamp I simulator, and APP-I PIC programmer software.
450 Pages
Author: Al Williams
Format: Softcover
Table of Contents
Introduction
Chapter 1 Jump Right In
Getting Started
Hardware
Other Prototyping Needs
The No-Hardware Approach
The Software
Your First Stamp Program
The Outside World
Digital Basics
Number Systems
Other Bases
Boolean Algebra
Connecting Hardware
Digital Systems in an Analog World: A Few Laws
Pull-up and Pull-down Resistors
Putting it All Together: Your Next Program
Summary
Exercises
Chapter 2 The Nitty Gritty -- A Stamp Reference
General Program Formatting and Labels
The Stamp I Memory Map and I/O
Stamp I Expressions
The Stamp II Memory Map and I/O
Stamp II Expressions
Handling Large, Negative, and Floating Point Expressions
Command Reference (including alphabetical cross reference)
Section I -- Data Commands
Section II -- Flow Control
Section III -- Digital I/O
Section IV -- Analog I/O
Section V -- Serial I/O
Section VI --Tables
Section VII -- Specialized I/O
Section VIII -- Event Handling
Section IX -- Math Operators
Section X -- Logical Operators
Exercises
Chapter 3 --Digital I/O
I/O by Command
I/O with Registers
An LED Counter
Driving Larger Loads
Driving Relays and Other Inductive Loads
Switching a Relay
Switching Power with PNP Transistors
A PNP Driver
Other Switches
A Word About AC Loads
Simulating Open Collector Outputs
Working with Pulses
Counting Pulses
Reading Buttons
Experimenting with Button
Sharing I/O Pins
Expanding I/O
Polling
LED Die
Reaction Game
Quiz Buttons
Logic Probe
Automated Cable Tester
Under the Hood
Summary
Exercises
Chapter 4 --A Digital Power Supply: Analog Output
Sound and Tone Generation
Simple Speaker Circuits
Experimenting with PWM Noise
Amplifiers
Connecting to the Phone Line
An Example
Generating Voltages using PWM
Trying PWM
Other Uses for PWM
Traditional D/A
A Digitial Power Supply
Summary
Exercises
Chapter 5 --A Recording Voltmeter: Analog Input
Careful What You Ask For
Reading Resistance or Capacitance
A Capacitance Meter Project
Using an ADC
Averaging Readings
A Homebrew ADC
The Recording Voltmeter
Voltage to Pulse Conversion
The Simplest Analog Input
Summary
Exercises
Chapter 6 --Stamp to Internet: Serial I/O
Definitions
Simple Serial Protocols
Interfacing with the PAK-I
The I2C Bus
I2C Basics
Ending a Transmission
Slow Slaves
Arbitrating Multiple Masters
I2C Plans
Interfacing to an I2C EEPROM
Asynchronous Communications
RS232 Basics
Open Collector Async
A PC Frequency Counter
Extending PC I/O
Stamps On the Net
Summary
Exercises
Chapter 7 --A Pong Game: LCDs and Keypads
Serial LCDs
LCD Interfacing
The BS2p
LCD Commands
LCD Software
Scanning a Keypad
Analog Keypads
Making the Most of Limited Keys
Graphical LCDs
Details
Summary
Exercises
Chapter 8 --A Remote Control Robot: Motors
DC Motors
Using PWM
The H Bridge
About Stepper Motors
Servos
Cannibalizing Motors
Summary
Exercises
Chapter 9 --Morse Code Projects
Morse Code IDer
Morse Code Keyer
A Keyboard Keyer
Reading Code
Chapter 10 --The Next Step
Why Not Stamps?
What You Will Need
Software
Other Software
Assembler Survival Guide
Hardware Shortcuts
Getting Started
The Real Thing
Beyond PICs
Stamps + PICs?
An Example PBP Program
Summary
Exercises
Chapter 11 --On Your Own
The Parallax Mailing List
Web Sites
Appendix A About the CD-ROM
About the Stamp I Simulator
Appendix B The APP-I PIC Programmer
What's Needed?
Building It
Software
Troubleshooting
PICAWC Controls
Using the COM Port as a Power Supply
Appendix C Making Cables
Stamp I
Stamp II and Stamp IISX, IIe, IIp
Answer Key
Index
|