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.
Figure 1. NI roboRIO Features
1Digital input and output (DIO) port
2RS-232 port
3I
4CAN port
5Power connector
6USB Device port
7USB Host retention mount
8USB Host ports
9Ethernet port
2
C port
10 Serial peripheral interface bus (SPI) port
11 LEDs
12 Pulse-width modulation (PWM) port
13 myRIO Expansion Port (MXP)
14 MXP retention mount
15 User and Reset buttons
16 Analog input (AI) port
17 Relay port
18 Robot signal light (RSL) port
Contents
Safety Information .................................................................................................................... 3
Worldwide Support and Services ............................................................................................. 31
Safety Information
CautionDo 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.
Electromagnetic Compatibility Guidelines
This product was tested and complies with the regulatory requirements and limits for
electromagnetic compatibility (EMC) stated in the product specifications. These requirements
and limits provide reasonable protection against harmful interference when the product is
operated in the intended operational electromagnetic environment.
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.
CautionTo ensure the specified EMC performance, the maximum length for DIO,
2
RS-232, I
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.
C, CAN, SPI, PWM, AI, Relay, and RSL signal wires is 2.0 m (6.56 ft).
Figure 2 shows the arrangement and functions of NI roboRIO components.
Figure 2. NI roboRIO Hardware Block Diagram
4 | ni.com | NI roboRIO User Manual
Setting Up the NI roboRIO
Wiring Power to the NI roboRIO
The NI roboRIOrequires an external power supply that meets the specifications in the Power
Requirements section of the NI roboRIO Specifications. The NI roboRIOfilters and regulates
the supplied power and provides power for all of the I/O and user voltage. The NI roboRIO has
one layer of reverse-voltage protection. Complete the following steps to connect a power supply
to the chassis.
1.Ensure that the power supply is turned off.
CautionDo 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.
Figure 3. NI roboRIO COMBICON Power Connector
2
1
1Terminal Screws2Connector Screws
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.
V
C
2
Powering On the NI roboRIO
When you apply power, the NI roboRIO runs a power-on self test (POST). During the POST,
the Power and Status LEDs turn on. The Status LED turns off, indicating that the POST is
complete. If the LEDs do not behave in this way when the system powers on, refer to the LED
Connect the NI roboRIO to an Ethernet network using the Ethernet port. Use a standard
Category 5 (CAT-5) or better shielded, twisted-pair Ethernet cable to connect the NI roboRIO
to an Ethernet hub, router, or directly to a computer.
CautionTo 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.
Preparing the NI roboRIO for Competition
For information about configuring the controller for competitive use, refer to the Tutorials tab
in the Getting Started window of LabVIEW for FRC.
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.
Table 1. NI roboRIO Voltage Rails
Voltage RailDescription
+6 VPower from PWM ports for use with servos.
+5 VPower for DIO and AI ports for sensors, and power for the MXP for
powering expansion circuits.
+3.3 VPower for I2C, SPI, and the MXP.
6 | ni.com | NI roboRIO User Manual
Input Voltage Brownout Behavior
The NI roboRIO input voltage range is 7 V to 16 V. The input voltage monitoring circuit
monitors the voltage on the input voltage pin. When the input voltage drops to between 4.5 V
and 6.8 V, the NI roboRIO enters brownout mode with a staged response, as Table 2 describes.
Table 2. NI roboRIO Input Voltage Brownout Behavior
Input Voltage
Stage
Range
16.3 V to 6.8 VThe +6 V voltage rail starts to drop.
24.5 V to 6.3 VThe 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.
Behavior
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
2
C
•I
•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.
3Less than 4.5 VAll 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.
To minimize noise on analog measurement channels, use the ground reference of the
corresponding port. For example, when you are using AI, the measurement should reference the
GND of the AI port.
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.
NoteFor important information about improving measurement accuracy by
reducing noise, visit
Figure 14 shows the AI topology of the NI roboRIO.
ni.com/info and enter the Info Code analogwiring.
Figure 14. NI roboRIO AI Circuitry
AI0
Expansion port
0–5 V
Integrated AI port
AI1
AI2
AI3
AI0
AI1
AI2
AI3
MUX
ADC
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.
Figure 15 shows the AO topology of the NI roboRIO.
14 | ni.com | NI roboRIO User Manual
Figure 15. NI roboRIO AO Circuitry
40 kΩ
FPGA
BusSwitch
DIO/CS
+3.3 V
40 kΩ
FPGA
BusSwitch
DIO or Other Line
DAC
DAC
AO0
AO1
Expansion port
0–5 V
DIO, PWM, and Relay Lines
The NI roboRIO provides the following DIO lines:
•3.3 V general-purpose DIO lines on the MXP
•3.3 V digital lines on the DIO, I
•5 V digital lines on the PWM and Relay ports.
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.
Figure 16. DIO Lines with 40 kΩ Pullup Resistors to 3.3 V
2
C, and SPI ports
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.
Figure 17. DIO Lines with 2.2 kΩ Pullup Resistors to 3.3 V
+3.3 V
2.2 kΩ
FPGA
BusSwitch
DIO/SCL/SDA
<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.
Figure 18. DIO Lines with 40 kΩ Pulldown Resistors to Ground
You can program all MXP DIO lines and on-board DIO lines individually as inputs or outputs.
2
Secondary digital functions include SPI, I
NI roboRIO software documentation for information about configuring the behavior of the DIO
lines.
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.
C, PWM, and quadrature encoder input. Refer to the
UART and RS-232 Lines
The NI roboRIO has one UART connected to the UART lines on the MXP and one UART
connected to the RS-232 port.
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.
The RS-232 lines are compliant with TIA/EIA-232-F voltage levels.
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..
USB Device Port
You can deploy and debug code by connecting a USB cable from the USB device port on the
NI roboRIO to a computer.
USB Host Port
The NI roboRIO USB host port supports the following devices:
•Web cameras that conform to the USB Video Device Class (UVC) protocol.
•Machine vision cameras that conform to the USB3 Vision standard and are backward
compatible with the USB 2.0 specification.
•Basler ace USB3 cameras.
•USB Flash drives.
•USB-to-IDE adapters formatted with FAT16 and FAT32 file systems.
LabVIEW usually maps USB devices to the
if it is available.
16 | ni.com | NI roboRIO User Manual
/U, /V, /W, or /X drive, starting with the /U drive
Accelerometer
The NI roboRIO contains a three-axis accelerometer, MMA8452Q. Refer to the Accelerometer
section of the NI roboRIO Specifications for the accelerometer sample rates.
Converting Raw Data Values to Voltage
You can use the following equations to convert raw data values to volts:
V = Raw Data Value * LSB Weight
LSB Weight = Nominal Range ÷ 2
where Raw Data Value is the value returned by reading in the input channel,
LSB Weight is the value in volts of the increment between data values,
Nominal Range is the absolute value in volts of the full, peak-to-peak nominal range
of the channel,
and ADC Resolution is the resolution of the ADC in bits. (ADC Resolution = 12.)
•For AI and AO channels on the MXP,
LSB Weight = 5 V ÷ 2
Maximum reading = 4095 * 1.221 mV = 4.999 V
•For the accelerometer,
LSB Weight = 16 g ÷ 2
Maximum Positive Reading = +2047 * 3.906 mg = +7.996 g
Maximum Negative Reading = -2048 * 3.906 mg = -8.000 g
12
12
ADC Resolution
= 1.221 mV
= 3.906 mg
Front Panel Buttons
Reset Button
Pressing and releasing the Reset button restarts the processor and the FPGA.
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:
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.
Table 13. Power LED Indications
ColorStateIndication
OffOffPower is outside valid input range.
GreenSolidPower is valid with no fault condition.
RedSolidFault condition detected. One or more user voltage rails are
in short-circuit or overcurrent condition.
RedFlashingThe input voltage is too high (greater than 16 V) and all
outputs, including the RSL output, are disabled.
Ye ll o wSolidBrownout condition detected. The 6 V user rail and
outputs are disabled.
18 | ni.com | NI roboRIO User Manual
Status LED
The Status LED is a single-color yellow LED. The Status LED is off during normal operation.
The NI roboRIO runs a power-on self test (POST) when you apply power to the device. During
the POST, the Power and Status LEDs turn on. When the Status LED turns off, the POST is
complete. The NI roboRIO indicates specific error conditions by flashing the Status LED a
certain number of times every few seconds, as shown in Table 14.
Table 14. Status LED Indications
Number of Flashes
Every Few Seconds
2The device has detected an error in its software. This usually
occurs when an attempt to upgrade the software is interrupted.
Reinstall software on the device.
3The device is in safe mode.
4The software has crashed twice without rebooting or cycling
power between crashes. This usually occurs when the device runs
out of memory. Review your RT VI and check the memory usage.
Modify the VI as necessary to solve the memory usage issue.
Indication
Continuously flashing
or solid
The device has detected an unrecoverable error. Contact National
Instruments.
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.
Table 15. Radio LED Indications
ColorStateIndication
OffOffNo connection detected.
Ye ll o wBlinkingBooting as access point. Radio is enabled and access point
is being constructed.
Ye ll o wSolidAccess point active. Radio is enabled and in access point
mode.
GreenBlinkingBooting as bridge. Radio is enabled and bridging is in
progress.
GreenSolidBridge active. Radio is enabled and has bridge configured
Other LED states may indicate other, undetermined radio issues or failures. This LED is
undefined if a USB radio is not used.
Comm LED
The Comm LED is a tri-color red/green/yellow LED that indicates robot communication
conditions, as shown in Table 16.
Table 16. Comm LED Indications
ColorStateIndication
OffOffNo communication detected. No heartbeat detected.
RedSolidNo code. The protocol indicates that no user code has been
loaded.
RedBlinkingE-Stop. The protocol indicates that the driver station has
E-Stopped the robot.
GreenSolidActive. The protocol is active and the driver station is in
control of the robot.
Ye ll o wAnyReserved.
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.
Table 17. Mode LED Indications
ColorStateIndication
OffOffOutputs disabled.
GreenSolidOutputs enabled. Autonomous mode.
Ye ll o wSolidOutputs enabled. TeleOperated mode.
RedSolidOutputs unknown, undetermined, or in test mode.
20 | ni.com | NI roboRIO User Manual
RSL (Safety) LED
The RSL LED is a single-color yellow LED that functions identically to the RSL, which is an
external indicator connected to the NI roboRIO using a dedicated connector, and indicates
specific conditions, as shown in Table 18.
Table 18. RSL LED Indications
ColorStateIndication
OffOffOutputs disabled. No power.
Ye ll o wSolidOutputs disabled. Robot is powered.
Ye ll o wBlinkingOutputs enabled. Robot is powered.
You can mount the NI roboRIO in the following ways:
•Using cable ties to secure one edge of the NI roboRIO to perfboard with 6.35 mm (0.25 in.)
diameter holes on 12.7 mm (0.5 in.) straight centers, such as AndyMark part number
am-0836.
•Using cable ties to secure one corner of the NI roboRIO to perfboard.
•Using screws to secure the bottom of the NI roboRIO to a metal plate.
Method One: Using Cable Ties to Secure One Edge of
the NI roboRIO to Perfboard
Figures 23 through 26 show how to secure one edge of the NI roboRIO to perfboard.
Method Three: Using Screws to Secure the Bottom of
2
1
the NI roboRIO to a Metal Plate
Figure 32 shows how to secure the bottom of the NI roboRIO to a metal plate using the built-in
4-40 screw holes. The length of the screws required depends on the thickness of the plate you
use. For example, if the plate is 4.76 mm (0.188 in.) thick, the recommended screw length is
7.94 mm (0.313 in.).
Figure 32. Mounting NI roboRIO Using Screws
1Metal Mounting Plate24-40 Screws x 4
Compatible USB and Ethernet Cables
Table 19 lists the USB and Ethernet cables available from NI that you can use with the
NI roboRIO.
Table 19. Compatible USB and Ethernet Cables Available from NI
CableDescriptionNI Part Number
USB cableUSB 2.0 A/B, black, 2 m192256A-01
Peripheral USB cableUSB 2.0 A/A, locking, black, 2 m152166A-01
Ethernet cableCAT-5E, thin profile, 2 m151733A-01
30 | ni.com | NI roboRIO User Manual
Warranty
For customers other than private individual users in the EU: The NI roboRIO is warranted
against defects in materials and workmanship for a period of three years from the date of
shipment, as evidenced by receipts or other documentation. National Instruments will, at its
option, repair or replace equipment that proves to be defective during the warranty period. This
warranty includes parts and labor.
For private individual users in the EU: Based on your statutory rights, National Instruments
will—through its distributor—cure defects in materials and workmanship within two years from
delivery.
Worldwide Support and Services
The National Instruments website is your complete resource for technical support. At ni.com/
support
self-help resources to email and phone assistance from NI Application Engineers.
Visit
other services.
you have access to everything from troubleshooting and application development
ni.com/services for NI Factory Installation Services, repairs, extended warranty, and
Visit ni.com/register to register your National Instruments product. Product registration
facilitates technical support and ensures that you receive important information updates from NI.
A Declaration of Conformity (DoC) is our claim of compliance with the Council of the European
Communities using the manufacturer’s 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
you can obtain the calibration certificate for your product at
ni.com/certification. If your product supports calibration,
ni.com/calibration.
National Instruments corporate headquarters is located at 11500 North Mopac Expressway,
Austin, Texas, 78759-3504. National Instruments also has offices located around the world. For
telephone support in the United States, create your service request at
ni.com/support or dial
1 866 ASK MYNI (275 6964). For telephone support outside the United States, visit the
Worldwide Offices section of
ni.com/niglobal to access the branch office websites, which
provide up-to-date contact information, support phone numbers, email addresses, and current
events.
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: Help»Patents 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.