User Tools

Site Tools


haas:fall2020:common:projects:led1

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:led1 [2020/09/03 16:16] – [On your pi] wedgehaas:fall2020:common:projects:led1 [2021/09/05 10:01] (current) – external edit 127.0.0.1
Line 3: Line 3:
  
 =====Objective===== =====Objective=====
-To expand upon our previous efforts, through wiring up additional LEDs and generating a "binary counting" pattern of lit LEDs on your pi.+To expand upon our previous efforts, through wiring up additional LEDs and discovering what pattern they activate in, given the provided program.
  
 We also further utilize time constraints, tying project credit to your starting on the project before the deadline (so be sure to plan accordingly!) We also further utilize time constraints, tying project credit to your starting on the project before the deadline (so be sure to plan accordingly!)
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 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 to resistor to LED to pin "GPIO17/Physical pin 11/Wiring Pi pin 0"+Notice how the circuit runs from ground to LED to resistor to pin "GPIO17/Physical pin 11/Wiring Pi pin 0"
  
 Please keep in mind: Please keep in mind:
Line 155: Line 159:
 <WRAP info>Before you seek to actually test your circuit, please get verification to proceed from the class channel on discord by posting a clear picture of everything. There are MANY moving parts, and especially as we have our first exposure, it is best to insert as many quality control checks as possible to ensure the greatest chances of mistakes are mitigated.</WRAP> <WRAP info>Before you seek to actually test your circuit, please get verification to proceed from the class channel on discord by posting a clear picture of everything. There are MANY moving parts, and especially as we have our first exposure, it is best to insert as many quality control checks as possible to ensure the greatest chances of mistakes are mitigated.</WRAP>
  
 +<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.</WRAP>
 ====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 172: Line 177:
  
 <cli> <cli>
-yourpi:~/src/desig/led0$ gpio mode 0 OUT+yourpi:~/src/desig/led1$ gpio mode 0 OUT
 </cli> </cli>
  
Line 188: Line 193:
  
 <cli> <cli>
-yourpi:~/src/desig/led0$ gpio write 0 1      ## activate voltage on wiringpi pin 0 (turn on) +yourpi:~/src/desig/led1$ gpio write 0 1      ## activate voltage on wiringpi pin 0 (turn on) 
-yourpi:~/src/desig/led0$ gpio write 0 0      ## deactivate voltage on wiringpi pin 0 (turn off)+yourpi:~/src/desig/led1$ gpio write 0 0      ## deactivate voltage on wiringpi pin 0 (turn off)
 </cli> </cli>
  
Line 196: Line 201:
 If you get no activity out of the LED, try reversing it and try again. If you get no activity out of the LED, try reversing it and try again.
  
 +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 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.
Line 294: Line 300:
 <code> <code>
 39:led1:final tally of results (39/39) 39:led1:final tally of results (39/39)
-*:led1:post picture of unpowered layout1 to #desig and get approval [6/6] +*:led1:post picture of unpowered layout to #desig and get approval [6/6] 
-*:led1:post picture of unpowered layout2 to #desig and get approval [6/6] +*:led1:post picture to #desig by Sunday before deadline [6/6] 
-*:led1:post pictures to #desig by Sunday before deadline [4/4] +*:led1:post picture of powered LEDs in layout to #desig [6/6]  
-*:led1:post picture of powered LEDs in layout 1 to #desig [6/6]  +*:led1:grabit on the code on lab46 by Sunday before deadline [3/3
-*:led1:post picture of powered LEDs in layout to #desig [6/6]  +*:led1:led1.c code adequately expanded per project requirements [6/6] 
-*:led1:grabit the code on lab46 by Sunday before deadline [2/2+*:led1:led1.c comments describing what is happening [6/6
-*:led1:led1.c code adequately expanded for layouts 1 and 2 [5/5+*:led1:updated code is pushed to lab46 repository [6/6]
-*:led1:updated code is pushed to lab46 repository [4/4]+
 </code> </code>
  
Line 309: Line 314:
   * Solutions not utilizing indentation to promote scope and clarity will be subject to a 25% overall deduction   * Solutions not utilizing indentation to promote scope and clarity will be subject to a 25% overall deduction
   * Solutions not organized and easy to read are subject to a 25% overall deduction   * Solutions not organized and easy to read are subject to a 25% overall deduction
 +
haas/fall2020/common/projects/led1.1599164193.txt.gz · Last modified: 2020/09/03 16:16 by wedge