Table of Contents

Corning Community College

ENGR1050 C for Engineers

PROJECT: Simple Simon Says (SSS1)

OBJECTIVE

Create circuitry and code software to eventually craft a simple version of the classic “Simon” game of recalled repetition.

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.

lab46:~/src/SEMESTER/DESIG$ grabit DESIG PROJECT

OVERVIEW

Your task is further expand upon your buzzer circuit by:

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.

EDIT

You will want to go here to edit and fill in the various sections of the document:

WIRINGPI REVIEW

Remember to set pins used to output mode.

pinMode (pin[X], OUTPUT);

pin[X] is assuming you have a pin array set up.

PINMODE

DIGITALWRITE

From the function name we can assume that it writes some value, and this value will be in the form of 0 and 1. In other words we can say that this function is mainly used to control any device attached to the Pi by assigning value to the pin to which that respective device is attached. For using this function, we have to follow the syntax given below:

digitalWrite(pin, value); To use the digitalWrite() function we need to give it two arguments that are:

Pin: The digital pin number on which the device is connected

Value: the value that is to be assigned to the pin either HIGH or LOW

DIGITALREAD

digitalRead Reads the value from a specified digital pin, either HIGH or LOW. It's syntax reads “ digitalRead(pin) ”.

DELAY

NOTES/FREQUENCIES

In this project and in the last project we have had to use the frequencies of different notes to put together a song. A frequency is what determines the pitch of a sound. A note is used to represent the pitch and duration of a sound in musical notation. From the notes that are found on pieces of sheet music they need to be converted to a certain frequency to match the original sound of the song. This can be solved with note frequency charts, showing the differentiation between octaves.

 

SUBMISSION

To be successful in this project, the following criteria (or their equivalent) must be met:

Submit Tool Usage

Let's say you have completed work on the project, and are ready to submit, you would do the following:

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.

RUBRIC

I'll be evaluating the project based on the following criteria:

91:sss1:final tally of results (91/91)
*:sss0:used grabit to obtain project by the Sunday prior to duedate [13/13]
*:sss1:picture of unpowered circuit to #desig for approval [13/13]
*:sss1:show me or video of circuit to #desig showing results [13/13]
*:sss1:clean compile, no compiler messages [7/7]
*:sss1:program conforms to project specifications [32/32]
*:sss1:code tracked in lab46 semester repo [13/13]

Pertaining to the collaborative authoring of project documentation

Additionally