Getting your Arduino to Work: Macintosh

Preview:

DESCRIPTION

Gerald Recktenwald Portland State University gerry@me.pdx.edu. living with the lab. Getting your Arduino to Work: Macintosh. Install Arduino programming environment Connect the Uno board to your Macintosh with a USB cable. No driver installation is necessary - PowerPoint PPT Presentation

Citation preview

Getting your Arduino to Work: Macintosh1. 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 Gerald RecktenwaldPortland State Universitygerry@me.pdx.edu

2

living with the lab

• download the installation file from the following website:

arduino.cc/en/Main/Software

• save the downloaded file to a folder on your computer

1. install Arduino IDEIDE = Integrated Development Environment

3

living with the lab

• navigate to the folder with the zip archive• double click on the arduino-1.0.1-macosx.zip file

4

living with the lab

• Drag the Arduino.app to the Applications Folder• Note that the “.app” extension may not be visible

2. Connect the Uno board to your Macintosh

living with the lab

Your computer will think you have connected a USB ModemIgnore this message – click Cancel

living with the lab

6

• double click this icon to run the Arduino software• right click the icon in your dock and select “Keep in Dock” for convenience

3. make sure everything works

living with the lab

7

The first time you launch the Arduino app, the operating system will ask if you really want to do this. Click Open

living with the lab

8

The first window to open is a blank “sketch”

living with the lab

9

Select “Arduino Uno” from the list of Boards

living with the lab

10

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

living with the lab

11

• click File > Examples > 01.Basics > Blink• this will bring up a simple program on your computer screen

Test your setup with the built-in Blink sketch

living with the lab

12

clicking “upload” icon sends program to your Arduino

living with the lab

13

• 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

Recommended