NI myRIO
Project Essentials Guide
Ed Doering
Ed Doering
NI myRIO Project Essentials Guide
Ed Doering
Electrical and Computer Engineering Department
Rose-Hulman Institute of Technology
Document Version Date:
February 4, 2014
ii
This is a preliminary draft version printed on February 4, 2014. Download the up-to-date version at
http://www.ni.com/myrio/project-guide.
c2013 National Technology and Science Press.
All rights reserved. Neither this book, nor any portion of it, may be copied or reproduced in any form
or by any means without written permission of the publisher.
NTS Press respects the intellectual property of others, and we ask our readers to do the same. This book
is protected by copyright and other intellectual property laws. Where the software referred to in this book
may be used to reproduce software or other materials belonging to others, you should use such software
only to reproduce materials that you may reproduce in accordance with the terms of any applicable license
or other legal restriction.
LabVIEW and National Instruments are trademarks of National Instruments.
All other trademarks or product names are the property of their respective owners.
Additional Disclaimers: The reader assumes all risk of use of this book and of all information, theories,
and programs contained or described in it. This book may contain technical inaccuracies, typographical
errors, other errors and omissions, and out-of-date information. Neither the author nor the publisher
assumes any responsibility or liability for any errors or omissions of any kind, to update any information,
or for any infringement of any patent or other intellectual property right.
Neither the author nor the publisher makes any warranties of any kind, including without limitation
any warranty as to the sufficiency of the book or of any information, theories, or programs contained or
described in it, and any warranty that use of any information, theories, or programs contained or described
in the book will not infringe any patent or other intellectual property right. THIS BOOK IS PROVIDED “AS
IS.” ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,ANY
AND ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
AND NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS, ARE DISCLAIMED.
No right or license is granted by publisher or author under any patent or other intellectual property right,
expressly, or by implication or estoppel.
IN NO EVENT SHALL THE PUBLISHER OR THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
SPECIAL, INCIDENTAL, COVER, ECONOMIC, OR CONSEQUENTIAL DAMAGES ARISING OUT OF
THIS BOOK OR ANY INFORMATION, THEORIES, OR PROGRAMS CONTAINED OR DESCRIBED
IN IT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, AND EVEN IF CAUSED
OR CONTRIBUTED TO BY THE NEGLIGENCE OF THE PUBLISHER, THE AUTHOR, OR OTHERS.
Applicable law may not allow the exclusion or limitation of incidental or consequential damages, so the
above limitation or exclusion may not apply to you.
Contents
1
Introduction
I NI myRIO Starter Kit
2 Discrete LED
3 Seven-Segment LED Display
4 Pushbutton Switch
5 DIP Switches
6 Relay
7 Potentiometer
8 Thermistor
9 Photocell
10 Electret Microphone
11 Buzzer/Speaker
12 Motor
13 Rotary Encoder
14 Photointerrupter
15 Hall-Effect Sensor
1
3
5
9
13
17
23
29
33
37
41
45
49
53
57
61
iv
CONTENTS
16 Piezoelectric-Effect Sensor
II NI myRIO Mechatronics Kit
17 Servo
18 H-Bridge Motor Driver
19 IR Range Finder
20 Ultrasonic Range Finder
21 Accelerometer
22 Gyroscope
23 Compass
24 Ambient Light Sensor
III NI myRIO Embedded Systems Kit
25 Keypad
26 LCD Character Display – UART Interface
27 LCD Character Display – SPI Interface
28 LCD Character Display – I2C-bus Interface
29 LED Matrix
30 Serial EEPROM
31 Bluetooth Module
32 Digital Potentiometer
33 Temperature Sensor
34 MEMS Microphone
65
69
71
77
79
83
85
91
97
103
107
109
113
117
121
125
127
129
131
135
141
CONTENTS
IV Additional Devices
35 USB Flash Drive
36 Webcam
37 GPS Receiver
38 RFID Reader
V Appendices
A MXP and MSP Connector Diagrams
B NI myRIO Starter Kit Data Sheets
C Video Tutorial Links
v
147
149
153
155
161
167
169
171
173
vi
CONTENTS