Difference between revisions of "CSC270 Lab 11 2016"
(Created page with "--~~~~ ----") |
|||
(6 intermediate revisions by the same user not shown) | |||
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) | ||
---- | ---- | ||
+ | <br /> | ||
+ | {| | ||
+ | | | ||
+ | <bluebox> | ||
+ | This lab is based on the Arduino (Diecimilia) and presents several simple experiments you will have to implement. | ||
+ | </bluebox> | ||
+ | <br /> | ||
+ | __TOC__ | ||
+ | | | ||
+ | [[Image:ArduinoDecimilia.jpg|400px]] | ||
+ | |} | ||
+ | <br /> | ||
+ | <br /> | ||
+ | =Reference= | ||
+ | <br /> | ||
+ | The [https://www.arduino.cc/ Arduino Web site] is nicely organized with many pages of tutorials and examples. Do not hesitate to refer to them for additional information. | ||
+ | <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 /> | ||
+ | <br /> | ||
+ | ='''Optional''' 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?) | ||
+ | <br /> | ||
+ | <br /> | ||
+ | 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]] |
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.
Contents |
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.
- Blink Experiment (no extra hardware needed!)
- Input Pull-Up Experiment
- LED-Fading Experiment with Pulse-Width Modulation
- ADC Experiment with a Potentiometer (Use the potentiometer, not the photoresistor--although you are welcome to try that too!)
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.