
A Guide for Online Information
About:
Basic Stamps
by Rick
Prescott
Part: 1 2

BASIC
Stamps are small reprogrammable single board computers (SBC) that run
Parallax BASIC (PBASIC) programs.
They have fully programmable I/O pins that can be used to directly interface
to TTL-level devices, such as buttons, LEDs, speakers, potentiometers,
and shift registers. And with just a few extra components, these I/O
pins can be connected to non-TTL devices, such as solenoids, relays,
RS-232 networks, and other high current/voltage devices. Their low cost
and simplicity make the Stamps perfect for many prototyping and control
applications. It's suitable for electronics hobbyists as well as electronics
professionals in many different areas.
BASIC
Stamp's are a great idea for applications in the following areas (L.O.S.A
by Christer Johansson):
General
electronics
Home automation
Robotics
Mini PLC
Education
Prototyping
HAM related applications
Special effects in films
Industrial control
Geological instruments
Computer peripherals
Scale model hobbyists
Model train hobbyists
Architecture
of a BASIC Stamp:
BASIC
Stamps are available in various physical packages, but all versions
have the same logical design, consisting of a 5-volt regulator, resonator,
serial EEPROM, and PBASIC interpreter. A tokenized PBASIC program is
stored in the nonvolatile serial EEPROM, which is read from and written
to by the interpreter chip. This interpreter chip fetches the instructions
one at a time and performs the appropriate operation on the I/O pins
or internal structures within the interpreter. Because the PBASIC program
is stored in an EEPROM, it may be programmed and reprogrammed almost
endlessly, without the need to first erase the memory, as with many
microcontrollers. To program BASIC Stamp, you just connect them to an
IBM PC or compatible (parallel port for the BASIC Stamp I, and serial
port for the BASIC Stamp II and IISX) and run our editor software to
edit and download your program. (Parallax:
Architecture of a BASIC Stamp)
BASIC Stamp I
BASIC Stamp 2
Connecting
a BASIC Stamp to your PC:
The
BASIC Stamp I connects to your PC's parallel port. You may purchase
a cable or build your own:

The
BASIC Stamp II and IISX connect to your PC's serial port. You may purchase
a serial cable or again build your own. Serial port pins 6 (DSR) and
7 (RTS) may be connected for automatic port detection:

The
BASIC Stamp is programmed with a DOS (BASIC Stamp I, II, and IISX) or
Windows 95/98/NT4.0 (BASIC Stamp II and IISX) editor. Programs are written
and downloaded to the BASIC Stamp in the editor. When the download is
complete the program automatically runs in your BASIC Stamp. The editor
is used to check your program syntax, display the BASIC Stamp's available
memory resources, and to debug your program. By inserting a "debug"
command in your program you can view variable values on your PC screen,
or in a terminal program. All software is available for free download.
(Parallax,
Programming a BASIC Stamp from a PC)
BASIC
Stamp Software
BASIC Stamp DOS and Windows editor software, StampPlot Lite and StampPlot
Pro.
BASIC
Stamp Documentation
BASIC Stamp manuals, application notes and Windows interface documentation.
All documentation for modules and OEM versions.
BASIC
Stamp Application Kit Documentation (includes source code)
Real-time clocks, digital thermometers, A/D converters, LED display
drivers, EEPROM and modem interface documentation. Real-time clocks,
digital thermometers, A/D converters, LED display drivers, EEPROM and
modem interface documentation.
BASIC
Stamp Accessories
Activity boards, Boe-Bot, GrowBot, infrared, stepper controllers, serial
servo controllers, h-bridges, NTSC/pal character overlay, serial LCDs,
Stache field programmer, etc.
Stamps
in Class Curriculum
What's a Microcontroller?, Earth Measurements, Robotics!, Basic Analog
and Digital, and Industrial Control curricula.
SX
Keys and SX Chips
Software, documentation and sample source code for our SX-Key product
line.
Excellent
Informational Web Pages:
Basic
Stamp FAQ by Al Williams- an excellent source of answers to all
of your perplexing Stamp questions:
3.1
Can I run the Stamp software under Windows?
3.2 Can I run the
Stamp software on the Mac/Unix/etc.?
3.3 How do I write
PC software to communicate with the Stamp?
3.4 How do I work
with numbers larger than 65535?
3.5 How do I work
with decimal or fractional numbers?
3.6 How can I convert
from the Stamp I to the Stamp II?
3.7 How can I move
to a PIC?
3.8 Can I work with
more than 1 I/O pin at a time?
3.9 How can I parse
a single-byte command from a serial input?
3.10 How do I change
an input to an output (or vice versa) and why do I care?
3.11 How can I communicate
with the XXX device?
3.12 Can I process
serial input using more than one SERIN command?
3.13 How can I compact
my programs?
3.14 How do I assign
a symbolic name to an I/O pin?
3.15 How do I program the BSIISX?
3.16 How long do
Basic Stamp commands take to execute?
3.17 Where can I
find a handy reference of Stamp II or IISX commands?
3.18 Using SERIN
or SEROUT with the BS2SX doesn't work! Why?
3.19 How do I preserve variables when switching between programs on
the BS2SX (or BS2E)?
3.20 How can I simulate
call/return across banks?
Stamp
Project of the Month
Basic
Stamp Tips
L.O.S.A.
(List of Stamp Applications) Contribution Form
The main purpose of this list is to get an idea of what other people
are using their BASIC Stamps for and maybe get some inspiration or hints
for your own projects. Some of the projects described in the list also
have links to source code and schematics for download.
NEXT
I am always
looking for more material about interesting subjects. If you would
like to share more information about robotics or would like to see
a Resource Page on a particular topic, contact me,
Rick
Prescott.
Circuit Cellar provides
up to date information for engineers, www.circuitcellar.com for more
information and additional articles.
©Circuit Cellar, the Magazine for Computer Applications. Posted
with permission. For subscription information, call (860) 875-2199 or
e-mail subscribe@circuitcellar.com
|