21.11.2014 Views

STAMP 2 Communications And Control Projects.pdf

STAMP 2 Communications And Control Projects.pdf

STAMP 2 Communications And Control Projects.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

APPROACHES TO CONSTRUCTION 5<br />

commands that interface with the parts listed above. It is a great solution for those needing<br />

more power than a BS2-IC offers.<br />

The BASIC <strong>STAMP</strong> 2E (BS2E-IC), using the Ubicom SX microcontroller, runs at the<br />

same speed as BASIC <strong>STAMP</strong> 2, but has the RAM and EEPROM size benefits of the<br />

BS2SX, without the speed and power consumption. It is ideal for those who use the BS2<br />

and would like more variable or program space.<br />

Most of the projects in this book will center around the BS2-IC, which was the first and<br />

most popular version of the <strong>STAMP</strong> 2. A schematic diagram of the original BASIC<br />

<strong>STAMP</strong> 2 (BS2-IC) is shown in Fig. 1-5. The original BASIC <strong>STAMP</strong> 2 contains the SOIC<br />

version of the PIC16C57 chip at U1, the external memory chip at U2, a reset chip at U3,<br />

and a voltage regulator at U4. Finally, Q1 through Q3 are used as serial port input conditioners.<br />

Figure 1-6 illustrates the serial port programming pinouts on the original BS2. The<br />

first four pins on the left of the BS2 carrier are the serial port connections. Pin 1 on the<br />

BS2 is the S out<br />

or RX pin, which connects to pin 2 of an RS-232 DB-9 serial female connector.<br />

Pin 2 on the BS2 is the S in<br />

or TX pin, connecting to pin 3 of the DB-9. Pin 3 on the<br />

BS2 is the ATN pin which connects to pin 4 of the DB-9, and finally pin 4 of the BS2 is<br />

the ground connection on pin 5 of the DB-9 connector. Note, that pins 6 and 7, or DSR and<br />

RTS pins, are tied together on the serial port connector.<br />

Table 1-2 illustrates a memory map of the BS2-IC. The memory map shows where program<br />

information is stored; it also clarifies how to access inputs and outputs of the <strong>STAMP</strong><br />

2. Table 1-3 depicts the <strong>STAMP</strong> 2 pinouts and this chart describes each of the pins and<br />

their respective functions.<br />

Approaches to Construction<br />

When constructing circuits using the BASIC <strong>STAMP</strong> 2, there are a number of different<br />

approaches you can take. One often-used approach to building and testing new microprocessor<br />

and electronic circuits is using the protoboard. The protoboard allows the beginner<br />

as well as the seasoned engineer or technician to test new circuits before he or she commits<br />

them to a special circuit board. The Parallax NX1000 protoboard is shown in Fig. 1-7.<br />

This advanced protoboard is a dream to use. It contains extra components to make new circuit<br />

testing go smoothly. The NX1000 protoboard sports serial ports, voltage regulator,<br />

LEDs, switches, extra input and output connections, and the like. Using this type of protoboard<br />

you can easily change wires and add new components quite simply on the fly.<br />

Another approach is to use a simple, no-frills protoboard. The simple protoboard consists<br />

of the inner white portion of the NX1000. Using this approach, you will need to supply all<br />

the extras yourself. This approach is somewhat cheaper but takes up more real estate on<br />

your bench top.<br />

Many hobbyists choose the <strong>STAMP</strong> 2 and a simple carrier board, depicted in Fig. 1-8,<br />

which allows building a circuit on the carrier board with the BS2 onboard. The simple BS2<br />

carrier board incorporates a <strong>STAMP</strong> 2 socket, a 9-V battery terminal, and a serial connector,<br />

as well as single row of header jacks, to facilitate connecting between the <strong>STAMP</strong> 2<br />

and other points on the board. Using this approach, you would solder other components to<br />

the board and run jumper wires between components. Many hobbyists add additional IC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!