CPS 310 Lecture Notes - Ryerson University

118 views3 pages
Published on 8 Feb 2013
Course
Page:
of 3
1
RYERSON UNIVERSITY
DEPARTMENT OF COMPUTER SCIENCE
CPS310 – COMPUTER ORGANIZATION II
Winter 2013
Lab #2B
Introduction to Arduino
[2Marks]
SoftwareandinformationaboutArduinoUnocanbefoundat:www.arduino.cc
1. FamiliarizewithArduinosoftware.
2. ImplementcontrolofLEDlightsbywritingaprogramusingArduinosoftwarethat
executestheflowchartprovidedinFigure1.Yourprogramshouldcontrolatleast4
LEDswhereeachLEDcouldbesettoadifferent“Wait”timesuchitflashesatadifferent
rateascomparedtoremainingthreeLEDs.
Figure1:FlowchartforFlashingLEDs.
Demonstration:
Duringthelab:runtheprogramandprovideanswerstoTAs’questionsaboutyouralgorithm
andcode.
2

3
RYERSON UNIVERSITY
DEPARTMENT OF COMPUTER SCIENCE
CPS310 – COMPUTER ORGANIZATION II
Winter 2013
Lab #2B
Arithmetic manipulations, Loops, and Subroutines
First Name: __________________________ Last Name: _______________________
Student #: __________________________
Section #: ___________________________ Lab Room #: ______________________
Signature: __________________________ Date: ____________________________