This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
haas:fall2024:c4eng:projects:stl2 [2024/09/30 15:18] – [STRATEGY] wedge | haas:fall2024:c4eng:projects:stl2 [2024/10/07 10:55] (current) – [Components and wiring] wedge | ||
---|---|---|---|
Line 4: | Line 4: | ||
</ | </ | ||
- | ======PROJECT: | + | ======PROJECT: |
=====OBJECTIVE===== | =====OBJECTIVE===== | ||
- | We continue | + | Time to explore optimizing |
=====PROCESS===== | =====PROCESS===== | ||
Line 20: | Line 20: | ||
=====TASK===== | =====TASK===== | ||
- | After exploring, assembling, and testing the intended circuit (4 LEDs), adapt the provided C code to use the bank of connected LEDs to count in binary from 0000 to 1111 (0 to 15). | + | After exploring, assembling, and testing the intended circuit (8+ LEDs), adapt the provided C code to use the bank of connected LEDs to count in binary from 00000000 |
- | Using the current value of count, your task is to make use of **if** | + | Using the current value of count, your task is to make use of ONE **if** |
- | It is your task to write a C program that interfaces successfully with four independently connected LED circuits, arranged in some orientation to ascertain an order or positioning, | + | It is your task to write a C program that interfaces successfully with the eight or more independently connected LED circuits, arranged in some orientation to ascertain an order or positioning, |
If " | If " | ||
< | < | ||
- | 0 0 0 0 | + | 0 0 0 0 0 0 0 0 |
- | 0 0 0 1 | + | 0 0 0 0 0 0 0 1 |
- | 0 0 1 0 | + | 0 0 0 0 0 0 1 0 |
- | 0 0 1 1 | + | 0 0 0 0 0 0 1 1 |
- | 0 1 0 0 | + | 0 0 0 0 0 1 0 0 |
- | 0 1 0 1 | + | 0 0 0 0 0 1 0 1 |
- | 0 1 1 0 | + | 0 0 0 0 0 1 1 0 |
- | 0 1 1 1 | + | 0 0 0 0 0 1 1 1 |
- | 1 0 0 0 | + | 0 0 0 0 1 0 0 0 |
- | 1 0 0 1 | + | . . . |
- | 1 0 1 0 | + | 1 1 1 1 1 0 0 1 |
- | 1 0 1 1 | + | 1 1 1 1 1 0 1 0 |
- | 1 1 0 0 | + | 1 1 1 1 1 0 1 1 |
- | 1 1 0 1 | + | 1 1 1 1 1 1 0 0 |
- | 1 1 1 0 | + | 1 1 1 1 1 1 0 1 |
- | 1 1 1 1 < | + | 1 1 1 1 1 1 1 0 |
- | 0 0 0 0 < | + | 1 1 1 1 1 1 1 1 < |
- | 0 0 0 1 | + | 0 0 0 0 0 0 0 0 < |
- | 0 0 1 0 | + | 0 0 0 0 0 0 0 1 |
- | ... | + | 0 0 0 0 0 0 1 0 |
+ | . . . | ||
</ | </ | ||
+ | |||
=====GRABIT===== | =====GRABIT===== | ||
To assist with consistency across all implementations, | To assist with consistency across all implementations, | ||
Line 56: | Line 58: | ||
lab46: | lab46: | ||
</ | </ | ||
+ | |||
+ | =====Components and wiring===== | ||
+ | |||
+ | An example of one way to wire up the LED bar: | ||
+ | |||
+ | {{: | ||
=====EDIT===== | =====EDIT===== | ||
Line 125: | Line 133: | ||
< | < | ||
- | 78:stl1:final tally of results (78/78) | + | 91:stl2:final tally of results (91/91) |
- | *:stl1:used grabit to obtain project by the Sunday prior to duedate [13/13] | + | *:stl2:used grabit to obtain project by the Sunday prior to duedate [13/13] |
- | *:stl1:clean compile, no compiler messages [13/13] | + | *:stl2:clean compile, no compiler messages [13/13] |
- | *:stl1:program conforms to project specifications [39/39] | + | *:stl2:program conforms to project specifications [13/13] |
- | *:stl1:code tracked in lab46 semester repo [13/13] | + | *:stl2:uses at least eight LEDs for the binary counter [13/13] |
+ | *: | ||
+ | *:stl2:code tracked in lab46 semester repo [13/13] | ||
</ | </ | ||