BASIC Stamp Development Setup

This page summarizes what you need to start playing with a BASIC Stamp type of microcontroller.
skip list of on-page links

Before You Begin - Caution

The
BASIC Stamp is a small computer, and should be treated as one would a precision device. If you throw it around or play roughly with it, you might break it. Failure to care for a PROP-1 is like flushing $35 down the toilet.

The Prop-1 is small, neat-looking, and doesn't look particularly delicate. But it is meant to be mounted inside a protective enclosure - not thrown around.

The most insidious danger to electronic components is static electricity. A small static spark can ruin a device outright, damage part of it, or weaken it so it wears out earlier than expected. You might not see many cautions about this, because most electronic gadgets come in a nice case that protects it from normal static damage. But your PROP-1 arrives as an unprotected printed circuit board - it is your job to protect it.

While you are still learning the use the Prop-1, and have not yet permanently mounted it inside an enclosure, keep it in the blue plastic envelope it came in. This is a special antistatic material that helps protect the Prop-1 electronics from static damage.

In fact, Parallax even wrote a short paper on the subject. Go to the Parallax EFX web site and look up "Application Note FX00003 – Safe Handling of Static Sensitive Electronics". It could save your controller!

What You MUST Have

I have seen some folks attempt to experiment with BASIC Stamps by pinching every penny to the extreme. This never turns out well.

There are some things that you really need to have immediate access to. If you try to "cheap out" by borrowing this stuff from a friend, your experience with Stamps will be slow, awkward, and painful. You might even give up trying to use the Stamp, because you never really tried to use it properly in the first place.

I recommend that you make yourself a BASIC Stamp experiment kit that contains as much of this stuff as possible, dedicated to this purpose, in a clearly marked case or box.

I should repeat that as much of this stuff as possible should be dedicated to the Stamp work. Consider the case of a wall wart power supply. I have lots of things around the house that uses a wall wart, just like the Prop-1. I even have a box full of spare wall warts of various voltages that I have run into. But when I want to experiment with a PROP-1, I don't want to wander around the house looking for a wall wart to borrow. I don't even want to rummage around in the box of wall warts, looking for one that works with the Prop-1. All I want to do is open the box of BASIC Stamp stuff and pull out the wall wart that I have reserved for this purpose, and know will work right away.

If it sounds like I'm a big fan of aving everything available right away, I am. The best way to learn programming is to do programming. And you can't do it if you have to hunt up the pieces.

BASIC Stamp

There is a huge and bewildering assortment of BASIC Stamp microcontrollers to choose from. We have a page on choosing a BASIC Stamp. But for people seeking to automate their haunt, we suggest that you cut to the chase and get a PROP-1.

Personal Computer

In order to make use of a BASIC Stamp, you must first connect it to a personal computer. The PC is used to write the program that will later be loaded into the Stamp.

Essentially, you need to have a computer running Windows (either Windows XP, or some other relatively recent version). For details, go to the Parallax web site and read the documentation for their "BASIC Stamp Editor" programming software (IDE).

PC-Stamp Connection

Depending on which type of BASIC Stamp that you are using, and the types of connections that your personal computer has, there are numerous possibilities.

We have an entire page devoted to the BASIC Stamp Development Connection.

Stamp Power Supply

Different versions of the Stamp have different power requirements. Some run on batteries, some use external power supplies, some will run on either.

Read the manual!

WARNING: If you use the wrong power supply, you can destroy your BASIC Stamp!

PROP-1 Power Supply

If you are using a Prop-1 controller, be aware that it is not initially set up to run on batteries. You need a wall wart power supply. Look for one with the following characteristics:

If you know what kinds of things you will be controlling with the Prop-1, you can choose a wall wart that will serve that future use. If you want to operate 12 VDC relays, get a 12 VDC wall wart. If you know that you will be operating 24 VDC solenoid valves, get a 24 VDC wall wart.

Note: A lot of industrial solenoid valves are 24 VDC. 12 VDC solenoid valves are available, but are more scarce in surplus.

Parallax sells some wall warts specifically for use with the Prop-1 controller:
12 Volt, 1 Amp Power Supply
Stock#: 750-00007
Weight: 1.2 lb
Price: $8.50 [May 2006]


24 VDC, 600ma Power Supply
Stock#: 750-00004
Weight: 0.8 lb.
Price: $19.00 [May 2006]

Here are some vendors of surplus equipment who often have "wall wart" power supplies in stock:

You can also find them at your neighborhood Radio Shack. If you ask for a "wall wart" and the salesman looks at you like you have grown a spare head, try the keywords "battery eliminator" and "power adapter".

This is the wall wart I use with my PROP-1.

It is rated 12 VDC, 1.5A.

Programming Software (IDE)

You will have to run the BASIC Stamp Editor software on your personal computer. This is the software that lets you create programs for the BASIC Stamp, and then load the programs into the Stamp.

You can get the BASIC Stamp Editor free at the Parallax web site's BASIC Stamp download area.

It is also available on the "Parallax CD" if you have that.

What You Might Want

In addition to What You MUST Have, you might want to dedicate the following:

Hookup And Testing

PROP-1 Testing

Now, let's try a very simple program. Copy the following program from this web page, and paste it into the BASIC Stamp Editor's program window (on the right).

' {$STAMP BS1}
' {$PBASIC 1.0}
Main:
LOW 0
PAUSE 1000  ' wait 1 second
HIGH 0
PAUSE 1000  ' wait 1 second
GOTO Main   ' repeat forever
END
Short, isn't it? This program simply turns one output bit on and off, again and again. If you can get this program to run, it proves that your setup is capable of creating a program on the PC, downloading it into the Prop-1, and running it.

But before we can run this program, we need a way to see if it is working or not.

If you haven't already done so, paste the test program from above into the BASIC Stamp Editor's program window (on the right).

Press the blue triangle icon in the menu bar.

If all goes well, the program should download and the LED should begin flashing.

Related Pages

Skip this list.
You may be interested in these related pages:

privacy policy | write to us | tip us
©Copyright 2005-2006 by The Wolfstone Group. All rights reserved.
You must read and abide by our terms of service.