creating an arduino project from scratch · creating an arduino project from scratch step 1: double...

9
Creating an Arduino Project from Scratch Step 1: Double click New Project to create a new Project Step 2: Click Save As.. and save the project - myFirstProject. ( click OK )

Upload: truongnhan

Post on 12-Feb-2019

228 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Creating an Arduino Project from Scratch · Creating an Arduino Project from Scratch Step 1: Double click New Project to create a new Project Step 2: Click Save As.. and save the

Creating an Arduino Project from Scratch

Step 1: Double click New Project to create a new Project

Step 2: Click Save As.. and save the project - myFirstProject. ( click OK )

Page 2: Creating an Arduino Project from Scratch · Creating an Arduino Project from Scratch Step 1: Double click New Project to create a new Project Step 2: Click Save As.. and save the

Step 3: Click in the Breadboard Title bar to select the breadboard view

Step 4: Open the Arduino Group and CLICK on the Arduino Board

NOTE: You click on the icon ie you release the mouse button.

Page 3: Creating an Arduino Project from Scratch · Creating an Arduino Project from Scratch Step 1: Double click New Project to create a new Project Step 2: Click Save As.. and save the

Step 5: Move the mouse onto the breadboard page and click to place the

Arduino Board.

Note: The Board will be attached to he mouse so move it into position and

click to place it.

Step 6: Right click on MyFirstProject Project icon ( not solution icon) and select

the Source Projects/ Add Arduino Source Project

Page 4: Creating an Arduino Project from Scratch · Creating an Arduino Project from Scratch Step 1: Double click New Project to create a new Project Step 2: Click Save As.. and save the

Step 7: Right Click the Source0.SRC project and select Add New Arduino

Source File

Step 8: Complete the dialog with the name of the sketch to use MyBlink for

example

Page 5: Creating an Arduino Project from Scratch · Creating an Arduino Project from Scratch Step 1: Double click New Project to create a new Project Step 2: Click Save As.. and save the

Step 9: Cut and Past some code into MyBlink Source. For example the Blink

source from the Arduino distribution

Note: Don’t delete the first line class.. which is used by the emulator

framework

Page 6: Creating an Arduino Project from Scratch · Creating an Arduino Project from Scratch Step 1: Double click New Project to create a new Project Step 2: Click Save As.. and save the

Step 10. Click on the Arduino Board and select the Source0 from the

properties

Step 11: Place a LED on pin 13 but clicking it from the UserIO group and

placing it on pin 13

Page 7: Creating an Arduino Project from Scratch · Creating an Arduino Project from Scratch Step 1: Double click New Project to create a new Project Step 2: Click Save As.. and save the

Step 12: Click Save All

Step 13 : Click on the Breadboard panel to highlight it because this is the

panel you want to run.

Step 14: Press Run

Page 8: Creating an Arduino Project from Scratch · Creating an Arduino Project from Scratch Step 1: Double click New Project to create a new Project Step 2: Click Save As.. and save the

Step 15: Should Switch to Runtime View and the LED Should start flashing

Step 16: Click stop to return to design view, change your code, model etc.

Page 9: Creating an Arduino Project from Scratch · Creating an Arduino Project from Scratch Step 1: Double click New Project to create a new Project Step 2: Click Save As.. and save the