Pin Mapping

Use these pin names when programming in the Arduino IDE.

NOTE! This table is only applicable when using the M2 board as selected from the Tools -> Board menu from the Arduino IDE. See more information here.

Use the names in the "Mapped Pin Name" column in your Arduino Sketch.

A "pin mapping" describes how the different circuits of your P1 are connected to the PocketBeagle.

12-volt Outputs

Mapped Pin Name

Function

Notes

PocketBeagle Pin Name

OUT 1

SRC

J5 Pin 2

P1_36

OUT 2

SRC

J5 Pin 6

P2_3

OUT 3

SRC

J5 Pin 10

P2_2

OUT 4

SINK

J5 Pin 14

P2_4

OUT 5

SINK

J5 Pin 18

P1_33

OUT 6

SINK

J5 Pin 22

P2_10

Analog Inputs (0-12V analog input)

Mapped Pin Name

Notes

PocketBeagle Pin Name

IN 1

J5 Pin 1

P1_19

IN 2

J5 Pin 5

P1_21

IN 3

J5 Pin 9

P1_23

IN 4

J5 Pin 13

P1_25

IN 5

J5 Pin 17

P1_27

IN 6

J5 Pin 21

P2_36

GPIO Power Supply Current Sense

Mapped Pin Name

Notes

PocketBeagle Pin Name

12Vio_EN

GPIO Power Supply Enable

P1_31

SENSE 12V

GPIO Power Supply Analog Current Sense

OVER_CURRENT

GPIO Power Supply Interrupt

DAC1

GPIO Power Supply Analog Output to Comparator

Mapped Pin Name (use these in your sketch)

PocketBeagle Pin Name

Notes

SAM3X Pin Name

Processor CHIP physical PIN

PinDescription Array Number

I_SENSE_EN

12Vio_EN

PC24

135

75

I_SENSE

I SENSE 12V

PB17

88

93

I-SENSE_INT

OVER_CURRENT

PD1

14

76

I-SENSE_DAC

DAC1

PB16

77

95

CAN

Mapped Pin Name (use these in your sketch)

PocketBeagle Pin Name

Notes

SAM3X Pin Name

Processor CHIP physical PIN

PinDescription Array Number

CANRX0

CANRX0

PA1

24

69

CANTX0

CANTX0

PA0

23

70

CAN0_CS or HS_CS

HSC_S

PD3

16

71

CANRX1

CANRX1

PB15

76

72

CANTX1

CANTX1

PB14

140

73

CAN1_CS or MS_CS

MSC_S

PD0

13

25

Power Supplies

Mapped Pin Name (use these in your sketch)

PocketBeagle Pin Name

Notes

PS_BUCK or BUCK_DIS

BUCK_nDIS

PS_J1850_9141

P2_19

Bring LOW for LOW power

J1850

Mapped Pin Name (use these in your sketch)

PocketBeagle Pin Name

Notes

SAM3X Pin Name

Processor CHIP physical PIN

PinDescription Array Number

J1850_PWM_VPW

J1850_PWM_nVPW

PB8

123

50

J1850_PWM_RX

J1850_PWM_RX

PC28

139

51

J1850_VPW_RX

J1850_VPW_RX

PC26

137

52

J1850P_TX

J1850+_TX

PC18

100

53

J1850N_TX

J1850-_TX

PC23

134

54

9141/LIN

Mapped Pin Name

Pin name

Notes

PocketBeagle Pin Name (use these in your sketch)

LIN_KTX

9141 K TX

LIN1 TX

P2_7

LIN_KRX

9141 K RX

LIN1 RX

P2_5

LIN_KSLP

9141 K SLP

LIN1 Sleep

P2_22

LIN_LTX

9141 L TX

LIN2 TX

P1_30

LIN_LRX

9141 L RX

LIN2 RX

P1_32

LIN_LSLP

9141 L SLP

LIN2 Sleep

P2_28

Single-wire CAN

Mapped Pin Name (use these in your sketch)

PocketBeagle Pin Name

Notes

SAM3X Pin Name

Processor CHIP physical PIN

PinDescription Array Number

SWC_M1

SWC M1

PB0

113

65

SWC_M0

SWC M0

PB27

68

64

SWC_SOF

SWC SOF

PC29

102

68

SWC_CLK

SWC CLK

PB22

141

66

SPI0_CS3

SPI0_nCS3

PB23

142

63

SWC_INT

SWC nINT

PC16

98

67

SWC_RX0

SWC nRX0BF

PB1

114

61

SWC_RX1

SWC nRX1BF

PB2

115

62