Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use BASIC Stamp 2pe: Examples, Pinouts, and Specs

Image of BASIC Stamp 2pe
Cirkit Designer LogoDesign with BASIC Stamp 2pe in Cirkit Designer

Introduction

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.

Explore Projects Built with BASIC Stamp 2pe

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino Mega 2560-Based Access Control Panel with RFID and Keypad
Image of Expo Project Wire Diagram: A project utilizing BASIC Stamp 2pe in a practical application
This circuit is designed to interact with users through a keypad and display information on an LCD screen, control two stepper motors, read RFID tags, and provide audio feedback with a buzzer. It is powered by a breadboard power supply module and the contrast of the LCD can be adjusted with a potentiometer. The Arduino Mega 2560 serves as the central controller, although the user code for operation is not yet provided.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Controlled Automated Transport System with OLED Display and Stepper Motor
Image of transportband: A project utilizing BASIC Stamp 2pe in a practical application
This circuit is designed for interactive control of a stepper motor using a PS2 joystick, with an ESP32 microcontroller at its core. It features visual feedback through an OLED display and LED indicators, and includes a buzzer for audio alerts. The system likely serves an automation or robotics application, with the ESP32 handling input processing, motor control, and user interface updates.
Cirkit Designer LogoOpen Project in Cirkit Designer
ATMEGA328 Battery-Powered LED Blinker with FTDI Programming
Image of Homemade Arduino using ATmega328: A project utilizing BASIC Stamp 2pe in a practical application
This circuit is a basic microcontroller setup using an ATMEGA328, powered by a 5V battery, and includes an FTDI programmer for serial communication. It features a pushbutton for reset functionality and two LEDs controlled by the microcontroller, with one LED blinking at a 1-second interval as programmed.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Mega 2560 Based Security System with Fingerprint Authentication and SMS Alerts
Image of Door security system: A project utilizing BASIC Stamp 2pe in a practical application
This circuit features an Arduino Mega 2560 microcontroller interfaced with a SIM800L GSM module, two fingerprint scanners, an I2C LCD display, an IR sensor, and a piezo buzzer. Power management is handled by a PowerBoost 1000 Basic Pad USB, a TP4056 charging module, and a Li-ion 18650 battery, with an option to use a Mini AC-DC 110V-230V to 5V 700mA module for direct power supply. The primary functionality appears to be a security system with GSM communication capabilities, biometric access control, and visual/audible feedback.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with BASIC Stamp 2pe

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Expo Project Wire Diagram: A project utilizing BASIC Stamp 2pe in a practical application
Arduino Mega 2560-Based Access Control Panel with RFID and Keypad
This circuit is designed to interact with users through a keypad and display information on an LCD screen, control two stepper motors, read RFID tags, and provide audio feedback with a buzzer. It is powered by a breadboard power supply module and the contrast of the LCD can be adjusted with a potentiometer. The Arduino Mega 2560 serves as the central controller, although the user code for operation is not yet provided.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of transportband: A project utilizing BASIC Stamp 2pe in a practical application
ESP32-Controlled Automated Transport System with OLED Display and Stepper Motor
This circuit is designed for interactive control of a stepper motor using a PS2 joystick, with an ESP32 microcontroller at its core. It features visual feedback through an OLED display and LED indicators, and includes a buzzer for audio alerts. The system likely serves an automation or robotics application, with the ESP32 handling input processing, motor control, and user interface updates.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Homemade Arduino using ATmega328: A project utilizing BASIC Stamp 2pe in a practical application
ATMEGA328 Battery-Powered LED Blinker with FTDI Programming
This circuit is a basic microcontroller setup using an ATMEGA328, powered by a 5V battery, and includes an FTDI programmer for serial communication. It features a pushbutton for reset functionality and two LEDs controlled by the microcontroller, with one LED blinking at a 1-second interval as programmed.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Door security system: A project utilizing BASIC Stamp 2pe in a practical application
Arduino Mega 2560 Based Security System with Fingerprint Authentication and SMS Alerts
This circuit features an Arduino Mega 2560 microcontroller interfaced with a SIM800L GSM module, two fingerprint scanners, an I2C LCD display, an IR sensor, and a piezo buzzer. Power management is handled by a PowerBoost 1000 Basic Pad USB, a TP4056 charging module, and a Li-ion 18650 battery, with an option to use a Mini AC-DC 110V-230V to 5V 700mA module for direct power supply. The primary functionality appears to be a security system with GSM communication capabilities, biometric access control, and visual/audible feedback.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Robotics and automation projects
  • Data acquisition and logging
  • Home automation systems
  • Educational tools for learning microcontroller programming
  • Prototyping and testing of electronic circuits

Technical Specifications

The BASIC Stamp 2pe is designed to provide a balance of performance and simplicity. Below are its key technical details:

General Specifications

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)

Pin Configuration and Descriptions

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)

Usage Instructions

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.

How to Use the BASIC Stamp 2pe

  1. Power Supply: Connect the VDD pin to a regulated 5 V DC power source and the VSS pin to ground.
  2. Programming: Use the Parallax BASIC Stamp Editor software to write PBASIC code. Connect the module to your computer via a serial or USB-to-serial adapter.
  3. I/O Connections: Use pins P0 to P15 for interfacing with sensors, actuators, or other devices. Configure these pins as input or output in your PBASIC code.
  4. Running the Program: Once the program is uploaded, the module will execute it automatically upon power-up or reset.

Important Considerations and Best Practices

  • Voltage Levels: Ensure all connected devices operate at 5 V logic levels to avoid damage.
  • Current Limits: Each I/O pin can source or sink up to 20 mA. Do not exceed this limit.
  • Decoupling Capacitor: Place a 0.1 µF capacitor between VDD and VSS near the module to stabilize the power supply.
  • EEPROM Usage: The 16 KB EEPROM is divided into 8 banks. Use bank-switching commands in PBASIC to manage program memory efficiently.

Example Code for Arduino-like Functionality

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

Troubleshooting and FAQs

Common Issues and Solutions

  1. Module Not Responding to Programming

    • Cause: Incorrect serial connection or power supply issue.
    • Solution: Verify the serial cable connection and ensure the module is powered with 5 V DC.
  2. Program Does Not Run

    • Cause: Syntax error in PBASIC code or insufficient EEPROM memory.
    • Solution: Check the code for errors and ensure the program fits within the available memory.
  3. I/O Pins Not Functioning

    • Cause: Incorrect pin configuration or excessive current draw.
    • Solution: Verify the pin mode (input/output) in the code and ensure connected devices do not exceed the current limit.

Frequently Asked Questions

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.