Difference between revisions of "CSC270 Lab 11 2016"

From dftwiki3
Jump to: navigation, search
(Report)
 
(One intermediate revision by the same user not shown)
Line 25: Line 25:
 
:* [https://www.arduino.cc/en/Tutorial/InputPullupSerial Input Pull-Up Experiment]
 
:* [https://www.arduino.cc/en/Tutorial/InputPullupSerial Input Pull-Up Experiment]
 
:* [https://www.arduino.cc/en/Tutorial/Fade LED-Fading Experiment with Pulse-Width Modulation]
 
:* [https://www.arduino.cc/en/Tutorial/Fade LED-Fading Experiment with Pulse-Width Modulation]
:* [https://www.arduino.cc/en/Tutorial/AnalogInput ADC Experiment with a Potentiometer]] (Use the potentiometer, not the photoresistor--although you are welcome to try that too!)
+
:* [https://www.arduino.cc/en/Tutorial/AnalogInput ADC Experiment with a Potentiometer] (Use the potentiometer, not the photoresistor--although you are welcome to try that too!)
 
<br />
 
<br />
 +
 
=Part 2=
 
=Part 2=
 
<br />
 
<br />
Line 32: Line 33:
 
<br />
 
<br />
 
<br />
 
<br />
=Report=
+
='''Optional''' Report=
 
<br />
 
<br />
 
Your lab report should contain:
 
Your lab report should contain:

Latest revision as of 13:07, 21 April 2016

--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.