Table of Contents

Corning Community College

ENGR1050 C for Engineers

PROJECT: Wire Up Something (WUS2)

OBJECTIVE

With your explorations from wus0 and wus1, implement the finished product, with full level of demonstrable functionality.

Be sure to contribute useful background and operational information to this project documentation, to serve as a reference for others. Not only because contributing to project documentation factors into your results, but to show off to the class what interesting projects you are pursuing.

OVERVIEW

Your task is to:

Example:

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

EDIT

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

WUS2

project

This a connected circuit of a joystick, Servo Motor and passive buzzer. The Servo and buzzer are both controlled by the joystick. So, if the joystick is moved down to the left (where Y is at its max and X is at its minimum) the servo will increase in angle until its maximum of 180 degrees which will then set off the buzzer if the joystick is continually held in this position. Then the opposite is true for when the joystick is moved to the top right (when X is max and Y is minimum). So, the servo instead decreases in angle and then the buzzer will be triggered if the joystick is held over to that section continually.

Passive Buzzer Music Player Wire up two or more buttons in addition to the passive buzzer. Create a playTone function with arguments for frequency in hertz and duration in milliseconds. Initialize variables with the names of musical notes in different octaves. FOr example:

     int C4 = 261;
     int Cs4 = 277;  // C#4 / Db4
     int Db4 = 277;  // Db4
     int D4 = 293;
     int Ds4 = 311;  // D#4 / Eb4

which corresponds to the C and D notes of the 4th musical octave, including all their sharp and flat variations. Create 2 arrays, one of which will include the notes of a musical piece, and the other will contain the duration of the musical notes. In 4:4 time signature, I set a quarter note at 250ms. a half note as 500ms, etc. Then I called the playTone functions with the arrays as the arguments, and told the pi to begin playing the function when the button is pressed. For the sake of simplicity, I also initialized variables for note duration, with Q as a quarter note, H has a half note, etc.

Project

This connected circuit contains a joystick, a active buzzer and a LED. The whole thing is ran by the joystick moving in the y direction. The joystick is a two axis analog device that allows for directional movement and a button press feature. When the joystick is moved in the Y direction, the active buzzer and LED light are both turned on but only as long as the joystick is being pushed/held in the y direction. The LED light is a simple output device that produces light when a electric current flows through it. While the active buzzer is a component that emits a sound when powered. unlike a passive buzzer, an active buzzer has an internal oscillator that makes it easier to control, meaning when a voltage is there it will generate sound. The goal and inspiration for this project was a hockey goal buzzer and light.

 

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:

169:wus2:final tally of results (169/169)
*:wus2:used grabit to obtain project by the Sunday prior to duedate [26/26]
*:wus2:picture of connected circuit to project page with description [26/26]
*:wus2:picture or video of functioning circuit run by program to discord [39/39]
*:wus2:clean compile, no compiler messages [26/26]
*:wus2:program conforms to project specifications, tests component [26/26]
*:wus2:code tracked in lab46 semester repo [26/26]

Pertaining to the collaborative authoring of project documentation

Additionally