This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:c4eng:fall2022:projects:sss0 [2022/09/26 21:43] – wedge | notes:c4eng:fall2022:projects:sss0 [2022/10/04 13:34] (current) – [PARTS] lbrant2 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====BACKGROUND===== | =====BACKGROUND===== | ||
+ | |||
+ | For this project, we will be experimenting with sound to create a song. In this project we will learn what an active and passive buzzer is. An active buzzer has a built in oscillator to generate sound by itself with a DC (direct current) power supply. A passive buzzer does not have a built in oscillator to generate sound, instead it needs an AC (alternating current) audio signal to generate sound. In this project, we will be using a passive buzzer to create the sound that will be used to play the song we create. | ||
====ARRAYS==== | ====ARRAYS==== | ||
+ | |||
+ | Arrays are a type of variable that contain a number of elements within it. An array can hold any number of elements, be they a variable or a value, provided that these elements are all of the same data type and the number of elements is a predetermined finite value. | ||
+ | |||
+ | |||
+ | The first element in an array has an index of 0, the second element has an index of 1, and so on. Declaring an array is done similarly, yet slightly differently, | ||
+ | |||
+ | < | ||
+ | |||
+ | For this, " | ||
+ | |||
+ | |||
+ | For arrays, however, rather than declaring some sort of array data type, we instead declare the data type of the elements that will // | ||
+ | |||
+ | < | ||
+ | |||
+ | The name of this array is called " | ||
+ | |||
+ | |||
+ | Both calling and assigning the value of an element within an array after the array has been declared is once again done similarly, yet slightly differently, | ||
+ | |||
+ | < | ||
+ | |||
+ | This will assign the third value (index = 2) of the array " | ||
=====ELECTRONICS===== | =====ELECTRONICS===== | ||
=====PARTS===== | =====PARTS===== | ||
{{: | {{: | ||
- | ====PASSIVE BUZZER==== | + | A Passive buzzer is also known as Transducer, it uses AC power that is driven through an onboard circuit. The frequency is dependent on the input square wave signal, as it changes so does the frequency, hence offering more variance in its usage. |
+ | Transistors are electronic components that are used in circuits for either amplifying or switching electrical signals or power and allowing them to be used in a large array of electronic devices. A transistor has two PN diodes combined back to back. Also, it has three terminals named emitter, base, and collector. The fundamental idea and physical law behind a transistor are that it should let you control the flow of current over one channel by varying the intensity of a much smaller current flowing through another channel. | ||
=====CIRCUIT===== | =====CIRCUIT===== | ||
{{: | {{: |