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

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

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

Introduction

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.

Explore Projects Built with Parallax BASIC Stamp 2

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 Parallax BASIC Stamp 2 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
Raspberry Pi Pico and OV7670 Camera-Based Robotic System with TFT Display
Image of REF Speed Bot V3 CKT: A project utilizing Parallax BASIC Stamp 2 in a practical application
This circuit features two Raspberry Pi Pico microcontrollers interfacing with various peripherals including an OV7670 camera module, a TFT display, and an OLED display. It also includes a multiplexer and a motor driver to control two planetary gearbox motors, powered by a battery and regulated through buck converters. The setup is designed for image capture, display, and motor control applications.
Cirkit Designer LogoOpen Project in Cirkit Designer
Raspberry Pi Pico-based PS2 Controller Emulator with ADS1115 Analog Input
Image of PS2Pico: A project utilizing Parallax BASIC Stamp 2 in a practical application
This circuit appears to be a game controller interface that uses a Raspberry Pi Pico microcontroller to emulate a PS2 controller, interfacing with a PS2 joystick and a PS2 console cable. The ADS1115 analog-to-digital converter is used to read the joystick's analog signals, and the microcontroller's SPI and I2C interfaces are utilized for communication with the PS2 console and the ADS1115, respectively. Additionally, an NPN transistor and a resistor are configured to handle the PS2 controller's acknowledge signal.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Mega 2560 RFID Access Control System with GSM Notification
Image of lab 1: A project utilizing Parallax BASIC Stamp 2 in a practical application
This circuit is designed around an Arduino Mega 2560, which controls a variety of peripherals including an RFID-RC522 module for RFID reading, an LCD I2C display for user interface, a buzzer for audio feedback, and a SG90 servo motor for physical movement. It also interfaces with a 4x4 membrane matrix keypad for user input, and includes red, green, and blue LEDs each with a current-limiting resistor for visual feedback. Additionally, the circuit can communicate with a SIM900A module for cellular connectivity.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Parallax BASIC Stamp 2

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 Parallax BASIC Stamp 2 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 REF Speed Bot V3 CKT: A project utilizing Parallax BASIC Stamp 2 in a practical application
Raspberry Pi Pico and OV7670 Camera-Based Robotic System with TFT Display
This circuit features two Raspberry Pi Pico microcontrollers interfacing with various peripherals including an OV7670 camera module, a TFT display, and an OLED display. It also includes a multiplexer and a motor driver to control two planetary gearbox motors, powered by a battery and regulated through buck converters. The setup is designed for image capture, display, and motor control applications.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of PS2Pico: A project utilizing Parallax BASIC Stamp 2 in a practical application
Raspberry Pi Pico-based PS2 Controller Emulator with ADS1115 Analog Input
This circuit appears to be a game controller interface that uses a Raspberry Pi Pico microcontroller to emulate a PS2 controller, interfacing with a PS2 joystick and a PS2 console cable. The ADS1115 analog-to-digital converter is used to read the joystick's analog signals, and the microcontroller's SPI and I2C interfaces are utilized for communication with the PS2 console and the ADS1115, respectively. Additionally, an NPN transistor and a resistor are configured to handle the PS2 controller's acknowledge signal.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of lab 1: A project utilizing Parallax BASIC Stamp 2 in a practical application
Arduino Mega 2560 RFID Access Control System with GSM Notification
This circuit is designed around an Arduino Mega 2560, which controls a variety of peripherals including an RFID-RC522 module for RFID reading, an LCD I2C display for user interface, a buzzer for audio feedback, and a SG90 servo motor for physical movement. It also interfaces with a 4x4 membrane matrix keypad for user input, and includes red, green, and blue LEDs each with a current-limiting resistor for visual feedback. Additionally, the circuit can communicate with a SIM900A module for cellular connectivity.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Robotics and automation projects
  • Educational tools for learning microcontroller programming
  • Prototyping and proof-of-concept designs
  • Home automation systems
  • Sensor data acquisition and control

Technical Specifications

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)

Pin Configuration and Descriptions

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

Usage Instructions

How to Use the Component in a Circuit

  1. Power Supply: Connect the VDD pin to a regulated 5V power source and the VSS pin to ground.
  2. Programming: Use a serial cable or USB-to-serial adapter to connect the BS2-IC to your computer. The ATN pin is used during programming to reset the module.
  3. I/O Connections: Connect sensors, actuators, or other peripherals to the P0-P15 pins. These pins can be configured as input or output in your PBASIC code.
  4. Programming Environment: Download and install the Parallax BASIC Stamp Editor software from the Parallax website. Write your PBASIC code and upload it to the BS2-IC.

Important Considerations and Best Practices

  • Power Supply: Ensure a stable 5V power supply to avoid erratic behavior.
  • I/O Pin Current: Each I/O pin can source or sink up to 20 mA. Avoid exceeding this limit to prevent damage.
  • Pull-up Resistors: Use pull-up or pull-down resistors for input pins to ensure stable readings.
  • Decoupling Capacitor: Place a 0.1 µF capacitor between VDD and VSS to filter noise from the power supply.

Example Code for Arduino-like Functionality

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

Interfacing with Sensors

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

Troubleshooting and FAQs

Common Issues and Solutions

  1. Module Not Responding to Programming:

    • Ensure the ATN pin is properly connected.
    • Verify that the serial cable or USB-to-serial adapter is functioning correctly.
    • Check the power supply voltage (must be 5V).
  2. Erratic Behavior:

    • Add a decoupling capacitor (0.1 µF) between VDD and VSS.
    • Ensure that the I/O pins are not overloaded (max 20 mA per pin).
  3. Incorrect Sensor Readings:

    • Use pull-up or pull-down resistors for input pins.
    • Verify the sensor's power supply and connections.
  4. Program Memory Full:

    • Optimize your PBASIC code by removing unnecessary instructions.
    • Use subroutines to reduce code duplication.

FAQs

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.