Difference between revisions of "CSC270 Lab 11 2016"

From dftwiki3
Jump to: navigation, search
(Created page with "--~~~~ ----")
 
Line 1: Line 1:
 
--[[User:Thiebaut|D. Thiebaut]] ([[User talk:Thiebaut|talk]]) 08:37, 16 April 2016 (EDT)
 
--[[User:Thiebaut|D. Thiebaut]] ([[User talk:Thiebaut|talk]]) 08:37, 16 April 2016 (EDT)
 
----
 
----
 +
 +
<bluebox>
 +
</bluebox>
 +
 +
<br />
 +
=Part 1=
 +
<br />
 +
Refer to the following examples taken from the Arduino Tutorial pages, and redo each one of them. 
 +
<br />
 +
:* [https://www.arduino.cc/en/Tutorial/Blink Blink Experiment] (no extra hardware needed!)
 +
:* [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/AnalogInput ADC Experiment with a Potentiometer]] (Use the potentiometer, not the photoresistor--although you are welcome to try that too!)
 +
<br />
 +
=Part 2=
 +
<br />
 +
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.
 +
<br />
 +
=Report=
 +
<br />
 +
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.
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
[[Category:CSC270]][[Category:Labs]][[Category:Arduino]]

Revision as of 07:57, 16 April 2016

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



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.

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.