COSC 4397/6397 - Cyber-physical Systems

Fall 2012

PGH 563

T 4-7pm

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

Homework - 1

Due: September 18, 2012

TI LaunchPad

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

Part 1

Install and run development tools. Run LaunchPad and Capacitive BoosterPack "hello world". Once you are up and working with LaunchPad, we want you to write a simple "application". Program your LaunchPad so it displays red and green LED blinking one after another in this pattern: green on - green off - red on - red off - green on - green off - ... etc. Your program should also accept input from the push button on the board. If you press the button, the LEDs should blink faster. If you press the button a number of times, the LEDs will blink faster and faster and evently it will switch to the original frequency, thus cycling between a number of frequencies.

Extra credit: Use the capacitive touch boosterpack to control the rate at which the LEDs blink.

Part 2

Hook up a temperature sensor and a fan to the TI platform 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.

Resources

Submission

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