This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
haas:fall2020:common:projects:led1 [2020/09/03 20:49] – [Objective] wedge | haas:fall2020:common:projects:led1 [2021/09/05 13:49] – [Program] wedge | ||
---|---|---|---|
Line 106: | Line 106: | ||
{{ : | {{ : | ||
+ | |||
+ | Here's a good video overview of the functionality of a breadboard: | ||
+ | |||
+ | * https:// | ||
====(1) T-cobbler and data cable==== | ====(1) T-cobbler and data cable==== | ||
In your kit should be a T-shaped device (known as the " | In your kit should be a T-shaped device (known as the " | ||
Line 144: | Line 148: | ||
Take note of how everything is being plugged in, and what connection on the T-cobbler is being utilized. | Take note of how everything is being plugged in, and what connection on the T-cobbler is being utilized. | ||
- | Notice how the circuit runs from ground | + | Notice how the circuit runs from ground to LED to resistor |
Please keep in mind: | Please keep in mind: | ||
Line 199: | Line 203: | ||
With an expanded set of LED circuits, be sure to test the operation of each one. | With an expanded set of LED circuits, be sure to test the operation of each one. | ||
=====Program===== | =====Program===== | ||
- | It is your task to compile, run, expand upon, and understand | + | 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, where your program will (in endless fashion, or until being manually interrupted) display |
+ | |||
+ | If " | ||
- | The program files provided for this project are, while not complete, minimally functional. You merely have to get it on your pi, compile it, and run it, and expand it with the appropriate circuitry hooked up to the specified places. You will want to make sure you UNDERSTAND what is going on. So be sure to ASK QUESTIONS, and do so EARLY enough so that you aren't in a mad dash to make the deadline. | + | < |
+ | 0 0 0 0 | ||
+ | 0 0 0 1 | ||
+ | 0 0 1 0 | ||
+ | 0 0 1 1 | ||
+ | 0 1 0 0 | ||
+ | 0 1 0 1 | ||
+ | 0 1 1 0 | ||
+ | 0 1 1 1 | ||
+ | 1 0 0 0 | ||
+ | 1 0 0 1 | ||
+ | 1 0 1 0 | ||
+ | 1 0 1 1 | ||
+ | 1 1 0 0 | ||
+ | 1 1 0 1 | ||
+ | 1 1 1 0 | ||
+ | 1 1 1 1 < | ||
+ | 0 0 0 0 < | ||
+ | 0 0 0 1 | ||
+ | 0 0 1 0 | ||
+ | ... | ||
+ | </ | ||
- | In future projects you will start implementing more logic to attain further functionality. | + | The program files provided for this project are, while not complete, a good base to start from. Be sure to ASK QUESTIONS, and do so EARLY enough so that you aren't in a mad dash to make the deadline. |
====Grabbing project resources (on lab46)==== | ====Grabbing project resources (on lab46)==== |