Download RIOduino User`s Manual

Transcript
fg
RIOduino
USER'S MANUAL
REV-11-1104-UM-00
Copyright © 2014 REV Robotics, LLC
1
TABLE OF CONTENTS
1
2
RIOduino OVERVIEW .............................................................................................................................................................. 3
1.1
FEATURES ..................................................................................................................................................................... 4
1.2
KIT CONTENTS .............................................................................................................................................................. 4
FEATURE DESCRIPTION ........................................................................................................................................................ 5
2.1
ARDUINO COMPATIBILITY ........................................................................................................................................... 5
2.2
POWER OPTIONS .......................................................................................................................................................... 5
2.2.1
VIN SOURCE REQUIREMENTS .................................................................................................................................. 5
2.2.2
POWER SOURCE SELECTION ................................................................................................................................... 5
2.2.3
POWER SUPPLY CAPABILITIES ............................................................................................................................... 6
2.3
MXP SIGNALS................................................................................................................................................................ 6
2
2.3.1
SHARED I C................................................................................................................................................................ 7
2.3.2
SHARED UART ........................................................................................................................................................... 7
2.4
WS281x RGB LED STRIP CONNECTIONS .................................................................................................................... 7
2.5
MOUNTING HOLES ........................................................................................................................................................ 8
APPENDIX A
SCHEMATIC....................................................................................................................................................... 9
APPENDIX B
DRAWING......................................................................................................................................................... 10
APPENDIX C
BILL OF MATERIALS ....................................................................................................................................... 11
LIST OF FIGURES
Figure 1-1 RIOduino ....................................................................................................................................................................... 3
Figure 2-1 MXP Signal Access ...................................................................................................................................................... 6
Figure 2-2 Connecting WS281x LED Strip to RIOduino ............................................................................................................... 8
LIST OF TABLES
Table 2-1 VIN Voltage Requirements ............................................................................................................................................. 5
Table 2-2 Automatic Power Selection Truth Table ...................................................................................................................... 5
Table 2-3 Maximum Supply Current ............................................................................................................................................. 6
2
Table 2-4 Shared I C Signals ......................................................................................................................................................... 7
Table 2-5 Shared UART Signals .................................................................................................................................................... 7
Table 2-6 Recommended Mounting Screw Sizes ........................................................................................................................ 8
REV-11-1104-UM-00
Copyright © 2014 REV Robotics, LLC
2
1 RIOduino OVERVIEW
The REV Robotics RIOduino is an Arduino Uno R3 compatible microcontroller board designed to plug into the roboRIO
MXP (myRIO Expansion Port). Because the RIOduino is a complete microcontroller board, the vast ecosystem of
Arduino shields and example code are immediately compatible without having to port any code to the roboRIO.
Communicating with the RIOduino is made easy by using the UART or I2C interfaces connected through the MXP to the
roboRIO.
Figure 1-1 RIOduino
REV-11-1104-UM-00
Copyright © 2014 REV Robotics, LLC
3
1.1 FEATURES
The REV Robotics RIOduino includes the following features:

Arduino Uno R3 compatible microcontroller board
o



3 auto-selecting power options
o
VIN terminal - 12.0 V (from PDP, VRM, etc.)
o
MXP connector - 5.0 V
o
USB connector - 5.0 V
Serial connections between RIOduino and roboRIO
o
UART (TTL levels)
o
IC
4 MXP signals are connected to the RIOduino

UART.RX

UART.TX

DIO14/I2CSCL

DIO15/I2CSDA
o
Remaining signals are pass-through only
o
Allows for stacking of MXP boards with provided connector
Connections for WS281x LED strips
o

2
All MXP signals are passed through to 0.1" header positions
o

Compatible with virtually all Arduino Uno R3 footprint shields
Power externally provided
Mounting holes
o
2 holes for roboRIO mounting, 4-40 x 3/16" screws
o
4 Arduino footprint mounting holes, #4 sized screws
o
4 holes for additional mounting options, #6 sized screws
1.2 KIT CONTENTS
The REV Robotics RIOduino comes with the following:

RIOduino

USB A to mini B cable

Female MXP connector

2 roboRIO mounting screws, 4-40 x 3/16"
REV-11-1104-UM-00
Copyright © 2014 REV Robotics, LLC
4
2 FEATURE DESCRIPTION
The REV Robotics RIOduino is designed to seamlessly integrate the vast Arduino ecosystem into the FIRST Robotics
Competition control system. This section describes these RIOduino features in detail.
2.1 ARDUINO COMPATIBILITY
The RIOduino is compatible with the latest Arduino UNO R3 footprint. It features an Atmel ATmega328 8-bit
microcontroller and can be programmed over USB using the Arduino integrated development environment (IDE). Each
board comes with the Arduino bootloader preprogrammed on the ATmega328. Please see the RIOduino Getting Started
Guide at www.revrobotics.com/product/rioduino for instructions on how to program the RIOduino for the first time.
For more information on the Arduino UNO R3, the Arduino IDE, compatible shields, and access to the vast Arduino
community, please visit arduino.cc.
2.2 POWER OPTIONS
The RIOduino can be powered from one of three power sources: the VIN terminal, MXP connector, or USB connector. It
can also supply power to connected circuitry and shields.
2.2.1 V I N SOURCE REQUIREMENTS
When powering the RIOduino from either the VIN pin (J4.8) or the VIN screw terminal (J7) please ensure the voltage
meets the input requirements outlined in Table 2-1.
Table 2-1 VIN Voltage Requirements
VIN
MIN
7.0 V
TYP
-
MAX
12.0 V
If VIN drops below 7.0 V the on-board regulator is at risk of browning out and resetting the RIOduino. If VIN is higher than
12.0 V, the on-board regulator can overheat and be damaged.
2.2.2 POWER SOURCE SELECTION
Circuitry on the RIOduino automatically selects the best source for power with the priority given first to the VIN terminal,
then the MXP connector, and then the USB connector. Table 2-2 shows the truth table behind the power source
selection.
Table 2-2 Automatic Power Selection Truth Table
VIN > 2.7 V
No
Yes
1.
REV-11-1104-UM-00
1
VMXP > VUSB
No
Yes
X
Selected Source
USB
MXP
VIN
Note that VIN must be 7.0 V - 12.0 V for the RIOduino to
operate properly, however a VIN greater than 2.7 V will
force the selection of VIN as the input source. Please see
2.2.1 VIN SOURCE REQUIREMENTS for more
information.
Copyright © 2014 REV Robotics, LLC
5
The power selection scheme makes it possible to program and debug over USB without removing the RIOduino from the
system.
2.2.3 POWER SUPPLY CAPABILITIES
The RIOduino can supply both 5.0V and 3.3V to connected circuitry and shields. Table 2-3 lists the maximum current
capabilities for each supply depending on the RIOduino power source.
Table 2-3 Maximum Supply Current
3.3 V Rail - IMAX
1
5.0 V Rail - IMAX
1.
2.
USB
50 mA
500 mA
Power Source
MXP
2
1.5 A
1.0 A
VIN
50 mA
1.0 A
These are the absolute maximums for the 5.0 V rail current. The
actual available current will less and will depend on the 3.3 V rail
current and any on-board current draw (including the
microcontroller).
This is the maximum output current for the roboRIO 3.3 V rail. The
actual available current depends on any other devices connected to
the roboRIO 3.3V rail.
When powered by the MXP connector, the on-board 3.3 V regulator (U5) is put into a shutdown mode and 3.3 V power is
provided by the roboRIO. Pin 8 on the MXP connector (J1) is connected to the
pin (U5.3) and is tied to
ground once it is connected to the matching pin 8 on the roboRIO MXP.
2.3 MXP SIGNALS
All MXP signals are routed to 2x17 0.1" spaced grid of holes along the bottom edge of the board, see Figure 2-1.
Figure 2-1 MXP Signal Access
The included female MXP connector can be soldered to these holes and used in tandem with the REV Robotics MXP
Extension Cable (REV-1-1118) to stack an additional MXP board like the REV More Board (REV-11-1100).
2
Both I C and UART are connected between the roboRIO and the RIOduino providing the means to communicate between
the two.
REV-11-1104-UM-00
Copyright © 2014 REV Robotics, LLC
6
2.3.1 SHARED I 2 C
2
Table 2-4 shows which signals are shared for I C.
2
Table 2-4 Shared I C Signals
RIOduino Signal
AD4/SDA
AD5/SCL
RIOduino Shield Pin
J3.5
J3.6
MXP Pin
J1.34
J1.32
MXP Signal
DIO15/I2CSDA
DIO14/I2CSCL
2
As with any I C bus, pull-up resistors are required for both SCL and SDA. To keep AD4 and AD5 free for analog use, the
RIOduino has two unpopulated positions (R12, R13) for 2.2 kΩ 0603 surface mount resistors. When used with the
roboRIO, these external resistors are not needed because the roboRIO has internal pull-up resistors. For other
applications, these resistors can be added. Please see APPENDIX A SCHEMATIC and APPENDIX B DRAWING for the
schematic and component placement drawing.
2.3.2 SHARED U ART
Table 2-5 shows which signals are shared for UART.
Table 2-5 Shared UART Signals
RIOduino Signal
IO0/RX
IO1/TX
RIOduino Shield Pin
J5.1
J5.2
MXP Pin
J1.14
J1.10
MXP Signal
UART.TX
UART.RX
CAUTION
The UART signals are at TTL levels. Do not connect directly to a RS-232 serial port without an RS-232 to TTL converter.
The UART on the ATmega328 is connected to both the MXP connector and the on-board USB to Serial converter through
1 kΩ resistors. These resistors prevent either the roboRIO or the USB to Serial converter from forcibly driving the bus
when another UART device is connected through the shield headers.
2.4 WS281x RGB LED STRIP CONNECTIONS
A popular application for Arduino-compatible boards like the RIOduino is to control addressable RGB LED strips like the
WS2811 and WS2812 based strips. The RIOduino includes five plated-through holes that make it easy to connect one of
these strips and its external power source. Figure 2-2 shows how to wire a WS281x LED strip with an external 5V supply.
REV-11-1104-UM-00
Copyright © 2014 REV Robotics, LLC
7
Figure 2-2 Connecting WS281x LED Strip to RIOduino
The data line for the strip is connected to the D6 output of the RIOduino while power is provided externally. LED strips
can draw a large amount of current, so care should be given to ensure the external power source can provide enough
current.
2.5 MOUNTING HOLES
The RIOduino has 10 total mounting hole locations throughout the board. Please see APPENDIX B DRAWING for the
mounting hole placement. Table 2-6 lists the recommended mounting screw sizes.
Table 2-6 Recommended Mounting Screw Sizes
Mounting Hole
roboRIO
Arduino footprint
General mounting
Quantity
2
4
4
Recommended Screw Size
4-40 x 3/16" machine screw
#4 machine screw
#6 machine screw
The general mounting holes give flexibility in mounting the board, either mounted directly on the roboRIO or externally
using the REV Robotics MXP Extension Cable (REV-1-1118).
REV-11-1104-UM-00
Copyright © 2014 REV Robotics, LLC
8
APPENDIX A SCHEMATIC
Appendix A shows the schematic for the REV Robotics RIOduino.
REV-11-1104-UM-00
Copyright © 2014 REV Robotics, LLC
9
+5.0V
R6
U2
3
0 OHMS
ID
D+ D-
5V
9
6
+3.3V
+5.0V
1
2
3
4
+5.0V_USB
1
2
F1
FUSE-PTC-0.5A-0ZCA0050FF2G
C13
1
2
3
4
5
6
7
8
VOUT
SD101AW-TP
D6
GND
AP1117ID50G-13
+5.0V_USB
+5.0V_MXP
+
R4
3K
C14
47uF
RESET#
C9
0.1uF
C7
10uF 16V
8
NC
24
NC
26
25
7
18
21
DTR
H5
H6
H7
H8
+5.0V
3V3OUT
TEST CBUS0/TXLED#
AGND CBUS1/RXLED#
GND
CBUS2/TXDEN
GND CBUS3/PWREN#
GND CBUS4/SLEEP#
1K
R5
17
23
22
13
14
12
+5.0V
1K
R2
1uF
1uF
GND
R3
10K
7
GND
Green D4
5
TPS2115
R16
400
+5.0V_MXP
J1
+5.0V
MISO 1
SCK 3
RESET 5
C8
Red D3
4
BYPASS
1K
R14
R1
10K
C6
0.1uF
H12
4
VCCIO
20
VCC
H3
H4
SW-TACT-PTS645SM43SMTR92
OSCO
11
3
2
9
10
6
4
3
19
+5.0V
CTS#
RTS#
DTR#
DSR#
DCD#
RI#
S1
28
OSCI
IO0/RX-I
IO1/TX-O
2
1
27
+5.0V
R7
R8
OUT
1
STAT
2
D0
3
D1
4
ILIM
MM5Z4V7
4.7V
TXD 1K
RXD 1K
C10
SHDN
U4
8
IN1
6
IN2
D1
1
TXD
5
RXD
2
5
VOUT
J4
1
2
U3
3
R9
10K
C11
1uF
10uF 16V
VIN
TC1014-3.3VCT713
J7
16
USBDM
15
USBDP
1
C12
VIN
0.1uF
4
IO0/RX-I
IO1/TX-O
G
5
8
7
J6
VIN
1
+5.0V
CON-USB-MINI-B
+3.3V
U5
J8
2
4
6
MOSI
CON-HDR-2X3-0100
OMIT
Yellow D2
+3.3V
2 AO0
4 AO1
6 AGND
8
10 UART.RX
12
14 UART.TX
16
18 DIO11
20
22 DIO12
24
26 DIO13
28
30
32 AD5/SCL
34 AD4/SDA
1
AI0 3
AI1 5
AI2 7
AI3 9
DIO0 11
DIO1 13
DIO2 15
DIO3 17
DIO4 19
DIO5 21
DIO6 23
DIO7 25
DIO8 27
DIO9 29
DIO10 31
33
1K
R10 IO1/TX-O
1K
R11 IO0/RX-I
+5.0V
+5.0V
R13
2.2K
R12
2.2K
CON-HDR-2X17-0100-THS-DBCOGJ254DS34
FT232RL
D5
Green
U1
RESET
Y1
29
PB0(PCINT0/CLKO/ICP1)
PB1(PCINT1/OC1A)
PB2(PCINT2/SS/OC1B)
PB3(PCINT3/OC2A/MOSI)
PB4(PCINT4/MISO)
7
PB6(PCINT6/XTAL1/TOSC1)
PB5(SCK/PCINT5)
8
PC6(RESET/PCINT14)
PB7(PCINT7/XTAL2/TOSC2)
ECS-160-20-3X-TR
+5.0V
C5
C4
20pF
20pF
4
VCC
6
VCC
L1
18
10uH
20
AREF
C1
C2
0.1uF
0.1uF
AVCC
AREF
C3
0.1uF
PC0(ADC0/PCINT8)
PC1(ADC1/PCINT9)
PC2(ADC2/PCINT10)
PC3(ADC3/PCINT11)
PC4(ADC4/SDA/PCINT12)
PC5(ADC5/SCL/PCINT13)
ADC6
ADC7
3
GND
5
GND
21
GND
PD0(RXD/PCINT16)
PD1(TXD/PCINT17)
PD2(INT0/PCINT18)
PD3(PCINT19/OC2B/INT1)
PD4(PCINT20/XCK/T0)
PD5(PCINT21/OC0B/T1)
PD6(PCINT22/OC0A/AIN0)
PD7(PCINT23/AIN1)
1K
R15
J2
12
13
14
15
16
17
23
24
25
26
27
28
19
22
IO8
IO9
SS
MOSI
MISO
SCK
AD0
AD1
AD2
AD3
AD4/SDA
AD5/SCL
AD6
AD7
1
2
3
4
5
6
AREF
J3
AD4/SDA
AD5/SCL
1
2
3
4
5
6
7
8
9
10
H1
H2
30
31
32
1
2
9
10
11
IO0/RX-I
IO1/TX-O
IO2
IO3
IO4
IO5
IO6
IO7
ATMEGA328
DESIGNER
REVISION
DATE
DAY
A
11/14/2014
1
2
3
4
5
6
7
8
J5
+5VLED
+5VLED
IO6
PROJECT
RIODuino
DESCRIPTION
Arduino Compatible MXP
Microcontroller Board
FILENAME
RIOduino-RevA.sch
WWW.REVROBOTICS.COM
PART NO.
RR-RIODUINO-BD-A
SHEET
1 OF 1
APPENDIX B DRAWING
Appendix B shows the component placement and dimensional drawing of the REV Robotics RIOduino.
REV-11-1104-UM-00
Copyright © 2014 REV Robotics, LLC
10
APPENDIX C BILL OF MATERIALS
Appendix C shows the bill of materials for the REV Robotics RIOduino.
RIOduino Bill of Materials
Item
Ref
Qty
Description
Mfg
Part Number
1
C1-3 C6 C9 C13
6
CAP CER 0.1UF 50V Y5V 0603
Samsung
CL10F104ZB8NNNC
2
C14
1
CAP ALUM 47UF 25V 20% SMD
Nichicon
UWT1E470MCL6GS
3
C4-5
2
CAP CER 20PF 50V 5% NP0 0603
Samsung
CL10C200JB8NCNC
4
C7 C12
2
CAP CER 10UF 16V Y5V 1206
Samsung
CL31F106ZOHNNNE
5
C8 C10-11
3
CAP CER 1UF 25V 10% X5R 0603
Murata
GRM188R61E105KA12D
6
D1
1
DIODE ZENER 4.7V 200MW SOD523F
Fairchild
MM5Z4V7
7
D2
1
LED CHIPLED 588NM YLW 0805 SMD
OSRAM
LY R976-PS-36
8
D3
1
LED CHIPLED 645NM RED DIFF 0805
OSRAM
LH R974-LP-1
9
D4-5
2
LED CHIPLED 570NM GREEN 0805 SMD
OSRAM
LG R971-KN-1
10
D6
1
DIODE SCHOTTKY 40V SOD323
MCC
SD101CWS-TP
11
F1
1
PTC RESTTBLE 0.50A 8V CHIP 1206
Bel
0ZCA0050FF2G
12
J1
1
2x17-Pin Female Box Header, 0.1", Keyed
Xiamen
DBCOGJ254DS34
13
J2
1
CONN FEMALE 10POS .1" SMD TIN
Sullins
PPTC101LFBN-RC
14
J3
1
CONN FEMALE 6POS .1" SMD TIN
Sullins
PPTC061LFBN-RC
15
J4-5
2
CONN FEMALE 8POS .1" SMD TIN
Sullins
PPTC081LFBN-RC
16
J6
1
CONN MINI USB RCPT RA TYPE B SMD
EDAC
690-005-299-043
17
J7
1
CONN TERM BLOCK 2.54MM 2POS PCB
On Shore
OSTVN02A150
18
L1
1
INDUCTOR MULTILAYER 10000NH 0603
Abracon
AIML-0603-100K-T
19
R1 R3 R9
3
RES 10K OHM 1/10W 5% 0603 SMD
Rohm
MCR03ERTJ103
21
R16
1
RES 470 OHM 1/10W 5% 0603 SMD
Rohm
MCR03ERTJ471
22
R2 R5 R7-8 R10-11 R14-15
8
RES 1.0K OHM 1/10W 5% 0603 SMD
Yageo
RC0603JR-071KL
23
R4
1
RES 3K OHM 1/10W 5% 0603 SMD
Rohm
MCR03ERTJ302
24
R6
1
RES 0.0 OHM 1/10W JUMP 0603
Samsung
RC1608J000CS
25
SW1
1
SWITCH TACTILE SPST-NO 0.05A 12V
C&K
PTS645SM43SMTR92 LFS
26
U1
1
IC MCU 8BIT 32KB FLASH 32TQFP
Atmel
ATMEGA328-AU
27
U2
1
IC REG LDO 5V 1A TO252-3
Diodes Inc.
AP1117ID50G-13
28
U3
1
IC USB FS SERIAL UART 28-SSOP
FTDI
FT232RL-REEL
TPS2115APWR
29
U4
1
C OR CTRLR SRC SELECT 8TSSOP
Texas
Instruments
30
U5
1
IC REG LDO 3.3V 50MA SOT23-5
Microchip
TC1014-3.3VCT713
31
Y1
1
CRYSTAL 16MHZ 20PF SMD
ECS
ECS-160-20-3X-TR
32
PCB1
1
RIOduino Rev. A PCB, 2-layer, 1 oz
REV
Robotics
RR-RIODUINO-BD-A
2
RES 2.2K OHM 1/10W 5% 0603 SMD
Rohm
MCR03ERTJ222
Do not populate list
20
R12-13
REV-11-1104-UM-00
Copyright © 2014 REV Robotics, LLC
11