

The BASIC Stamp 2pe (BS2pe-IC) is a microcontroller module manufactured by Parallax. It combines a BASIC interpreter with a microprocessor, enabling users to program and control electronic devices with ease. This module is ideal for hobbyists, educators, and engineers who require a simple yet powerful platform for prototyping and automation.








The BASIC Stamp 2pe is designed to provide a balance of performance and simplicity. Below are its key technical details:
| Parameter | Value |
|---|---|
| Manufacturer | Parallax |
| Part Number | BS2pe-IC |
| Processor | Ubicom SX48 microcontroller |
| Program Language | PBASIC 2.5 |
| Program Memory | 16 KB EEPROM (8 banks of 2 KB) |
| RAM | 126 bytes |
| Clock Speed | 20 MHz |
| I/O Pins | 16 |
| Operating Voltage | 5 V DC |
| Power Consumption | 3 mA (run), 50 µA (sleep) |
| Dimensions | 1.2" x 0.6" (30.5 mm x 15.2 mm) |
The BASIC Stamp 2pe module has a 24-pin DIP (Dual Inline Package) layout. Below is the pin configuration:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | VSS | Ground (0 V) |
| 2 | VDD | Power supply input (5 V DC) |
| 3 | RES | Reset pin (active low) |
| 4-19 | P0-P15 | General-purpose I/O pins |
| 20 | ATN | Attention pin for programming |
| 21 | SOUT | Serial output for debugging/programming |
| 22 | SIN | Serial input for debugging/programming |
| 23 | VSS | Ground (0 V) |
| 24 | VDD | Power supply input (5 V DC) |
The BASIC Stamp 2pe is straightforward to use, making it an excellent choice for beginners and professionals alike. Below are the steps and considerations for using the module in a circuit.
Below is an example of PBASIC code to blink an LED connected to pin P0:
' BASIC Stamp 2pe LED Blink Example
' This program blinks an LED connected to pin P0 with a 1-second interval.
DO
HIGH 0 ' Set pin P0 high to turn on the LED
PAUSE 1000 ' Wait for 1 second
LOW 0 ' Set pin P0 low to turn off the LED
PAUSE 1000 ' Wait for 1 second
LOOP
Module Not Responding to Programming
Program Does Not Run
I/O Pins Not Functioning
Q: Can the BASIC Stamp 2pe interface with sensors and modules?
A: Yes, it can interface with a wide range of sensors and modules, provided they operate at 5 V logic levels.
Q: How do I switch between EEPROM banks?
A: Use the BANK command in PBASIC to select the desired memory bank.
Q: Is the BASIC Stamp 2pe compatible with Arduino shields?
A: While it is not directly compatible with Arduino shields, you can use jumper wires to connect the module to shield components.
By following this documentation, users can effectively utilize the BASIC Stamp 2pe for a variety of electronic projects.