The BASIC Stamp 2p40 serves as the brains inside of electronics projects and applications that require a programmable microcontroller. It is able to control and monitor timers, keypads, motors, sensors, switches, relays, lights, and more. Programming is performed in an easy-to-learn language called PBASIC.
All vital components (processor, clock source, memory, power regulator) are provided on the BS2p40's tiny PCB; just connect power and go! For lower-cost OEM solutions, the processor (PBASIC2p40 interpreter) and other components are available for integration into your PCB.
The BS2p40-IC is useful for those that have previous experience with the BS2 and would like more speed, variable space, program space, I/O pins, or built-in support for character LCDs and the I2C and 1-Wire protocols; for example, LCDIN / LCDOUT, I2CIN / I2COUT, OWIN / OWOUT and POLLIN / POLLOUT / POLLMODE / POLLRUN / POLLWAIT (see BASIC Stamp Syntax & Reference Manual for more details)
For customers that require true multi-processing or video generation, we highly recommend the Propeller microcontroller.
Processor Speed: 20 MHz Turbo
Program Execution Speed: ~12,000 PBASIC instructions/sec.
RAM Size: 38 Bytes (12 I/0, 26 Variable)
Scratch Pad RAM: 128 bytes
EEPROM (Program) Size: 8 x 2 KBytes; ~4,000 PBASIC instructions
Number of I/O Pins: 32 + 2 dedicated serial
Current Draw @ 5 VDC: 40mA Run, 350 µA Sleep
Source/Sink Current per I/O: 30 mA / 30 mA
Source/Sink Current per unit: 60 mA / 60 mA per 8 I/O pins
PBASIC Commands: 61
Package: 40-pin DIP
Commercial-Rated since Rev. C
Power Requirements: 5.5 to 12 VDC (Vin), or 5 VDC (Vdd)
Communication: Serial (9600 baud for programming)
Dimensions: 2.20 x 0.63 x 0.15 in (55.9 x 16.0 x 3.81 mm)