living with the lab Gerald Recktenwald Portland State University [email protected] Getting your Arduino to Work: Macintosh 1.

Download Report

Transcript living with the lab Gerald Recktenwald Portland State University [email protected] Getting your Arduino to Work: Macintosh 1.

living with the lab
Gerald Recktenwald
Portland State University
[email protected]
Getting your Arduino to Work: Macintosh
1. Install Arduino programming environment
2. Connect the Uno board to your Macintosh with a
USB cable. No driver installation is necessary
3. Make sure you can download a program (a “sketch”)
from your computer to your Arduino
living with the lab
1. install Arduino IDE
IDE = Integrated Development Environment
• download the installation file from the
following website:
arduino.cc/en/Main/Software
• save the downloaded file to a folder on your
computer
2
living with the lab
• navigate to the folder with the zip archive
• double click on the arduino-1.0.1-macosx.zip file
3
living with the lab
• Drag the Arduino.app to the Applications Folder
• Note that the “.app” extension may not be visible
4
living with the lab
2. Connect the Uno board to your Macintosh
Your computer will think you have connected a USB Modem
Ignore this message – click Cancel
living with the lab
3. make sure everything works
• double click this icon to run the Arduino software
• right click the icon in your dock and select “Keep in Dock” for convenience
6
living with the lab
The first time you launch the Arduino app,
the operating system will ask if you really
want to do this. Click Open
7
living with the lab
The first window to open is a blank “sketch”
8
living with the lab
Select “Arduino Uno” from the list of Boards
9
living with the lab
Select the serial port
• Select /dev/tty.usbmodemXXXXXX where XXXXXX will
change when you connect a new board
• After connecting an Arduino to your Mac with a USB cable,
always verify that a serial port is selected
10
living with the lab
Test your setup with the built-in Blink sketch
• click File > Examples > 01.Basics > Blink
• this will bring up a simple program on your computer screen
11
living with the lab
clicking “upload” icon sends program to your Arduino
12
living with the lab
• the “TX” and “RX” LEDs will flash as the
program is downloaded to the Arduino
• you will see the LED labeled “L” start blinking
• this means that it works!!!
• also watch your computer screen to see the
status
• if there’s a problem, it will show up here
13