

The Parallax BASIC Stamp 2 (BS2-IC) is a versatile microcontroller module designed for ease of use in programming and controlling electronic devices. It features a built-in interpreter for the BASIC programming language, making it an excellent choice for beginners and hobbyists. The BS2-IC is widely used in educational projects, prototyping, and small-scale automation systems due to its simplicity and reliability.








The following table outlines the key technical details of the Parallax BASIC Stamp 2:
| Specification | Details |
|---|---|
| Manufacturer | Parallax |
| Part Number | BS2-IC |
| Operating Voltage | 5V DC |
| Current Consumption | 3 mA (typical), 50 mA (max during I/O) |
| Clock Speed | 20 MHz |
| Program Memory | 2 KB EEPROM (500 instructions) |
| RAM | 32 Bytes |
| I/O Pins | 16 (TTL-compatible) |
| Communication Protocol | Serial (9600 baud) |
| Dimensions | 1.2" x 0.6" (30.5 mm x 15.2 mm) |
| Programming Language | PBASIC (Parallax BASIC) |
The BS2-IC module has a 24-pin DIP (Dual Inline Package) layout. Below is the pin configuration:
| Pin Number | Name | Description |
|---|---|---|
| 1 | VSS | Ground (0V) |
| 2 | VDD | +5V Power Supply |
| 3 | RES | Reset (Active Low) |
| 4-19 | P0-P15 | General Purpose I/O Pins (TTL-compatible) |
| 20 | ATN | Attention (used for programming) |
| 21-24 | NC | Not Connected |
Below is an example PBASIC code to blink an LED connected to pin P0:
' Blink an LED connected to P0
' Author: Parallax BASIC Stamp 2 Documentation
DO
HIGH 0 ' Set P0 high to turn on the LED
PAUSE 500 ' Wait for 500 milliseconds
LOW 0 ' Set P0 low to turn off the LED
PAUSE 500 ' Wait for 500 milliseconds
LOOP
To read a digital sensor connected to P1, you can use the following PBASIC code:
' Read a digital sensor connected to P1
' Author: Parallax BASIC Stamp 2 Documentation
INPUT 1 ' Configure P1 as an input
DO
IF IN1 = 1 THEN ' Check if the sensor output is HIGH
DEBUG "Sensor is active", CR
ELSE
DEBUG "Sensor is inactive", CR
ENDIF
PAUSE 1000 ' Wait for 1 second before reading again
LOOP
Module Not Responding to Programming:
Erratic Behavior:
Incorrect Sensor Readings:
Program Memory Full:
Q: Can the BS2-IC handle analog inputs?
A: No, the BS2-IC does not have built-in analog-to-digital conversion. You can use an external ADC module to interface with analog sensors.
Q: What is the maximum cable length for serial communication?
A: The maximum cable length depends on the baud rate and cable quality. For 9600 baud, a length of up to 50 feet is typically reliable.
Q: Can I use the BS2-IC with a breadboard?
A: Yes, the 24-pin DIP package is breadboard-friendly, making it easy to prototype circuits.
Q: Is the BS2-IC compatible with Arduino shields?
A: No, the BS2-IC is not directly compatible with Arduino shields due to differences in pin layout and functionality. However, you can manually wire connections to use certain shields.
This concludes the documentation for the Parallax BASIC Stamp 2 (BS2-IC). For further assistance, refer to the official Parallax resources or community forums.