PinOut

Electrical Specification

obniz IOPhysical IODrive MethodInternal Weak Pull Up/DownInternal connected
io0GPIO0Input 3.3v(default)
Output push-pull3v
Output open-drain
(fixed internal pullup)SPM1423(MIC) SCL
io2GPIO2Input 3.3v(default)
Output push-pull3v
Output open-drain
(fixed internal pulldown)
io4GPIO4Input 3.3v(default)
Output push-pull3v
Output open-drain
(fixed internal pullup)
io5GPIO5Input 3.3v(default)
Output push-pull3v
Output open-drain
(fixed internal pullup)ST7735S(TFT) CS
io9GPIO12Input 3.3v(default)
Output push-pull3v
Output open-drain
float(default)
pull-up to 3v
pull-down to 0v
IR LED
io10GPIO12Input 3.3v(default)
Output push-pull3v
Output open-drain
float(default)
pull-up to 3v
pull-down to 0v
RED LED
io12GPIO12Input 3.3v(default)
Output push-pull3v
Output open-drain
float(default)
pull-up to 3v
pull-down to 0v
io13GPIO13Input 3.3v(default)
Output push-pull3v
Output open-drain
float(default)
pull-up to 3v
pull-down to 0v
ST7735S(TFT) CLK
io14GPIO14Input 3.3v(default)
Output push-pull3v
Output open-drain
float(default)
pull-up to 3v
pull-down to 0v
io15GPIO15Input 3.3v(default)
Output push-pull3v
Output open-drain
(fixed internal pullup)ST7735S(TFT) MOSI
io18GPIO18Input 3.3v(default)
Output push-pull3v
Output open-drain
(fixed internal pullup)ST7735S(TFT) RST
io19GPIO19Input 3.3v(default)
Output push-pull3v
Output open-drain
(fixed internal pullup)
io21GPIO21Input 3.3v(default)
Output push-pull3v
Output open-drain
float(default)
pull-up to 3v
pull-down to 0v
SH200Q,AXP192 SDA
io22GPIO22Input 3.3v(default)
Output push-pull3v
Output open-drain
float(default)
pull-up to 3v
pull-down to 0v
SH200Q,AXP192 SCL
io23GPIO23Input 3.3v(default)
Output push-pull3v
Output open-drain
(fixed internal pullup)ST7735S(TFT) DC
io25GPIO25Input 3.3v(default)
Output push-pull3v
Output open-drain
float(default)
pull-up to 3v
pull-down to 0v
io26GPIO26Input 3.3v(default)
Output push-pull3v
Output open-drain
float(default)
pull-up to 3v
pull-down to 0v
io27GPIO27Input 3.3v(default)
Output push-pull3v
Output open-drain
float(default)
pull-up to 3v
pull-down to 0v
io32GPIO32Input 3.3v(default)
Output push-pull3v
Output open-drain
(fixed internal pulldown)GROVE SDA
io33GPIO33Input 3.3v(default)
Output push-pull3v
Output open-drain
float(default)
pull-up to 3v
pull-down to 0v
GROVE SCL
io34GPIO34Input 3.3v(default)float(default)
pull-up to 3v
pull-down to 0v
SPM1423(MIC) SDA
io35GPIO35Input 3.3v(default)float(default)
pull-up to 3v
pull-down to 0v
io36GPIO36Input 3.3v(default)float(default)
pull-up to 3v
pull-down to 0v
io37GPIO37Input 3.3v(default)(fixed internal pullup)ButtonA
io38GPIO38Input 3.3v(default)(fixed internal pullup)
io39GPIO39Input 3.3v(default)(fixed internal pullup)ButtonB

Peripherals

PINOUT

Peripheralfunctionio0io2io4io5io9io10io12io13io14io15io18io19io21io22io23io25io26io27io32io33io34io35io36io37io38io39
IOoutputYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYES
inputYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYES
ADADYESYESYESYESYESYES
PWMIOYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYES
UARTTXYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYES
RXYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYES
CTSYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYES
RTSYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYES
SPICLKYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYES
MOSIYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYES
MISOYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYES
I2CSDAYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYES
SCLYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYES
LogicAnalyzerIOYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYES
MeasurePULSEYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYES
ECHOYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYES

Peripherals: IO

output

Each IO can put out digital values.

Drive method can be configured independently for each IO.
Not only for io.output(), but also for UART and SPI you can choose your preferred drive method.

input

There is only one input method. Threshold is CMOS level.

internal weak pull-up/pull-dow

Pull up and down can be configured independently for each IO.

There are three types as below.

TypePull toDetail
floating Default
pull-up3v
pull-downgnd

Some io has fixed internel pull up/down for startup configration.

all channnel same time.

All channel ad can be used. It will not affect the sampling rate.

30 samples/sec or slower

Maximum sampling rate depends on your network speed and on obnizOS version.

12bit

Ad accuracy is 12bit.

PWM

6(pwm0 to pwm5) are available.

UART

2 (uart0 to uart1) are available.

Available Configration

  1. baud: number (default 115200)
  2. stop: stop bit length 1(default)/1.5/2
  3. bits: data bits 8(default)/5/6/7
  4. parity: parity check “off”(default)/”odd”/”even”
  5. flowcontrol: flow control “off”(default)/”rts”/”cts”/”rts-cts”
  6. rts: io for rts (optional)
  7. cts: io for cts (optional)

SPI

2 (spi0 to spi1) are available.

Only Master mode.

I2C

1 (i2c0) is available and used for Grove connector, motion sensors(M5Stack Gray only).

Max speed is 1Mhz.
Master/Slave mode.
But slave mode only works with “written” events. You can’t set data to be read.

LogicAnalyzer

1 (logicanalyzer) is available.

Measure

1 (measure) is available.

Embeded

BLE

BLE32 embeded Bluetooth Module