Combination Circuit for Digital and Analog
- Understand the Analog Signals and use your knowledge to program your Arduino and let it play music
- Get known of the Seven-segment display and use your Arduino Board together with the Shift Register to control the number.
- In the Second Week you will be asked to implement a circuit to combine these first two parts together to build a alarm clock.
In digital circuits, a shift register is a cascade of flip flops, sharing the same clock, in which the output of each flip-flop is connected to the “data” input of the next flip-flop in the chain, resulting in a circuit that shifts by one position the “bit array” stored in it, shifting in the data present at its input and shifting out the last bit in the array, at each transition of the clock input.
What we are using is 74HC595N, it has 8-bit serial input and 8-bit serial or parallel output. Below is its function diagram and Pin Diagram:
For more detailed information about thie shift register you can refer to this page: 74hc_hct595.pdf.
A seven-segment display, or seven-segment indicator, is a form of electronic display device for displaying decimal numerals that is an alternative to the more complex dotmatrix displays. Seven-segment displays are widely used in digital clocks, electronic meters, and other electronic devices for displaying numerical information. Above is how it looks like.
What we will use is a 4 digits Seven segment Display, below is the pin and circuit diagram:
Read the circuit 5 (page 16) on this Document. You will use a similar circuit to turn on the segments of the 7-segment display but instead of using LEDs you will use the segments of the display. Also remember that the 7-segment display is “common anode”, so it will need a 0 to turn on one segment instead of a 1. You will use the 74HC595 Shift Register to provide more outputs to the Arduino. Intially you can only wire DIG1 by connecting pin 1 to +5V.
Here is the datasheet:http://www.sparkfun.com/datasheets/Components/LED/7-Segment/YSD-439AR6B-35.pdf
An audio power amplifier is an electronic amplifier that amplifies low-power audio signals (signals composed primarily of frequencies between 20 – 20 000 Hz, the human range of hearing) to a level suitable for driving loudspeakers and is the final stage in a typical audio playback chain.
While the input signal to an audio power amplifier may measure only a few hundred microwatts, its output may be tens, hundreds, or thousands of watts.
Also we will give the internal and the pin Diagram below to show you how you can connect this Audio amplifier.
To make the LM386 a more versatile amplifier, two pins (1 and 8) are provided for gain control. With pins 1 and 8 open the 1.35 kΩ resistor sets the gain at 20 (26 dB). If a capacitor is put from pin 1 to 8, bypassing the 1.35 kΩ resistor, the gain will go up to 200 (46 dB). If a resistor is placed in series with the capacitor, the gain can be set to any value from 20 to 200. Gain control can also be done by capacitively coupling a resistor (or FET) from pin 1 to ground.
You can find more specific details about the LM386 Audio Amplifier in this file: lm386.pdf
For more detail: Combination Circuit for Digital and Analog