Serial peripherals

From Take-Air Wiki
Jump to navigation Jump to search

Refer to pinouts for pinouts

Jetson module UART

The Open.OC2 carrier board brings out several of the Jetson's UART interfaces which can be used to communicate with external devices.

J2 (Connector)

Device path /dev/ttyS0
Voltage level 3.3V
Jetson name UART2
Remarks 1.8V on Jetson module, shifted to 3.3V by SN74AVC4T245
Boots into console, can be used for debugging during boot

ESP-WROOM-02

Device path /dev/ttyTHS1
Voltage level 3.3V
Jetson name UART1
Remarks 1.8V on Jetson module, shifted to 3.3V by SN74AVC4T245
Connected to ESP-WROOM-02 module, used to flash or communicate with ESP-WROOM-02 module, see ESP-WROOM-02 flashing for details

Cube

Device path /dev/ttyTHS2
Voltage level 3.3V
Jetson name UART0
Remarks 1.8V on Jetson module, shifted to 3.3V by SN74AVC4T245
Connected to Cube flight controller (SERIAL2) used to flash or communicate with Cube, see Cube firmware updating and communication for details

Jetson module I2C

The Jetson i2c interfaces are used to communicate with onboard peripherals, and can also be used to connect external devices

I2C 0

Device path /dev/i2c-0
Voltage level 3.3V
On-board peripherals 0x48 - Thermometer (LM75BD)
0x49 - ADC (ADS1015)
0x60 - DAC (MCP47CBV12)
0x64[1] - Crypto chip (ATSHA204A)
External connectors N/A

I2C 1

Device path /dev/i2c-1
Voltage level 3.3V
On-board peripherals 0x48 - Thermometer (LM75BD)
0x49 - ADC (ADS1015)
0x51 - RTC (PCF8563)
External connectors J15

I2C 2

Device path /dev/i2c-2
Voltage level 3.3V
On-board peripherals 0x50 - Jetson module EEPROM
0x0A - Audio codec (SGTL5000)
External connectors N/A

I2C 6 (CAM I2C)

Device path /dev/i2c-6
Voltage level 3.3V
On-board peripherals 0x10 - Camera i2c (through mux!)
0x40 - Jetson module power monitor
0x6A - USB3.0(SS) hub (RTS5411S)
External connectors J13 (board extension connection) pins 21, 23. Through mux to CSI-0, CSI-2 (J17, J36)

Jetson module SPI

SPI CS Address Device Description
SPI0 CS0 /dev/spidev0.0[2] MCP2515-I CAN controller
CS1 /dev/spidev0.1 Test Point PT4
SPI1 CS0 /dev/spidev1.0 Connectors J19 (Camera microcoax) + J13 (daughter board) + J14
CS1 /dev/spidev1.1 Connectors J13 (daughter board) + J14
  1. Configurable address
  2. Used by driver