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
Last revisionBoth sides next revision
haas:fall2020:common:projects:led0 [2020/08/26 14:33] wedgehaas:fall2020:common:projects:led0 [2020/09/18 13:26] – [(1) breadboard] 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 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.txt · Last modified: 2020/09/18 13:28 by wedge