-
Notifications
You must be signed in to change notification settings - Fork 356
Getting To Know The IOIO OTG Board
This page contains information regarding the IOIO-OTG board. For information on the original (V1) IOIO board, please visit This page.
The IOIO-OTG board contains the following components:
- USB connector (micro-AB, female): Used to connect to host computer, an Android device or a Bluetooth dongle.
- Power jack (2-pin JST, female): Used for power supply to the board. Voltage between 5V-15V should be supplied.
- GND pins (10 pins): Ground connection.
- VIN pins (3 pins): Used for outputting the supply voltage to your circuit, or as an alternative input to the power jack.
- 5V pins (3 pins): 5V output from the on-board regulator, which can be used in your circuit.
- 3.3V pins (3 pins): 3.3V from the on-board regulator, which can be used in your circuit.
- I/O pins (46 pins, numbered 1-46): General purpose I/O pins. Some have special functions, see below.
- PWR LED (red): Lights when the IOIO is getting power.
- STAT LED (yellow): General purpose on-board LED, under application control.
- MCLR pin: Not normally used. Its purpose is for programming new bootloader firmware on the IOIO board.
- BOOT pin: Special pin used for getting the IOIO into bootloader mode on power-up. Note that this pin is shared with the stat LED.
- Charge current trimmer (CHG): Adjusts the amount of current supplied on the VBUS line of the USB when acting as a USB host. Typically used in battery-powered application with Android to prevent the Android from draining the battery quickly. Turning in the (+) direction increases charge current.
- Host switch: In "A" mode, the IOIO-OTG will detect whether it should act as host or as device automatically, according to whichever USB connector is plugged in (micro-A or micro-B). To support non-standard USB cables or adapters that use micro-B type, move the switch to the "H" position to force host mode.
The I/O pins are the essence of the IOIO. They are used to connect to external circuits using different interfaces. The common denominator to all pins is that they can all serve as 3.3V digital inputs or 3.3V digital outputs. In addition, many of the pins are capable of other functions as detailed in the table at the bottom of this page.
For convenience, the common pin functions are presented graphically on the bottom of the board, with a legend:
- Pins surrounded by a square can be used as analog inputs (3.3V). For more details, see Analog Input.
- Pins surrounded by a circle are 5V-tolerant, i.e. can be used as 5V logic inputs or product 5V logic output when used in open-drain mode with the help of a pull-up resistor. For more details, see Digital I/O.
- Pins marked with "P" can be used as peripheral inputs and outputs. Mainly, this includes PWM, Pulse Input, UART, and SPI.
- The pin marked with "Pi" can be used as peripheral input (but not output).
- Pins marked with DAx and CLx are used for TWI.
This table applies to IOIO-OTG (V2.0) boards.
Specific design files in EAGLE format can be downloaded here.
####Legend:
- A/D: pin can be used as analog input
- I2C: pin can be used as I²C: DAx - data pin if I²C module number x, CLx - clock pin if I²C module number x
- PPSi: pin can be used as input for remappable peripherals (input capture, UART, SPI)
- PPSo: pin can be used as output for remappable peripherals (UART, SPI, comparator output)
- 5V: pin is 5V tolerant: can be used as 5V input or 5V output in open-drain mode
- Comp: pin can be used as comparator input number as specified
- Prog: pin can be used for ICSP: use Vpp and either C1/D1, C2/D2 or C3/D3 which are clock and data, respectively
####Note: All pins can be used as digital input / output (GPIO)
IOIO pin | A/D | I²C | PPSi | PPSo | 5V | Comp. | Prog. | PIC pin | PIC function |
---|---|---|---|---|---|---|---|---|---|
1 | DA1 | Y | Y | Y | 31 | SDA2/RP10/GD4/CN17/RF4 | |||
2 | CL1 | Y | Y | Y | 32 | SCL2/RP17/GD5/CN18/RF5 | |||
3 | Y | Y | Y | 42 | RTCC/DMLN/RP2/CN53/RD8 | ||||
4 | DA0 | Y | Y | Y | 43 | DPLN/SDA1/RP4/GD8/CN54/RD9 | |||
5 | CL0 | Y | Y | Y | 44 | SCL1/RP3/GD6/CN55/RD10 | |||
6 | Y | Y | Y | 45 | RP12/GD7/CN56/RD11 | ||||
7 | Y | Y | Y | 46 | DMH/RP11/INT0/CN49/RD0 | ||||
8 | 3D | 47 | SOSCI/C3IND/CN1/RC13 | ||||||
9 | Y | 3C | 48 | SOSCO/SCLKI/T1CK/C3INC/RPI37/CN0/RC14 | |||||
10 | Y | Y | Y | 49 | VCPCON/RP24/GD9/VBUSCHG/CN50/RD1 | ||||
11 | Y | Y | Y | 50 | DPH/RP23/CN51/RD2 | ||||
12 | Y | Y | Y | 51 | RP22/GEN/CN52/RD3 | ||||
13 | Y | Y | Y | 52 | RP25/GCLK/CN13/RD4 | ||||
14 | Y | Y | Y | 53 | RP20/GPWR/CN14/RD5 | ||||
15 | 3B | 54 | C3INB/CN15/RD6 | ||||||
16 | 3A | 55 | C3INA/SESSEND/CN16/RD7 | ||||||
17 | 58 | GD10/VBUSST/VCMPST1/VBUSVLD/CN68/RF0 | |||||||
18 | Y | 59 | GD11/VCMPST2/SESSVLD/CN69/RF1 | ||||||
19 | Y | 60 | GD0/CN58/RE0 | ||||||
20 | Y | 61 | GD1/CN59/RE1 | ||||||
21 | Y | 62 | GD2/CN60/RE2 | ||||||
22 | Y | 63 | GD3/CN61/RE3 | ||||||
23 | Y | 64 | HSYNC/CN62/RE4 | ||||||
24 | Y | 1 | VSYNC/CN63/RE5 | ||||||
25 | CL2 | Y | 2 | GD12/SCL3/CN64/RE6 | |||||
26 | DA2 | Y | 3 | GD13/SDA3/CN65/RE7 | |||||
27 | Y | Y | 1D | 4 | C1IND/RP21/CN8/RG6 | ||||
28 | Y | Y | 1C | 5 | C1INC/RP26/CN9/RG7 | ||||
29 | Y | Y | 2D | 6 | C2IND/RP19/GD14/CN10/RG8 | ||||
30 | Y | Y | 2C | 8 | C2INC/RP27/GD15/CN11/RG9 | ||||
31 | Y | Y | Y | 1A | C3 | 11 | PGEC3/AN5/C1INA/VBUSON/RP18/CN7/RB5 | ||
32 | Y | Y | Y | 1B | D3 | 12 | PGED3/AN4/C1INB/USBOEN/RP28/CN6/RB4 | ||
33 | Y | 2A | 13 | AN3/C2INA/VPIO/CN5/RB3 | |||||
34 | Y | Y | Y | 2B | 14 | AN2/C2INB/VMIO/RP13/CN4/RB2 | |||
35 | Y (ref +) | Y | Y | C1 | 15 | PGEC1/AN1/VREF-/RP1/CN3/RB1 | |||
36 | Y (ref -) | Y | Y | D1 | 16 | PGED1/AN0/VREF+/RP0/CN2/RB0 | |||
37 | Y | Y | Y | C2 | 17 | PGEC2/AN6/RP6/CN24/RB6 | |||
38 | Y | Y | Y | D2 | 18 | PGED2/AN7/RP7/RCV/CN25/RB7 | |||
39 | Y | Y | Y | 21 | AN8/RP8/CN26/RB8 | ||||
40 | Y | Y | Y | 22 | AN9/RP9/CN27/RB9 | ||||
41 | Y | 23 | TMS/CVREF/AN10/CN28/RB10 | ||||||
42 | Y | 24 | TDO/AN11/CN29/RB11 | ||||||
43 | Y | 27 | TCK/AN12/CTEDG2/CN30/RB12 | ||||||
44 | Y | 28 | TDI/AN13/CTEDG1/CN31/RB13 | ||||||
45 | Y | Y | Y | 29 | AN14/CTPLS/RP14/CN32/RB14 | ||||
46 | Y | Y | Y | 30 | AN15/RP29/REFO/CN12/RB15 | ||||
stat LED / boot | 39 | OSCI/CLKI/CN23/RC12 | |||||||
mclr | Vpp | 7 | MCLR |