User Tools

Site Tools


haas:fall2020:common:projects:led2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
haas:fall2020:common:projects:led2 [2020/09/03 17:02] – [The Circuit to Construct] wedgehaas:fall2020:common:projects:led2 [2020/09/20 16:53] (current) – [Program] wedge
Line 106: Line 106:
  
 {{ :haas:fall2020:common:projects:breadboardlogic.png?400 |}} {{ :haas:fall2020:common:projects:breadboardlogic.png?400 |}}
 +
 +Here's a good video overview of the functionality of a breadboard:
 +
 +  * https://www.youtube.com/watch?v=6WReFkfrUIk
 ====(1) T-cobbler and data cable==== ====(1) T-cobbler and data cable====
 In your kit should be a T-shaped device (known as the "T-cobbler" with some aspect of pin names silkscreened on it, and a 40-pin ribbon cable). Colors may vary, but essentially it looks like this: In your kit should be a T-shaped device (known as the "T-cobbler" with some aspect of pin names silkscreened on it, and a 40-pin ribbon cable). Colors may vary, but essentially it looks like this:
Line 143: Line 147:
  
 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 "GPIO17/Physical pin 11/Wiring Pi pin 0" 
  
 Please keep in mind: Please keep in mind:
Line 200: 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 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 QUESTIONSand do so EARLY enough so that you aren't in a mad dash to make the deadline.+You aim for this project is to write a program that will get all 10 LEDs in the LED bar to "swoosh" from left to right, that is:
  
-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
  
 +{{ :haas:fall2020:common:projects:swoosh.gif |}}
 ====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 295: Line 301:
 <code> <code>
 52:led2:final tally of results (52/52) 52:led2:final tally of results (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]  
-*:led2:grabit on the code on lab46 by Sunday before deadline [3/3+*:led2:grabit on the code on lab46 by Sunday before deadline [4/4
-*:led2:led2.c code adequately expanded per project requirements [6/6+*:led2:led2.c code adequately modified per project requirements [12/12
-*:led2:led2.c comments describing what is happening [6/6+*:led2:led2.c comments describing what is happening [8/8
-*:led2:updated code is pushed to lab46 repository [6/6]+*:led2:updated code is pushed to lab46 repository [8/8]
 </code> </code>
  
haas/fall2020/common/projects/led2.1599166963.txt.gz · Last modified: 2020/09/03 17:02 by wedge