RoboRIO Manual
RoboRIO Manual
RoboRIO Manual
NI roboRIO
RIO Device for Robotics
The NI roboRIO is a portable reconfigurable I/O (RIO) device that students can use to design
control, robotics, and mechatronics systems used in the FIRST Robotics Competition (FRC).
This document contains pinouts, connectivity information, dimensions, and mounting
instructions for the NI roboRIO. The NI roboRIO provides the I/O shown in Figure 1 and
connects to a host computer over USB and 10/100 Ethernet.
5 6 7 8 9 10
INPUT
7-16V
45W MAX
CAN POWER
L (GRN)
4 H (YEL)
STATUS
3 I2C 14 COMM
11
CS0
SCLK CS1
SCL
5V
MODE
MOSI
MISO CS2
2 RS-232 NI roboRIO 3.3V CS3 RSL
TXD
RXD
0
0
1
1
2
2
3
3
4
PWM
4
DIO
1 12
5
5
33 1
13
6
6
7
7
Y
8
Z
8
X
ACCELEROMETER
9
9
18 17 16 15
1 Digital input and output (DIO) port 10 Serial peripheral interface bus (SPI) port
2 RS-232 port 11 LEDs
3 I2C port 12 Pulse-width modulation (PWM) port
4 CAN port 13 myRIO Expansion Port (MXP)
5 Power connector 14 MXP retention mount
6 USB Device port 15 User and Reset buttons
7 USB Host retention mount 16 Analog input (AI) port
8 USB Host ports 17 Relay port
9 Ethernet port 18 Robot signal light (RSL) port
Contents
Safety Information .................................................................................................................... 3
Electromagnetic Compatibility Guidelines...............................................................................3
Hardware Block Diagram ......................................................................................................... 4
Setting Up the NI roboRIO ....................................................................................................... 5
Wiring Power to the NI roboRIO ..................................................................................... 5
Powering On the NI roboRIO ........................................................................................... 5
Connecting the NI roboRIO to a Network........................................................................ 6
Preparing the NI roboRIO for Competition ...................................................................... 6
User Power........................................................................................................................ 6
Pinouts ...................................................................................................................................... 8
MXP.................................................................................................................................. 8
CAN Port .......................................................................................................................... 9
I2C Port ............................................................................................................................. 10
RS-232 Port....................................................................................................................... 10
DIO Port............................................................................................................................ 11
RSL Port ........................................................................................................................... 11
Relay Port ......................................................................................................................... 12
AI Port............................................................................................................................... 12
PWM Port ......................................................................................................................... 13
SPI Port ............................................................................................................................. 13
Signal Ground References ........................................................................................................ 14
Interfaces................................................................................................................................... 14
AI Channels ...................................................................................................................... 14
AO Channels..................................................................................................................... 14
DIO, PWM, and Relay Lines............................................................................................ 15
UART and RS-232 Lines.................................................................................................. 16
SPI Lines........................................................................................................................... 16
I2C Lines ........................................................................................................................... 16
USB Device Port............................................................................................................... 16
USB Host Port .................................................................................................................. 16
Accelerometer ........................................................................................................................... 17
Converting Raw Data Values to Voltage.................................................................................. 17
Front Panel Buttons .................................................................................................................. 17
Reset Button...................................................................................................................... 17
User Button ....................................................................................................................... 18
LED Indications ........................................................................................................................ 18
Power LED ....................................................................................................................... 18
Status LED........................................................................................................................ 19
Radio LED ........................................................................................................................ 19
Comm LED....................................................................................................................... 20
Mode LED ........................................................................................................................ 20
RSL (Safety) LED ............................................................................................................ 21
Physical Dimensions................................................................................................................. 22
Safety Information
Caution Do not operate the hardware in a manner not specified in the user
documentation. Misuse of the hardware can result in a hazard. You can compromise
the safety protection if the hardware is damaged in any way. If the hardware is
damaged, contact National Instruments for repair.
Clean the hardware with a soft, nonmetallic brush. Make sure that the hardware is completely
dry and free from contaminants before returning it to service.
This product is intended for use in industrial locations. However, harmful interference may
occur in some installations, when the product is connected to a peripheral device or test object,
or if the product is used in residential or commercial areas. To minimize interference with radio
and television reception and prevent unacceptable performance degradation, install and use this
product in strict accordance with the instructions in the product documentation.
Furthermore, any modifications to the product not expressly approved by National Instruments
could void your authority to operate it under your local regulatory rules.
Caution To ensure the specified EMC performance, the maximum length for DIO,
RS-232, I2C, CAN, SPI, PWM, AI, Relay, and RSL signal wires is 2.0 m (6.56 ft).
The maximum length for USB cables is 5.0 m (16.40 ft). The maximum length for
Ethernet cables is 30.0 m (98.43 ft). Refer to the Compatible USB and Ethernet
Cables section of this document for information about compatible USB and Ethernet
cables.
7
USB USB 10/100
Device Hosts Ethernet +3.3 V +5.0 V
SPI
Port Port Port
2 7
Xilinx Zynq-7020
CAN
Port Power LED
Comm LED
myRIO 16 16
Expansion DIO
Port (MXP)
Mode LED
2
Analog Out
RSL LED
4
Analog In Processor/FPGA
(LabVIEW RT) +6.0 V
PWM
10 10 Port
PWM
+3.3 V
I2C
Port 2
I2C
Watchdog
RS-232 2 Nonvolantile
RS-232
Port Memory
DDR3
+5.0 V
DIO
Port 10 10 Acceler-
ometer
DIO
AI Reset User
RSL Relay +5.0 V Button Button
8
4
Caution Do not install or remove the power connector from the front panel of the
NI roboRIO while power is applied.
2. Connect the positive lead of the power supply to the V terminal of the COMBICON power
connector shipped with the NI roboRIO, and tighten the terminal screw. Figure 3 shows the
terminal screws, which secure the wires in the screw terminals, and the connector screws,
which secure the power connector on the front panel.
1
V
C 2
3. Connect the negative lead of the power supply to the C terminal of the power connector and
tighten the terminal screw.
4. Install the power connector on the front panel of the NI roboRIO and tighten the connector
screws.
5. Turn on the power supply.
Caution To prevent data loss and to maintain the integrity of your Ethernet
installation, do not use a cable longer than 30 m.
The first time you power up the chassis, it attempts to initiate a DHCP network connection. If
the chassis is unable to initiate a DHCP connection, it connects to the network with a link-local
IP address with the form 169.254.x.x.
User Power
Table 1 describes the user voltage rails for powering external sensors and peripherals. The rails
are independent from the power supplies of internal systems, such as the processor and memory.
+5 V Power for DIO and AI ports for sensors, and power for the MXP for
powering expansion circuits.
+3.3 V Power for I2C, SPI, and the MXP.
Input Voltage
Stage Range Behavior
2 4.5 V to 6.3 V The NI roboRIO enters a brownout fault condition and the
following precautions are taken:
User voltage rails become disabled.
All PWM generation stops at the conclusion of the current
cycle.
GPIOs configured as outputs go to High-Z.
Relay control outputs are driven low.
CAN-based motor controllers become disabled.
The following systems continue to function normally with
valid data and communication:
FPGA, processor, RAM, disk, and user code
USB power and communication
Radio, if powered by USB
Ethernet
CAN
AI and AO
I2 C
SPI
RS-232 serial
LED and RSL status lights
Stage 2 continues until the input voltage rises to greater than
7.5 V or drops to less than 4.5 V.
3 Less than 4.5 V All controller functions cease and the controller state is lost.
This condition continues until the input voltage rises to greater
than 4.65 V, at which point the controller starts the normal
booting sequence. At startup, the controller remains in Stage 2
until the input voltage rises to greater than 7.5 V.
MXP
Figure 4 and Table 3 describe the MXP pins and signals. Note that some pins carry both primary
and secondary functions.
DIO4 / SPICS
DIO3 / PWM3
DIO2 / PWM2
DIO1 / PWM1
DIO0 / PWM0
+3.3V
+5V
AI3
AI2
AI1
AI0
33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1
34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2
DIO15 / I2C SDA
UART.TX
UART.RX
DIO14 / I2C SCL
DGND
DGND
DGND
DGND
DGND
DGND
DGND
AGND
AO1
AO0
DIO13 / PWM9
DIO12 / PWM8
DIO11 / PWM7
CAN Port
Figure 5 and Table 4 describe the CAN port pins and signals.
L (GRN)
H (YEL)
SCL
RS-232 Port
Figure 7 and Table 6 describe the RS-232 port pins and signals.
TXD
RXD
S
5V
Table 7. DIO Port Signal Descriptions
RSL Port
Figure 9 and Table 8 describe the RSL port pins and signals.
AI Port
Figure 11 and Table 10 describe the AI port pins and signals.
SPI Port
Figure 13 and Table 12 describe the SPI port pins and signals.
CS0
SCLK CS1
MOSI 5V
MISO CS2
3.3V CS3
MISO Input
Interfaces
AI Channels
The NI roboRIO has AI channels on the MXP and on the AI port. The channels are multiplexed
to a single analog-to-digital converter (ADC) that samples all channels.
The MXP and the AI port each has four single-ended AI channels, AI0-AI3, which you can use
to measure 0-5 V signals.
AI0
AI1
Expansion port
AI2
AI3
05 V MUX ADC
AI0
AI1
Integrated AI port
AI2
AI3
AO Channels
The NI roboRIO MXP has two AO channels, AO0 and AO1, which you can use to generate
signals of 0 V to 5 V. Each channel has a dedicated digital-to-analog converter (DAC), which
allows all AO channels to update simultaneously. The maximum update rate is specified as an
aggregate rate in the Analog Output section of the NI roboRIO Specifications.
05 V
DAC AO1
DIO <9..0> on the DIO port, CS <3..0> on the SPI port, and DIO <13..0> on the MXP all have
40 k pullup resistors to 3.3 V, as shown in Figure 16.
40 k
DIO <15..14> on the MXP and the two lines on the I2C port all have 2.2 k pullup resistors to
3.3 V, as shown in Figure 17.
2.2 k
<SCLK, MOSI, MISO> on the SPI port and the lines on the PWM and Relay ports all have
40 k pulldown resistors to ground, as shown in Figure 18.
40 k
When a DIO line is floating, it floats in the direction of the pull resistor. A DIO line may be
floating in any of the following conditions:
When the NI roboRIO device is starting up
When the line is configured as an input
When the NI roboRIO device is powering down
You can add a stronger resistor to a DIO line to cause it to float in the opposite direction.
The UART lines on the MXP are electrically identical to DIO lines 0 to 13 on the MXP. Like
those lines, UART.RX and UART.TX have 40 k pullup resistors to 3.3 V.
SPI Lines
The SPI port can support up to four devices by using each of the four Chip Select (CS) lines.
I2C Lines
The I2C lines can be used to connect to a network of I2C slave devices..
LabVIEW usually maps USB devices to the /U, /V, /W, or /X drive, starting with the /U drive
if it is available.
Pressing and holding the Reset button until the status LED lights (about five seconds) and then
releasing the Reset button restarts the processor and the FPGA and forces the NI roboRIO into
safe mode. In safe mode, the NI roboRIO launches only the services necessary for updating
configuration and installing software.
When the NI roboRIO is in safe mode, you can communicate with it by using the serial lines on
the RS-232 serial port. You must configure your serial-port terminal program with the following
settings:
115,200 bits per second
Eight data bits
User Button
The User Button produces a logic TRUE when depressed and a logic FALSE when not
depressed. The User Button is not debounced in hardware.
LED Indications
Power LED
The Power LED is a tri-color red/green/yellow LED that indicates specific conditions, as shown
in Table 13.
Red Solid Fault condition detected. One or more user voltage rails are
in short-circuit or overcurrent condition.
Red Flashing The input voltage is too high (greater than 16 V) and all
outputs, including the RSL output, are disabled.
Yellow Solid Brownout condition detected. The 6 V user rail and
outputs are disabled.
Number of Flashes
Every Few Seconds Indication
Radio LED
The Radio LED is a tri-color red/green/yellow LED that indicates specific conditions for an
USB-connected radio, as shown in Table 15.
Yellow Blinking Booting as access point. Radio is enabled and access point
is being constructed.
Yellow Solid Access point active. Radio is enabled and in access point
mode.
Green Blinking Booting as bridge. Radio is enabled and bridging is in
progress.
Green Solid Bridge active. Radio is enabled and has bridge configured
with SSID settings.
Red Any Reserved.
Comm LED
The Comm LED is a tri-color red/green/yellow LED that indicates robot communication
conditions, as shown in Table 16.
Red Solid No code. The protocol indicates that no user code has been
loaded.
Red Blinking E-Stop. The protocol indicates that the driver station has
E-Stopped the robot.
Green Solid Active. The protocol is active and the driver station is in
control of the robot.
Mode LED
The Mode LED is a tri-color red/green/yellow LED that indicates the mode of the NI roboRIO
outputs, as shown in Table 17.
0
0
1
1
33 1
42.78 mm (1.684 in.)
42.38 mm (1.669 in.)
6
6
Z
8
X
ACCELEROMETER
19.52 mm (0.769 in.) 19.92 mm (0.784 in.)
9
9
0
0
1
1
2
2
3
3
4
PWM
4
DIO
5
5
33 1
6
6
7
7
8
Z
8
X
ACCELEROMETER
9
9
0.0 mm (0 in.)
0.0 mm (0 in.)
For private individual users in the EU: Based on your statutory rights, National Instruments
willthrough its distributorcure defects in materials and workmanship within two years from
delivery.
Visit ni.com/services for NI Factory Installation Services, repairs, extended warranty, and
other services.
A Declaration of Conformity (DoC) is our claim of compliance with the Council of the European
Communities using the manufacturers declaration of conformity. This system affords the user
protection for electromagnetic compatibility (EMC) and product safety. You can obtain the DoC
for your product by visiting ni.com/certification. If your product supports calibration,
you can obtain the calibration certificate for your product at ni.com/calibration.
Refer to the NI Trademarks and Logo Guidelines at ni.com/trademarks for more information on National Instruments trademarks. Other
product and company names mentioned herein are trademarks or trade names of their respective companies. For patents covering National
Instruments products/technology, refer to the appropriate location: HelpPatents in your software, the patents.txt file on your media, or the
National Instruments Patents Notice at ni.com/patents. You can find information about end-user license agreements (EULAs) and third-party
legal notices in the readme file for your NI product. Refer to the Export Compliance Information at ni.com/legal/export-compliance
for the National Instruments global trade compliance policy and how to obtain relevant HTS codes, ECCNs, and other import/export data. NI MAKES
NO EXPRESS OR IMPLIED WARRANTIES AS TO THE ACCURACY OF THE INFORMATION CONTAINED HEREIN AND SHALL NOT BE LIABLE FOR
ANY ERRORS. U.S. Government Customers: The data contained in this manual was developed at private expense and is subject to the applicable
limited rights and restricted data rights as set forth in FAR 52.227-14, DFAR 252.227-7014, and DFAR 252.227-7015.
2014 National Instruments. All rights reserved.
374474A-01 Oct14