| BrainStem® GP 2.0 Module | Index |
Contents
Power and Voltage Ratings
Power Supplies
Digital Input/Output
Infrared (IR) Communication
Pinout Diagram
Board Dimensions
Prototyping Area
Pull-up Resistor Pads
File Slots and Processes
Power and Voltage Ratings
The range of acceptable input voltages for the GP 2.0 module onboard voltage regulator is 3.2V to 28.0V. This wide range of power will get regulated to 5.0V (Vcc) regardless of the actual voltage supplied. A SEPIC (Single Ended Primary Inductor Converter) will increase (boost) or decrease (buck) the input voltage to provide a 5.0V regulated supply. Voltage conversion efficiency is approximately 90 percent.
Voltages below 3.2V will trip the built-in voltage supervisor that disables the power regulation to the microprocessor and other devices using the VCC regulation line. When a low voltage condition is detected, the controller turns off and a low voltage status LED is illuminated.
The voltage regulator has an output current rating of 1 Amp. The regulator can safely provide power for several extra sensors.
The digital inputs/output pins can sink or source up to 20ma. The Vcc pins on the analog and digital headers are all tied and are current limited only by the 1 Amp maximum.
Power Supplies
The BrainStem GP 2.0 module has two power supply inputs, one for logic and one for servos.
Servos have a secondary connector for power. This connector shares a common ground with the board, but the "Servo Power" pin is only connected to the four servo power pins of the servo connectors. This allows the servo power be completely isolated form the logic power if desired. The three pin header for the servo power can facilitate a jumper that can be added which will allow the servos and logic to share the same power supply. This modification is shown below.

Digital Input/Output
The digital pins are organized slightly different than the pins on the BrainStem GP 1.0 module. The hardware pinout location is the same, but the pins are numbered differently between the GP 1.0 and GP 2.0 module.
| Digital Pin | GP 1.0 Functions | GP 2.0 Functions | GP 2.0 Notes |
| 0 | Input,Output | Input,Output | |
| 1 | Input,Output,Logic Event Timer | Input,Output,Logic Event Timer | Can be used for IR Receive (*) |
| 2 | Input,Output,Logic Event Timer | Input,Output,Logic Event Timer | Can be used for IR Receive (*) |
| 3 | Input,Output,Logic Event Timer | Input,Output,Logic Event Timer | Can be used for IR Receive (*) |
| 4 | Input,Output,Logic Event Timer | Input,Output,Logic Event Timer | Hardware connected to IR Receive |
| 5 | N/A | Input,Output | Hardware connected to IR Transmit |
| 6 | N/A | Input,Output | Can be used for IR transmit (*) |
(*) With appropriate circuit hardware. Not included with module circuit board.
Infrared (IR) Communication
IR transmit and receive functionality are built into the hardware. IR transmit (TX) is physically connected to DIO pin 5 and IR receive (RX) is physically connected to DIO pin 4. Before IR data can be communicated, each respective pin (TX and RX) must be configured depending on which IR protocol is to be used. NEC and RC5 are supported in the firmware.
Pinout Diagram

Board Dimensions
All dimensions are in inches.

Prototyping Area
A small area on the module is set aside to facilitate simple breadboarding projects. Holes are spaced at 0.1 inch intervals. A few locations are defined as passthrough holes that supply regulated power, source power, I2C bus, and digital and analog ports.

Pull-up Resistor Pads
On the bottom side of the module, surface mount pads are included to allow the addition of pull-up resistors to both the digital and analog lines. The footprints are 0603 surface mount package size. The following figure shows the location and order of the unpopulated pads.

GP 2.0 EEPROM File Slots and Process Slots
A BrainStem module stores TEA files in an EEPROM. The GP 2.0 module contains 12 file slots numbered 0-11. Files slots 0-10 are 1K in size. File slot 11 is 16K in size. Programs can run in any of 4 "virtual machine" (VM) process slots numbered 0-3. Each process has a private stack space of 112 bytes. These processes can run concurrently. A 56 byte scratchpad RAM buffer may be used for sharing data between processes.
There is additional space on the EEPROM dedicated to storing reflexes. The GP 2.0 stores 128 reflex vectors and 128 reflex commands. For simple tasks, it may be possible to use a reflex instead of a TEA program and conserve process slots and/or file slots.