Corning Community College
ENGR1050 C for Engineers
To begin our exploration of interfacing electronics with our pi's, and writing a program that controls it, and collaboratively authoring and documenting the project and its specifications.
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.
lab46:~/src/SEMESTER/DESIG$ grabit DESIG PROJECT
Your task is write a program that drives four LEDs through a binary counting process, constantly counting from 0-15 (over and over), until interrupted.
Contributing to project documentation is also a core part of this project. If from reading the existing documentation or through your own exploring, you find something lacking, unclear, or outright missing, that is an opportunity to potentially contribute content.
You want the project documentation to provide you (as if coming in with no awareness of the project) with sufficient information so as to allow you to proceed. Asking questions on the discord is a great way of getting more information that you can use to add content.
You will want to go here to edit and fill in the various sections of the document:
SET COUNTER TO ZERO AS LONG AS PROGRAM CONTINUES TO RUN: SET VALUE TO CURRENT NUMBER STORED IN COUNTER SHOULD THE VALUE CONTAIN AN EIGHT: UPDATE VALUE TO ITSELF MINUS EIGHT ENABLE THE EIGHT'S PLACE LED OTHERWISE: DISABLE THE EIGHT'S PLACE LED SHOULD THE VALUE CONTAIN A FOUR: UPDATE VALUE TO ITSELF MINUS FOUR ENABLE THE FOUR'S PLACE LED OTHERWISE: DISABLE THE FOUR'S PLACE LED SHOULD THE VALUE CONTAIN A TWO: UPDATE VALUE TO ITSELF MINUS TWO ENABLE THE TWO'S PLACE LED OTHERWISE: DISABLE THE TWO'S PLACE LED SHOULD THE VALUE CONTAIN A ONE: UPDATE VALUE TO ITSELF MINUS ONE ENABLE THE ONE'S PLACE LED OTHERWISE: DISABLE THE ONE'S PLACE LED UPDATE COUNTER TO BE ONE GREATER THAN ITS CURRENT STATE SHOULD THE COUNTER EXCEED FIFTEEN: RESET COUNTER TO ZERO
To be successful in this project, the following criteria (or their equivalent) must be met:
Let's say you have completed work on the project, and are ready to submit, you would do the following (assuming you have a program called uom0.c):
lab46:~/src/SEMESTER/DESIG/PROJECT$ make submit
You should get some sort of confirmation indicating successful submission if all went according to plan. If not, check for typos and or locational mismatches.
I'll be evaluating the project based on the following criteria:
52:vcc0:final tally of results (52/52) *:vcc0:used grabit to obtain project by the Sunday prior to duedate [6/6] *:vcc0:picture of unpowered breadboard to #desig for approval [7/7] *:vcc0:picture of powered breadboard to #desig showing results [6/6] *:vcc0:clean compile, no compiler messages [7/7] *:vcc0:program conforms to project specifications [20/20] *:vcc0:code tracked in lab46 semester repo [6/6]