User Tools

Site Tools


oak:tutorials:pinout

Oak Pinout Diagram

Click image for fullsize diagram

General Notes:

Pin 10 is not PWM capable. Pins 0-9 are, and they also have internal pullups.

Pin 10 is also the [WAKE] pin. See also DeepSleep

Pins 0, 1, 2 and 4 must not be held low at boot. Be careful not to attach pull down resistors to them (pull-ups are fine) unless they are only active after power up. Pulling P1 to GND will enter safe mode (if configured to do so) allowing for recovery from bad code and allowing for the Oak to be reconfigured. Pulling P2 to GND will put the Oak in firmware programming mode, allowing you to reset the Oaks firmware in those unfortunate times where something has gone majorly wrong!

Pin 6 must not be held high at boot. Be careful not to attach pull up resistors to it (pull-downs are fine) unless they are only active after power up.

Pin [Enable] must not be held low, it has an internal pullup.

There is only one analog input capable pin, A0.

DeepSleep

If implementing a sketch that puts the Oak into sleep mode, for example, ESP.deepSleep(sleepSeconds*1000000, WAKE_RF_DEFAULT), you must have pin 10 [WAKE] connected to the reset pin [RST] to facilitate wake up. You can do so simply by soldering the two pad at the back of the board, marked [WAKE-RST]. To save power you can also cut the connection between the pad marked [LED EN] to deactivate the LED. When the sleep time expires the [WAKE] pin pulls the [RST] pin low (which is HIGH for normal operation) which causes the Oak to reset. If you enter deepSleep without these two pins connected, the Oak will not wake up. Also note that when wake up occurs the sketch enters setup().

i2C

SDA = 0
SCL = 2

UART / Serial

RX = 3
TX = 4

SPI

SS = 6
MOSI = 7
MISO = 8
SCK = 9

Other

BUILTIN_LED = 1
A0 = 11

Oak Pin to ESP8266 GPIO Mapping

Oak Pin P0 P1 P2 P3 P4 P5 P6 P7 P8 P9 P10 P11
GPIO 2 5 0 3 1 4 15 13 12 14 16 17
oak/tutorials/pinout.txt · Last modified: 2016/12/21 00:41 by pfeerick