Many efforts were taken to ensure the accuracy of this text and the
experiments, but the potential for errors still exists. If you find
errors or any subject requiring additional clarification, please report
this to stampsinclass@parallaxinc.com so we can continue to
improve the quality of our documentation.
Warranty
Parallax warrants its products against defects in materials and workmanship for a period of 90 days. If you discover a defect, Parallax
will, at its option, repair, replace, or refund the purchase price. Simply call for a Return Merchandise Authorization (RMA) number,
write the number on the outside of the box and send it back to Parallax. Please include your name, telephone number, shipping
address, and a description of the problem. We will return your product, or its replacement, using the same shipping method used to
ship the product to Parallax.
14-Day Money Back Guarantee
If, within 14 days of having received your product, you find that it does not suit your needs, you may return it for a full refund. Parallax
will refund the purchase price of the product, excluding shipping / handling costs. This does not apply if the product has been altered
or damaged.
Copyrights and Trademarks
This documentation is copyright 1999 by Parallax, Inc. BASIC Stamp is a registered trademark of Parallax, Inc. If you decide to use the
name BASIC Stamp on your web page or in printed material, you must state: "BASIC Stamp is a registered trademark of Parallax, Inc."
Other brand and product names are trademarks or registered trademarks of their respective holders.
Disclaimer of Liability
Parallax, Inc. is not responsible for special, incidental, or consequential damages resulting from any breach of warranty, or under any
legal theory, including lost profits, downtime, goodwill, damage to or replacement of equipment or property, and any costs or
recovering, reprogramming, or reproducing any data stored in or used with Parallax products. Parallax is also not responsible for any
personal damage, including that to life and health, resulting from use of any of our products. You take full responsibility for your BASIC
Stamp application, no matter how life threatening it may be.
Internet Access
We maintain Internet systems for your use. These may be used to obtain software, communicate with members of Parallax, and
communicate with other customers. Access information is shown below:
E-mail:
Web:
stampsinclass@parallaxinc.com
http://www.parallaxinc.com and http://www.stampsinclass.com
Internet BASIC Stamp Discussion List
We maintain two e-mail discussion lists for people interested in BASIC Stamps (subscribe at
http://www.parallaxinc.com
under the
technical support button). The BASIC Stamp list server includes engineers, hobbyists, and enthusiasts. The list works like this: lots of
people subscribe to the list, and then all questions and answers to the list are distributed to all subscribers. It’s a fun, fast, and free
way to discuss BASIC Stamp issues and get answers to technical questions. This list generates about 40 messages per day.
The Stamps in Class list is for students and educators who wish to share educational ideas. To subscribe to this list, go to
http://www.stampsinclass.com and look for the E-groups list. This list generates about five messages per day.
Contents
Table of Contents
Preface ............................................................................................................................................ iii
Preface ................................................................................................................................................................................... iii
Audience and Teacher’s Guides..........................................................................................................................................iv
Copyright and Reproduction ...............................................................................................................................................v
Experiment #1: Flowcharting and Stamp Plot Lite ............................................................................... 7
Adjusting the Temperature for a Shower Example........................................................................................................ 8
Conveyor Counting Example .............................................................................................................................................10
Exercise #2: LED Blinking Circuit ......................................................................................................................................14
Exercise #3: Analog Data....................................................................................................................................................17
Exercise #4: Using Stamp Plot Lite ..................................................................................................................................20
Questions and Challenge ...................................................................................................................................................25
Experiment #2: Digital Input Signal Conditioning ............................................................................... 27
Exercise #4: An Electronic Switch....................................................................................................................................47
Questions and Challenge ...................................................................................................................................................64
Experiment #3: Digital Output Signal Conditioning ............................................................................ 71
Exercise #1: Sequential Control .......................................................................................................................................74
Exercise #2: Current Boosting the BASIC Stamp..........................................................................................................85
Questions and Challenge ...................................................................................................................................................91
Experiment #4: Continuous Process Control ..................................................................................... 97
Exercise #2: Open-Loop vs. Closed-Loop Control .....................................................................................................113
Questions and Challenge .................................................................................................................................................125
Experiment #5: Closed-Loop Control ...............................................................................................127
Exercise #1: Establishing Closed-Loop Control ..........................................................................................................130
Exercise #2: Differential-Gap Control ..........................................................................................................................136
Questions and Challenge .................................................................................................................................................142
Experiment #6: Proportional Integral Derivative Control ..................................................................145
Exercise #2: Proportional Integral Control..................................................................................................................172
Questions and Challenge .................................................................................................................................................187
Page i
Contents
Experiment #7: Real-time Control and Data Logging ........................................................................ 189
Exercise #1: Real Time Control.......................................................................................................................................192
Questions and Challenge..................................................................................................................................................199
Questions and Challenges................................................................................................................................................203
Exercise #3: Data Logging ................................................................................................................................................204
Questions and Challenges................................................................................................................................................219
Appendix A: Stamp Plot Lite ........................................................................................................... 221