COSC 4397/6397 - Cyber-physical Systems

Fall 2012

PGH 563

T 4-7pm

Instructors Omprakash Gnawali,
Larry Shi, and
Nikolaos V. Tsekos.

Homework - 2

Due: October 2, 2012

Arduino

In this assignment, we will learn how to use Arduino to build a simple application.

Part 1

Install and run the development tools. Program your board so it blinks the LED once a second. During grading, we will ask you to change the blinking frequency and you should change your code and install the new program and show that the blinking rate has changed.

Extra credit: Hook up two external push buttons (ask the TA if you want these push buttons) to increase or decrease the rate at which LED blinks, similar to what we did in HW1.

Part 2

Hook up a temperature sensor and a fan to Arduino so that the unit will turn the fan on when the temperature exceeds a threshold in its attempt to control the temperature in the environment. The threshold is absolute, i.e., we will ask you to set the threshold to be a specific temperature.

Resources

Submission

You will need to setup your Arduino board, laptop, and hardware kit for the TA to evaluate your HW.