

The BASIC Stamp 2p24 (Part ID: BS2p24-IC) is a microcontroller module manufactured by Parallax. It is designed for ease of use and versatility, making it an excellent choice for both beginners and experienced developers. The module is programmable in PBASIC, a simple yet powerful language, and comes in a 24-pin DIP package for straightforward integration into breadboards or custom PCBs.
The BASIC Stamp 2p24 is equipped with built-in I/O pins, a serial interface, and support for a wide range of sensors and actuators. It is commonly used in robotics, home automation, data acquisition, and educational projects.








The BASIC Stamp 2p24 has a 24-pin DIP layout. Below is the pin configuration:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | VSS | Ground (0 V reference) |
| 2 | P0 | General-purpose I/O pin 0 |
| 3 | P1 | General-purpose I/O pin 1 |
| 4 | P2 | General-purpose I/O pin 2 |
| 5 | P3 | General-purpose I/O pin 3 |
| 6 | P4 | General-purpose I/O pin 4 |
| 7 | P5 | General-purpose I/O pin 5 |
| 8 | P6 | General-purpose I/O pin 6 |
| 9 | P7 | General-purpose I/O pin 7 |
| 10 | P8 | General-purpose I/O pin 8 |
| 11 | P9 | General-purpose I/O pin 9 |
| 12 | P10 | General-purpose I/O pin 10 |
| 13 | P11 | General-purpose I/O pin 11 |
| 14 | P12 | General-purpose I/O pin 12 |
| 15 | P13 | General-purpose I/O pin 13 |
| 16 | P14 | General-purpose I/O pin 14 |
| 17 | P15 | General-purpose I/O pin 15 |
| 18 | VDD | Positive supply voltage (5 V DC) |
| 19 | RES | Reset pin (active low) |
| 20 | SOUT | Serial output for programming and communication |
| 21 | SIN | Serial input for programming and communication |
| 22 | ATN | Attention pin for programming (used with serial interface) |
| 23 | NC | Not connected |
| 24 | NC | Not connected |
Below is an example PBASIC program to blink an LED connected to pin P0:
' BASIC Stamp 2p24 LED Blink Example
' This program blinks an LED connected to pin P0 at 1-second intervals.
DO
HIGH 0 ' Set P0 high to turn on the LED
PAUSE 1000 ' Wait for 1 second
LOW 0 ' Set P0 low to turn off the LED
PAUSE 1000 ' Wait for 1 second
LOOP
Problem: The module does not power on.
Problem: Unable to program the module.
Problem: I/O pins are not responding.
Problem: Erratic behavior or resets during operation.
Q: Can the BASIC Stamp 2p24 interface with sensors and actuators?
Q: What is the maximum program size?
Q: Can I use the BASIC Stamp 2p24 with a breadboard?
Q: Is the BASIC Stamp 2p24 suitable for beginners?