This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
haas:fall2019:c4eng:projects [2019/09/19 12:27] – [colorled] wedge | haas:fall2019:c4eng:projects [2019/11/11 18:41] – [Projects] wedge | ||
---|---|---|---|
Line 18: | Line 18: | ||
| [[/ | | [[/ | ||
| [[/ | | [[/ | ||
- | | | + | | [[/ |
- | | | + | | [[/ |
- | | | + | | [[/ |
| [[/ | | [[/ | ||
| [[/ | | [[/ | ||
| [[/ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | [[/ | ||
+ | | @lightgreen: | ||
+ | | @lightgreen: | ||
+ | | @lightgreen: | ||
+ | | [[/ | ||
======Class Stats====== | ======Class Stats====== | ||
Line 33: | Line 54: | ||
* [[http:// | * [[http:// | ||
* [[/ | * [[/ | ||
- | ======Week | + | ======Week |
+ | |||
+ | * 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===== | =====colorled===== | ||
Line 43: | Line 70: | ||
{{: | {{: | ||
+ | ====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====== | ======Week 5====== | ||
=====potled===== | =====potled===== |