

The BASIC Stamp 2px24 (BS2PX-IC), manufactured by Parallax Inc., is a powerful microcontroller module that integrates a BASIC interpreter with a microprocessor. This combination allows users to easily program and control electronic devices without requiring extensive knowledge of low-level programming languages. The module is compact, versatile, and well-suited for a wide range of applications, including robotics, automation, data acquisition, and educational projects.








The BASIC Stamp 2px24 is designed to provide high performance and ease of use. Below are its key technical details:
| Parameter | Value |
|---|---|
| Manufacturer | Parallax Inc. |
| Part Number | BS2PX-IC |
| Operating Voltage | 5 V DC |
| Operating Current | 50 mA (typical) |
| Clock Speed | 20 MHz |
| Program Execution Speed | ~19,000 instructions per second |
| Program Memory | 16 KB (EEPROM) |
| RAM | 128 bytes |
| I/O Pins | 16 (TTL-compatible) |
| Communication Protocols | Serial (TTL-level, 9600-115200 bps) |
| Dimensions | 1.2" x 0.6" (30.5 mm x 15.2 mm) |
| Operating Temperature | -40°C to +85°C |
The BASIC Stamp 2px24 features a 24-pin DIP (Dual Inline Package) layout. Below is the pin configuration and description:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | VSS | Ground (0 V) |
| 2 | VDD | Power supply input (5 V DC) |
| 3-18 | P0-P15 | General-purpose I/O pins (TTL-compatible) |
| 19 | RES | Reset pin (active low) |
| 20 | ATN | Attention pin for programming/debugging |
| 21-24 | NC | Not connected |
The BASIC Stamp 2px24 is designed for ease of use, making it an excellent choice for both beginners and experienced users. Below are the steps and best practices for using the module in a circuit.
The module is programmed using PBASIC, a simple and intuitive programming language. Below is an example of a basic program to blink an LED connected to pin P0:
' Program: Blink_LED.bs2
' Description: This program blinks an LED connected to pin P0 at 1-second intervals.
DO
HIGH 0 ' Set pin P0 to HIGH (turn on LED)
PAUSE 1000 ' Wait for 1 second
LOW 0 ' Set pin P0 to LOW (turn off LED)
PAUSE 1000 ' Wait for 1 second
LOOP
The BASIC Stamp 2px24 can communicate with an Arduino UNO via serial communication. Below is an example Arduino sketch to send data to the BASIC Stamp:
// Arduino Sketch: Send_Data_To_BS2PX.ino
// Description: Sends a message to the BASIC Stamp 2px24 via serial communication.
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 bps
}
void loop() {
Serial.println("Hello, BASIC Stamp!"); // Send message to BASIC Stamp
delay(1000); // Wait for 1 second before sending the next message
}
Module Not Responding
Program Upload Fails
I/O Pins Not Working
Overheating
Q: Can the BASIC Stamp 2px24 be powered by batteries?
A: Yes, it can be powered by a 5 V battery pack or a 9 V battery with a voltage regulator.
Q: What is the maximum cable length for serial communication?
A: The maximum cable length depends on the baud rate, but for 9600 bps, a length of up to 50 feet is generally reliable.
Q: Can I use the BASIC Stamp 2px24 with sensors and modules designed for Arduino?
A: Yes, as long as the sensors/modules operate at 5 V and use compatible communication protocols (e.g., digital I/O, serial).
Q: Is the BASIC Stamp 2px24 suitable for real-time applications?
A: While it is not a real-time system, its execution speed (~19,000 instructions per second) is sufficient for many time-sensitive applications.
This concludes the documentation for the BASIC Stamp 2px24. For additional resources, visit the Parallax Inc. website.