5/28/2017 Installation | Software Guide | 6.302.
0x Courseware | edX
2012-2017 edX Inc. All rights reserved except where noted. EdX, Open edX and the edX and Open EdX logos
are registered trademarks or trademarks of edX Inc. | ICP17044299-2
[Link] 3/3
5/28/2017 Installation | Software Guide | 6.302.0x Courseware | edX
Depending on what your background is, you can either just head on over to the Arduino
Download Site and make sure the Arduino you're using can successfully run something like the
classic "[Link]" sketch (this will just ensure the entire Arduino/code workflow is functioning).
If the above paragraph didn't make a ton of sense, and/or you'd like more details with the
install, Arduino has some nice walkthroughs for each of the big operating system families:
Windows
Mac OS X
Linux
New to Arduino?
If you're new to Arduino, don't worry! We don't really require any actual coding of the Arduino
in this course since we'll provide you the code files that do what we need to do in lab. All we
really need for you to do is to be able to upload an Arduino script (.ino file) onto the Arduino
using the IDE. Following the step-by-steps above should get you up through this point. If you
run into problems, check out the Arduino Troubleshooting Page.
Of course, you're totally free to look and experiment with the Arduino. Arduinos are cool. Just
remember if you change the provided .ino code, it may not work so be prepared to re-
download a working copy if needed!
Teensyduino Software Add-On
If you are using a Teensy, once you've got your Arduino IDE working, go to the PJRC software
site at this location and follow the instructions for adding their Teensy add-on software. This
stu has been shown to work on all OS's!
Installing the test code
Depending on your microcontroller, upload the appropriate test file (arduino_test for the
Arduino and/or teensy_test for the Teensy 3.2). This code won't do anything on its own, but is
pre-configured to interact with the Python and web-GUI which you'll install (next!!)
All Rights Reserved
[Link] 2/3
5/28/2017 Installation | Software Guide | 6.302.0x Courseware | edX
MITx: 6.302.0x Introduction to Control System Design A First Help
Look
Outline > Preliminaries - Hardware And Software For Labs > Software Guide > Installation
Installation
Bookmark this page
Getting Started
The code distribution we'll use for this software introduction is found here. This is the base file
for testing and setting up. While the Python and html/javascript files are the same for all labs,
we use dierent microcontroller code sets for each lab so you will need to download them for
each lab.
Download the .zip file, extract it, and look inside. You'll see the following things:
An empty directory called csv_files. Don't worry about this thing for right now.
The file [Link]. This is the Python script you will run on your machine for establishing
communiation with your Arduino and browser GUI (Graphical User Interface)
The file [Link]. This is a webpage that acts as your GUI.
The file [Link]. This is a file that lists libraries needed in addition to normal Python. Don't
worry about it right now, but we'll use it during install.
The directory static. This has the javascript/css libraries your browser GUI uses. We use local
copies of these libraries so you can run this software when not connected to the internet. Just
leave this as it is.
Two directories called teensy_test and arduino_test. These contain simple communication
check microcontroller code files for both the Arduino Uno and the Teensy 3.2. They are good
"sanity check" files.
Ok onto the install. We'll first start with the Arduino Environment.
Arduino Install
In the standard way of taking this course, you'll be using an Arduino to directly control the
systems we're analyzing. As a result, you will need a functioning Arduino environment on your
machine both to upload code and to let your computer have serial access to it. We'll point you
to get the Arduino running (if you don't have that already). While Genuino is usually used to
refer to outside USA Arduinos, we'll just refer to everything as the "Arduino" in this class.
[Link] 1/3