This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
haas:fall2020:common:projects:led2 [2020/09/03 20:59] – [(4) red LEDs] wedge | haas:fall2020:common:projects:led2 [2020/09/18 13:29] – [The Circuit to Construct] 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 123: | Line 127: | ||
{{ : | {{ : | ||
- | ====(4) 220 Ohm resistors==== | + | ====(10) 220 Ohm resistors==== |
- | Your kit should come with 3-4 packs of differently rated resistors (220, 1K, and 10K). You want FOUR of the lowest rated ones, the 220 ohm variety. You should see the value marked on the paper strip holding the legs of the resistors. | + | Your kit should come with 3-4 packs of differently rated resistors (220, 1K, and 10K). You want TEN of the lowest rated ones, the 220 ohm variety. One for each LED. You should see the value marked on the paper strip holding the legs of the resistors. |
{{ : | {{ : | ||
Line 138: | Line 142: | ||
=====The Circuit to Construct===== | =====The Circuit to Construct===== | ||
- | With those components, you will want to place them onto your breadboard, | + | With those components, you will want to place them onto your breadboard, |
- | {{ : | + | {{ : |
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 to resistor to LED to pin " | ||
Please keep in mind: | Please keep in mind: | ||
Line 153: | Line 155: | ||
* take note of which GPIO pin you are using, so can update the led2.c program | * take note of which GPIO pin you are using, so can update the led2.c program | ||
- | <WRAP info> | + | <WRAP info> |
- | <WRAP info>It may be clarifying if you arranged your four LEDs in a row, from right to left, in order of your GPIO pins you've plugged into.</ | ||
====Testing connectivity==== | ====Testing connectivity==== | ||
To verify whether everything is hooked up correctly (including the correct positioning of the LED), please try the following: | To verify whether everything is hooked up correctly (including the correct positioning of the LED), please try the following: | ||
Line 201: | Line 202: | ||
It is your task to compile, run, expand upon, and understand a program to interface with a set of LEDs (light emitting diodes), a nice software-hardware connection, on your raspberry pi. | It is your task to compile, run, expand upon, and understand a program to interface with a set of LEDs (light emitting diodes), a nice software-hardware connection, on your raspberry pi. | ||
- | The program files provided | + | You aim for this project |
- | + | ||
- | In future projects you will start implementing more logic to attain further functionality. | + | |
+ | * initially start off | ||
+ | * one at a time (on a constant update delay) activate each LED, from left to right, until each LED is lit up | ||
+ | * then, one at a time (on the same constant update delay), deactivate each LED, from left to right, until each LED is no longer lit | ||
+ | * the program can continually perform this swooshing pattern, but it should do the whole pattern at least once | ||
====Grabbing project resources (on lab46)==== | ====Grabbing project resources (on lab46)==== | ||
I have prepared a **grabit** for resources related to this project. To obtain: | I have prepared a **grabit** for resources related to this project. To obtain: | ||
Line 296: | Line 299: | ||
< | < | ||
52: | 52: | ||
- | *:led2:post picture of unpowered layout to #desig and get approval [6/6] | + | *:led2:post picture of unpowered layout to #desig and get approval [8/8] |
- | *:led2:post picture to #desig by Sunday before deadline [6/6] | + | *:led2:post picture to #desig by Sunday before deadline [4/4] |
- | *:led2:post picture of powered LEDs in layout to #desig [6/6] | + | *:led2:post picture of powered LEDs in layout to #desig [8/8] |
- | *: | + | *: |
- | *: | + | *: |
- | *: | + | *: |
- | *: | + | *: |
</ | </ | ||