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.
- Small form factor requires little space
- Non-volatile memory holds up to 4,000 instructions even without power
- PBASIC commands are easy to learn and remember
- Processor Speed: 20 MHz Turbo; ~12,000 PBASIC instructions/sec
- PBASIC Commands: 61
- Package: 40-pin DIP
- I/O pins: 32 + 2 dedicated serial
- RAM Size: 38 Bytes (12 I/O, 26 Variable)
- Scratch Pad RAM: 128 bytes
- EEPROM (Program) Size: 8 x 2 KBytes; ~4,000 PBASIC instructions
- Voltage requirements: 5.5 to 12 VDC (Vin), or 5 VDC (Vdd)
- Current requirements: 40 mA 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
- 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)
- Operating temp range: +32 to +158 °F (0 to +70 °C)