haas:fall2019:c4eng:projects
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
haas:fall2019:c4eng:projects [2019/09/12 12:05] – [potled] wedge | haas:fall2019:c4eng:projects [2019/11/16 09:56] (current) – [Projects] wedge | ||
---|---|---|---|
Line 15: | Line 15: | ||
| [[/ | | [[/ | ||
| [[/ | | [[/ | ||
- | | | + | | [[/ |
- | | | + | | [[/ |
- | | | + | | [[/ |
| [[/ | | [[/ | ||
| [[/ | | [[/ | ||
| [[/ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | @lightgreen: | ||
======Class Stats====== | ======Class Stats====== | ||
Line 29: | Line 53: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[/ | ||
+ | ======Week 7====== | ||
- | ======Week 5====== | + | * continued exposure utilizing loops in problem solving |
+ | * possible integration of arrays to further streamline process | ||
+ | * binary counter in incrementing and decrementing fashion | ||
+ | ======Week 6====== | ||
+ | |||
+ | =====colorled===== | ||
+ | * multi-coloured (RGB) LED, using PWM to set different intensities of Red, Green, and Blue (100 different levels of adjustment for each) | ||
+ | * In the **examples** subdirectory, | ||
+ | |||
+ | Here's a diagram of the circuit to assemble: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ====Lab Project==== | ||
+ | Once you have the circuit wired up and verify operation with the sample program, I'd like you to write a new program that: | ||
+ | |||
+ | * starts at " | ||
+ | * going from nothing and gradually (10 steps) to full intensity: | ||
+ | * nothing to red, then reset, and go: | ||
+ | * nothing to green, then reset, and go: | ||
+ | * nothing to blue, then reset, and go: | ||
+ | * nothing to purple, then reset, and go: | ||
+ | * nothing to red+green, then reset, and go: | ||
+ | * nothing to green+blue, then reset, and go: | ||
+ | * nothing to white (red+green+blue). | ||
+ | |||
+ | ===Hints=== | ||
+ | * Figure out how to set the level of ONE color to its maximum value | ||
+ | * How would you adjust these across a given range (0-99) | ||
+ | * One thing at a time: worry about JUST red first, then JUST green. | ||
+ | |||
+ | ===Copying sample file from lab46 to your pi=== | ||
+ | <cli> | ||
+ | lab46:~$ cd / | ||
+ | lab46:/ | ||
+ | colorled.c | ||
+ | lab46:/ | ||
+ | </ | ||
+ | |||
+ | On the scp line, do NOT forget the trailing colon. It is important. | ||
+ | |||
+ | ===Copying a file from the pi to lab46=== | ||
+ | <cli> | ||
+ | pi@raspberrypi: | ||
+ | program.c | ||
+ | pi@raspberrypi: | ||
+ | </ | ||
+ | |||
+ | ===Submit=== | ||
+ | When done, submit your source code on lab46 for the project **epf0** | ||
+ | ======Week 5====== | ||
=====potled===== | =====potled===== | ||
* potentiometer + LED | * potentiometer + LED | ||
* potled.c now placed in **examples** subdirectory. It has been enhanced with further comments. | * potled.c now placed in **examples** subdirectory. It has been enhanced with further comments. | ||
* NOTE: In order to run this program, we will need to enable I2C support on the pi (a one-time thing, then we're set). | * NOTE: In order to run this program, we will need to enable I2C support on the pi (a one-time thing, then we're set). | ||
+ | |||
+ | Here's a diagram of the parts needed and circuit to assemble: | ||
{{: | {{: | ||
+ | |||
+ | =====buzzer===== | ||
+ | * button + buzzer | ||
+ | * buzzer.c now placed in **examples** subdirectory. It has been enhanced with further comments. | ||
+ | * NOTE: This program is functionally similar to our buttonled.c program we worked on earlier. | ||
+ | |||
+ | Here's a diagram of the parts needed and circuit to assemble: | ||
+ | |||
+ | {{: | ||
======Week 4====== | ======Week 4====== | ||
+ | |||
+ | =====buttonled===== | ||
* The " | * The " | ||
* buttonled.c - basic program; press button to light up LED | * buttonled.c - basic program; press button to light up LED | ||
* buttonled2.c - LED will appear to " | * buttonled2.c - LED will appear to " | ||
* Please make sure you are reading through the chapter on if statements/ | * Please make sure you are reading through the chapter on if statements/ | ||
+ | |||
+ | Here's a diagram of the parts needed and circuit to assemble: | ||
+ | |||
+ | {{: | ||
+ | |||
======Week 3====== | ======Week 3====== | ||
* I have put together a [[/ | * I have put together a [[/ |
haas/fall2019/c4eng/projects.txt · Last modified: 2019/11/16 09:56 by wedge