User Tools

Site Tools


user:nbutler5:start

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
user:nbutler5:start [2023/12/14 02:59] nbutler5user:nbutler5:start [2023/12/15 03:27] (current) nbutler5
Line 198: Line 198:
 {{ :user:nbutler5:screenshot_2023-12-13_212207.png?nolink&600 |}} {{ :user:nbutler5:screenshot_2023-12-13_212207.png?nolink&600 |}}
 {{ :user:nbutler5:screenshot_2023-12-13_212339.png?nolink&600 |}} {{ :user:nbutler5:screenshot_2023-12-13_212339.png?nolink&600 |}}
 +{{ :user:nbutler5:screenshot_2023-12-13_221837.png?nolink&600 |}}
 +{{ :user:nbutler5:screenshot_2023-12-13_221925.png?nolink&600 |}}
 +{{ :user:nbutler5:screenshot_2023-12-13_222025.png?nolink&600 |}}
 +
 +
 +
 +The first PTB project was to turn on and off a passive speaker, and also attach an indicator to show that the speaker is no or off (other than the sound that the speaker would make). The specific indicator was LED lights. RED LED on meant the speaker is off, and a GREEN LED on meant the speaker is on. 
 +
 +The second PTB project was to use the 10 element LED bar to count to 10, but adding a light for each value so instead of saying 2 is a light turned on in the 2's place, have two lights on sequentially stating the value 2. 
 +
 +The third and final PTB project was to use the multi-colored LED light that can display red, green, and blue light. The objective was to use three buttons, and preferably "label" them with there respective color caps to indicate when the blue capped button is depressed the a blue light will appear from the multi-colored LED. 
  
 ------------------------------------------------------------- -------------------------------------------------------------
Line 205: Line 216:
 {{ :user:nbutler5:screenshot_2023-12-13_215739.png?nolink&600 |}} {{ :user:nbutler5:screenshot_2023-12-13_215739.png?nolink&600 |}}
 {{ :user:nbutler5:screenshot_2023-12-13_201806.png?nolink&600 |}} {{ :user:nbutler5:screenshot_2023-12-13_201806.png?nolink&600 |}}
 +
 +EAPX 1-3 was an evolution of a project starting with the base program and adding features, then finally optimizing the code. 
 +
 +For the first evolution of the project was to use the stock code from freenove electronics kit tutorial page for the LCD module. Once I copied the code then I just cleaned it up and commented it so that I could understand it as well as make it more readable. The readability aspect was critical, because the stock code was lazily written and whoever wrote it wasn't very disciplined about the readability. 
 +
 +The second evolution of the project was to add a feature to the stock code. I added a blinking LED for whenever the LCD module updates its information, the information that was being updated was the CPU temperature of the Pi. 
 +
 +The third evolution of the project was to optimize the code. I implemented a statement in the terminal readout when the code was running indicating CTRL-C should be used to stop the program, as well as using more rigorous if statements for the wiringPiSetup function, and then cleaned up the code even more. 
  
 ------------------------------------------------------------- -------------------------------------------------------------
Line 255: Line 274:
  
 ------------------------------------------------------------- -------------------------------------------------------------
 +
 +PCTURES FOR EoCE 0x3 
 +
 +{{ :user:nbutler5:image1_9_.jpeg?nolink&600 |}}
 +{{ :user:nbutler5:image0_10_.jpeg?nolink&600 |}}
 +
 +-------------------------------------------------------------
 +
  
  
user/nbutler5/start.1702522754.txt.gz · Last modified: 2023/12/14 02:59 by nbutler5