User Tools

Site Tools


haas:fall2023:c4eng:projects:eap0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
haas:fall2023:c4eng:projects:eap0 [2023/10/23 13:34] – created wedgehaas:fall2023:c4eng:projects:eap0 [2023/10/23 14:27] (current) – external edit 127.0.0.1
Line 4: Line 4:
 </WRAP> </WRAP>
  
-======PROJECT: Press The Button (PTB2)======+======PROJECT: Explore A Project (EAP0)======
  
 =====OBJECTIVE===== =====OBJECTIVE=====
-Buttons and multi-colored LEDsoh my! +Explore some new component from the electronics kit: construct and test a circuitdemonstrate operations with software.
 =====PROCESS===== =====PROCESS=====
 Do note, the productive way to go about this project involves taking the following steps: Do note, the productive way to go about this project involves taking the following steps:
Line 20: Line 19:
  
 =====TASK===== =====TASK=====
-Taking our knowledge of LEDs and buttons:+This is part one of a sequencedecide on some project you’d like to pursue, this project lays the groundwork of understanding of individual components.
  
-  * wire up the multicolored LED (3 separate wiringPi GPIO pins) +  * Part 1: Select some component(s) to explore (circuit and program to demo) 
-    * we are going to use software PWM to control this, which will give us 100 levels of adjustment +  * Part 2: integrate together on some new circuit with other components (circuit and program to demo
-  * wire up 3 buttons to individual wiringPi GPIOs (one for red, one for green, one for blue+  * Part 3: Finished product (circuitprogram)
-  * wire up the rocker switch to its own wiringPi GPIO +
-    * one direction will indicate positive +
-    * the other direction will indicate negative +
-  * implement logic so thatwith the rocker switch in a given position, when pressing one of the color buttons, it adjusts that component of the multicolor LED in the appropriate direction (by a step of 10)+
-    * if a color value exceeds or dips below the allowed range, cycle it to the opposite end+
  
 +Peruse the [[https://lab46.g7n.org/downloads/tutorial.pdf|Freenove tutorial PDF]], generate ideas, don’t bite off more than you can chew (considering you have about 3 weeks).
 +
 +And document your selection, progress, and final results on the project documentation page!
 =====GRABIT===== =====GRABIT=====
-To assist with consistency across all implementations, data files for use with this project are available on lab46 via the **grabit** tool. Be sure to obtain it and ensure your implementation properly works with the provided data.+No grabit for this project: you should be able to reference previous project demos and create working programs from what you’ve used and what you’ve learned.
  
-<cli> +It would be highly recommended to create a **eap0/** directory in your repository, alongside your other projects, and perhaps to call your program **eap0.c** 
-lab46:~/src/SEMESTER/DESIG$ grabit DESIG PROJECT + 
-</cli>+The **Makefile** from other projects can be adapted to work with your current endeavour (would only need to change perhaps one line near the top of the **Makefile** in a text editor).
  
 =====EDIT===== =====EDIT=====
-You will want to go [[/notes/c4eng/fall2023/projects/ptb2|here]] to edit and fill in the various sections of the document: +You will want to go [[/notes/c4eng/fall2023/projects/eapX|here]] to edit and fill in the various sections of the document:
- +
-  * [[/notes/c4eng/fall2023/projects/ptb2|https://lab46.g7n.org/notes/c4eng/fall2023/projects/ptb2]] +
- +
-{{page>notes:c4eng:fall2023:projects:ptb2&nouser&nodate&nomdate}} +
- +
-=====STRATEGY===== +
-The general flow of the process (one way of going about it, anyway) can be described as follows: +
- +
-<code> +
-SET REDVAL, GRNVAL, BLUVAL TO ZERO +
-REPEAT INFINITELY: +
-    SHOULD THE INCREMENT POSITION ON THE SWITCH BE SET: +
-        SET DIRECTION TO POSITIVE ONE +
-    OTHERWISE: +
-        SET DIRECTION TO NEGATIVE ONE +
- +
-    SHOULD THE RED BUTTON BE PRESSED: +
-        ADJUST REDVAL BY (TEN TIMES DIRECTION) +
- +
-    SHOULD THE GREEN BUTTON BE PRESSED: +
-        ADJUST GRNVAL BY (TEN TIMES DIRECTION) +
- +
-    SHOULD THE BLUE BUTTON BE PRESSED: +
-        ADJUST BLUVAL BY (TEN TIMES DIRECTION)+
  
-    ACTIVATE MULTICOLOR LED TO RGB VALUES CURRENTLY SET +  * [[/notes/c4eng/fall2023/projects/eapX|https://lab46.g7n.org/notes/c4eng/fall2023/projects/eapX]]
-     +
-    DELAY AT LEAST FIFTY MILLISECONDS+
  
-COMMENT: INFINITE REPEAT BLOCK CONCLUDES +{{page>notes:c4eng:fall2023:projects:eapX&nouser&nodate&nomdate}}
-</code>+
  
 =====SUBMISSION===== =====SUBMISSION=====
Line 111: Line 81:
  
 <code> <code>
-65:ptb2:final tally of results (65/65+78:eap0:final tally of results (78/78
-*:ptb2:used grabit to obtain project by the Sunday prior to duedate [6/6] +*:eap0:clean compile of code, no compiler messages [16/16
-*:ptb2:clean compile, no compiler messages [7/7+*:eap0:picture of working test circuit posted to class discord [16/16
-*:ptb2:switch is read and adjusts color level direction [13/13+*:eap0:code adequately initializes and tests, operates component [16/16
-*:ptb2:each button adjusts its pertinent color level [13/13+*:eap0:code tracked in lab46 semester repo [14/14
-*:ptb2:multicolor LED displays current set RGB levels [13/13+*:eap0:project documentation page updated with pertinent information [16/16]
-*:ptb2:code tracked in lab46 semester repo [13/13]+
 </code> </code>
  
haas/fall2023/c4eng/projects/eap0.1698068093.txt.gz · Last modified: 2023/10/23 13:34 by wedge