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
Next revisionBoth sides next revision
haas:fall2020:common:projects:led1 [2020/09/03 20:49] – [Objective] wedgehaas:fall2020:common:projects:led1 [2021/09/05 13:49] – [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 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 199: Line 203:
 With an expanded set of LED circuits, be sure to test the operation of each one. With an expanded set of LED circuits, be sure to test the operation of each one.
 =====Program===== =====Program=====
-It is your task to compilerunexpand uponand understand program to interface with a set of LEDs (light emitting diodes), a nice software-hardware connectionon your raspberry pi.+It is your task to write a C program that interfaces successfully with four independently connected LED circuitsarranged in some orientation to ascertain an order or positioningwhere your program will (in endless fashionor until being manually interrupted) display count (in binary) of values from 0 to 15 (then rollover, or reset)
 + 
 +If "1" means the LED in that position is ONand "0" means the LED in that position is OFFthen you want to write a program that performs the following progression (over and over again):
  
-The program files provided for this project arewhile 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 placesYou will want to make sure you UNDERSTAND what is going onSo be sure to ASK QUESTIONS, and do so EARLY enough so that you aren't in a mad dash to make the deadline.+<code> 
 +0 0 0 0 
 +0 0 0 1 
 +0 0 1 0 
 +0 0 1 1 
 +0 1 0 0 
 +0 1 0 1 
 +0 1 1 0 
 +0 1 1 1 
 +1 0 0 0 
 +1 0 0 1 
 +1 0 1 0 
 +1 0 1 1 
 +1 1 0 0 
 +1 1 0 1 
 +1 1 1 0 
 +1 1 1 1   <-- 15the maximum value to display 
 +0 0 0 0   <-- 0we "roll over" and start again 
 +0 0 0 1 
 +0 0 1 0 
 +... 
 +</code>
  
-In future projects you will start implementing more logic to attain further functionality.+The program files provided for this project are, while not complete, a good base to start from. Be sure to ASK QUESTIONS, and do so EARLY enough so that you aren't in a mad dash to make the deadline.
  
 ====Grabbing project resources (on lab46)==== ====Grabbing project resources (on lab46)====
haas/fall2020/common/projects/led1.txt · Last modified: 2021/09/05 14:01 by 127.0.0.1