Professional Documents
Culture Documents
Guide v1.0
1/13
Board
D/U
D/U
D/U
D/U/L
D/U/L
D/U/L
D/U/L
D/U/L
L
D/U/L
D/U/L
PIN
A4
A5
Di3
Di5
Di6
Di9
Di10
Di11
Di13
SDA
SCL
Purpose
SDA
SCL
Servo 3
Servo 5
Servo 6
Servo 9
Servo 10
Servo 11
Servo 3
SDA
SCL
Bank A
M1
EVShield
NXT/EV3
Motor
M2
BAS1
BAS2
Bank B
M1
M2
Hardware I2C
Analog
UART
BBS1
BBS2
2/13
Pin Usage
Pin Usage
Available (shared) RESET
Available (shared) 3.3V
Available (shared)
5V
Available (shared) GND
Available (shared) GND
Available (shared)
Vin
Available(unconnected)
Available(unconnected)
Available(unconnected)
Available(unconnected)
SDA (UNO)
SCL (UNO)
A0
A1
A2
A3
A4
A5
SCL SCL
SDA SDA
AREF Available(unconnected)
GND Available (shared)
13 Routed to Servo Header 3 (Leonardo)
12 Available(unconnected)
11 Routed to Servo Header 11
10 Routed to Servo Header 10
9
Routed to Servo Header 9
8
Available(unconnected)
7
6
5
4
3
2
1
0
Available(unconnected)
Routed to Servo Header 6
Routed to Servo Header 5
Available(unconnected)
Routed to Servo Header 3 (UNO)
Available(unconnected)
Available(unconnected)
Available(unconnected)
3/13
4/13
I2C Registers:
Each bank of EVShield appears as a set of registers as follows:
Register
0x000x07
0x080x0f
0x100x17
Read
Firmware version Vxxxx
Write
-
Vendor Id openlctrn
Device ID EVShld
0x41
0x42
Command
Motor 1 Write
Parameters
Encoder Target for Motor
1 (long)
0x42:
0x43:
0x44:
0x45:
0x46
0x47
0x48
0x49
0x4A
Motor 2 Write
Parameters
Encoder target for Motor
2 (long)
0x4E
0x4F
0x50
0x51
5/13
0x52
0x62:
0x63:
0x64:
0x65:
0x56
0x5A
0x5B
0x5C
0x5D
0x5E
0x60
0x62
0x64
0x66
6/13
0x68
0x6A
0x6B
0x6C
0x6E
Check Sum
Input Battery Voltage
7/13
I2C
Color Full
Color Red
Color Green
Color Blue
Color None
EV3 Switch
EV3
9
13
14
15
16
17
18
19
SH_Type_I2C
SH_Type_COLORFULL
SH_Type_COLORRED
SH_Type_COLORGREEN
SH_Type_COLORBLUE
SH_Type_COLORNONE
SH_Type_EV3_SWITCH
SH_Type_EV3
Read
Sensor 1 value (LSB)
Sensor 1 value (MSB)
Sensor 2 value (LSB)
Sensor 2 value (MSB)
Write
-
8/13
Angle
Rate
Infrared
Proximity
Beacon
Remote
Ultrasonic
Proximity in Centimeters
Proximity in Inches
Presence
0x00
0x01
0x00
0x01
0x02
0x00
0x01
0x02
MODE_Gyro_Angle
MODE_Gyro_Rate
MODE_Infrared_Proximity
MODE_Infrared_Beacon
MODE_Infrared_Remote
MODE_Sonar_CM
MODE_Sonar_Inches
MODE_Sonar_Presence
Read
Sensor 1 LEGO Color
Sensor 1 Red calibrated value
Sensor 1 Green calibrated
value
Sensor 1 Blue calibrated value
Sensor 1 No Light calibrated
value
Sensor 1 Red raw value
Sensor 1 Green raw value
Sensor 1 Blue raw value
Sensor 1 No Light raw value
Sensor 2 LEGO Color
Sensor 2 Red calibrated value
Sensor 2 Green calibrated
value
Sensor 2 Blue calibrated value
Sensor 2 No Light calibrated
value
Sensor 2 Red raw value
Sensor 2 Green raw value
Sensor 2 Blue raw value
Sensor 2 No Light raw value
Write
-
9/13
0xDB
0xDC
0xDD
0xDE
0xDF
0xE0
Value
2
1
4
Hex
0x52
0x53
a
b
c
A
B
C
0x61
0x62
0x63
0x41
0x42
0x43
Description
Reset all Encoder values and motor parameters. (This
does not reset the PID parameters).
Issue commands to both motors at the same time,
for Synchronized starting of both motors.
Motor Stopping Commands
Motor 1: Float while stopping.
Motor 2: Float while stopping.
Motor 1 and 2: Float while stopping.
Motor 1: Brake while stopping.
Motor 2: Brake while stopping.
Motor 1 & 2: Brake while stopping.
10/13
Register
Bit
bit (bit 0)
Bit 1
Bit 2
Bit 3
Bit 4
Bit 5
Bit 6
Most
significant
bit (bit 7)
11/13
12/13
13/13