CSC270 Lab 11 2016

From dftwiki3
Jump to: navigation, search

--D. Thiebaut (talk) 08:37, 16 April 2016 (EDT)



This lab is based on the Arduino (Diecimilia) and presents several simple experiments you will have to implement.


ArduinoDecimilia.jpg



Reference


The Arduino Web site is nicely organized with many pages of tutorials and examples. Do not hesitate to refer to them for additional information.

Part 1


Refer to the following examples taken from the Arduino Tutorial pages, and redo each one of them.


Part 2


Implement a Green/Yellow/Red traffic light sequencer with the Arduino. Use 3 LEDs with 3 pull-up resistors. Add a switch, and program the Arduino so that if the switch is in one position, the red LED blinks ON and OFF every second. If the switch is in the other position, the LEDs go green first, then yellow, then red, then green again, etc, each one staying on for 1 second.

Optional Report


Your lab report should contain:

  • A reference to the Web page containing a description of the project you built.
  • A picture of your project, including the Arduino.
  • The schematics of your project.
  • A listing of your C program (sketch)
  • Your observations (did it work, well, any surprises?)



Submit the pdf of your report on Moodle.