User Tools

Site Tools


haas:fall2020:common:projects:led0

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:led0 [2020/08/26 10:33] wedgehaas:fall2020:common:projects:led0 [2020/09/18 09:28] (current) – [The Circuit to Construct] wedge
Line 3: Line 3:
  
 =====Objective===== =====Objective=====
-To create a program that generates a unique pattern of lit LEDs on your pi based on constraints+To successfully interface an LED to your pi and control it via software (commands, provided program)
  
 We also further utilize enforced time constraints, tying project credit to your starting on the project before the deadline (so be sure to plan accordingly!) We also further utilize enforced time constraints, tying project credit to your starting on the project before the deadline (so be sure to plan accordingly!)
  
-{{page>haas:fall2020:common:projects:abstract}}+=====Abstraction===== 
 +{{page>haas:fall2020:common:projects:abstraction&noheader}}
  
 =====Locational Awareness===== =====Locational Awareness=====
Line 32: Line 33:
  
 <cli> <cli>
-yourpi:~/src/c4eng/led0$ gpio readall+yourpi:~/src/desig/led0$ gpio readall
  +-----+-----+---------+------+---+---Pi 4B--+---+------+---------+-----+-----+  +-----+-----+---------+------+---+---Pi 4B--+---+------+---------+-----+-----+
  | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |  | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
Line 59: Line 60:
  | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |  | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
  +-----+-----+---------+------+---+---Pi 4B--+---+------+---------+-----+-----+  +-----+-----+---------+------+---+---Pi 4B--+---+------+---------+-----+-----+
-yourpi:~/src/c4eng/led0$ +yourpi:~/src/desig/led0$ 
 </cli> </cli>
  
Line 105: 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 142: 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"+Notice how the circuit runs from ground to LED to resistor to pin "GPIO17/Physical pin 11/Wiring Pi pin 0"
  
 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. 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.
Line 163: Line 168:
  
 <cli> <cli>
-yourpi:~/src/c4eng/led0$ gpio mode 0 OUT+yourpi:~/src/desig/led0$ gpio mode 0 OUT
 </cli> </cli>
  
Line 179: Line 184:
  
 <cli> <cli>
-yourpi:~/src/c4eng/led0$ gpio write 0 1      ## activate voltage on wiringpi pin 0 (turn on) +yourpi:~/src/desig/led0$ gpio write 0 1      ## activate voltage on wiringpi pin 0 (turn on) 
-yourpi:~/src/c4eng/led0$ gpio write 0 0      ## deactivate voltage on wiringpi pin 0 (turn off)+yourpi:~/src/desig/led0$ gpio write 0 0      ## deactivate voltage on wiringpi pin 0 (turn off)
 </cli> </cli>
  
Line 229: Line 234:
  
 <cli> <cli>
-yourpi:~/src/c4eng/led0$ gpio readall+yourpi:~/src/desig/led0$ gpio readall
 Oops - unable to determine board type... model: 17 Oops - unable to determine board type... model: 17
 </cli> </cli>
Line 236: Line 241:
  
 <cli> <cli>
-yourpi:~/src/c4eng/led0$ wget https://project-downloads.drogon.net/wiringpi-latest.deb+yourpi:~/src/desig/led0$ wget https://project-downloads.drogon.net/wiringpi-latest.deb
 ... ...
-yourpi:~/src/c4eng/led0$ sudo dpkg -i wiringpi-latest.deb+yourpi:~/src/desig/led0$ sudo dpkg -i wiringpi-latest.deb
 ... ...
-yourpi:~/src/c4eng/led0$ rm -f wiringpi-latest.deb+yourpi:~/src/desig/led0$ rm -f wiringpi-latest.deb
 </cli> </cli>
  
Line 270: Line 275:
  
 <cli> <cli>
-lab46:~/src/c4eng/led0$ submit c4eng led0 led0.c +lab46:~/src/desig/led0$ submit desig led0 led0.c 
-Submitting c4eng project "led0":+Submitting desig project "led0":
     -> led0.c(OK)     -> led0.c(OK)
  
haas/fall2020/common/projects/led0.1598452435.txt.gz · Last modified: 2020/08/26 10:33 by wedge