Preview

Constructing An Audio Player

Powerful Essays
Open Document
Open Document
3097 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Constructing An Audio Player
Using Pulse-Width Modulation and Audio Sampling Techniques to
Construct an Audio Player with a Field-Programmable Gate Array John C. Greavu III
University of Minnesota, School of Physics and Astronomy

I. INTRODUCTION
8-bit and 16-bit audio players were built by employing pulse-width modulation (PWM) techniques with a field-programmable gate array (FPGA). Basic PWM and audio playing methods are explained in detail. A sigma-delta modulation module, specifically, was programmed into a Basys FPGA in Verilog to produce the audio signal. In addition, several other Verilog modules were needed to complete the player: a 25 MHz to 44.1 kHz clock converter, address counter, and byte readers. Documented code for all the modules is provided. The techniques explored here are practical, efficient, and therefore, popular methods for audio sampling and listening as well as other digital to analog applications.

II. THEORY & SETUP
To first get a better understanding of pulse-width modulation, consider the schematic of the LED dimming circuit shown in Figure 1.

Figure 1: A light dimmer. A switch controls if the LED is on or off. The LED is on when it’s connected to the battery (switch upwards).

The LED can only be completely on or completely off; its instantaneous brightness is never actually between the two. However, if the switching rate equals or exceeds the response rate of our human eyes, instead of the binary on-off switching, our eyes act as “averagers” and the LED is perceived to have
“dimmed”. This averaging is analogous to our eyes acting as an RC low-pass filter (see Figure 2). If the switching rate is periodic, then the time it takes for a full switching cycle Tswc is given by
!

T ≡ T +T
! swc on off

(1.1)

where Ton is the time the switch is on and Toff is the time that it is off. The frequency or rate of
!
! switching is f swc =

1
1
=
Tswc Ton +Toff

(1.2)

!
To automate and keep the switching periodic, an algorithm was written and implemented

You May Also Find These Documents Helpful

  • Good Essays

    Nt1310 Unit 8 Assignment 1

    • 1415 Words
    • 6 Pages

    This project used an Atmega644 microcontroller clocked at 20MHz in each of the two functional modules for processing. Memory storage is provided by a standard Secure Digital (SD) card. Xbee modules provide bidirectional wireless communication and we use the TLV5616 DAC chip for generating analog audio. The LM358 dual op amp provides active filtering to the output of the DAC. Music files can be added to the SD card using any computer with a multimedia card reader. Once the base station detects an SD card inserted into the holder, it awaits data requests from the portable module. The portable module requests data when required and feeds these values into the DAC. The DAC output is low-pass filtered by the op amp, which also buffers the DAC output before it reaches the audio output…

    • 1415 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Nt1310 Unit 6 Lab Report

    • 3292 Words
    • 14 Pages

    Using Equation 8 the theoretical period is found 0.886 s. The mean and the 95 % confidence interval of the period for the optical sensor and the stopwatch for one cycle, three cycles, and twenty-five cycles are displayed in Table 6.…

    • 3292 Words
    • 14 Pages
    Satisfactory Essays
  • Good Essays

    Phy 101 Lab 9

    • 568 Words
    • 3 Pages

    5. With Excel and the values found for the voltage across the LED and current through the LED, plot a graph to determine if the LED obeys Ohm’s Law.…

    • 568 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Nt1310 Unit 3 Assignment 1

    • 3113 Words
    • 13 Pages

    modulation whose output is required to drive the LED. The switching on and off of the LED is controlled by a transistor…

    • 3113 Words
    • 13 Pages
    Powerful Essays
  • Satisfactory Essays

    Nt1310 Unit 9

    • 392 Words
    • 2 Pages

    A light-emitting diode (LED) is a semiconductor light source. LEDs are used as indicator lamps in many devices and are increasingly used for general lighting. Appearing as practical electronic components in 1962, early LEDs emitted low-intensity red light, but modern versions are available across the visible, ultraviolet, and infrared wavelengths, with very high brightness.When a light-emitting diode is switched on, electrons are able to recombine with holes within the device, releasing energy in the form of photons. This effect is called electroluminescence, and the color of the light (corresponding to the energy of the photon) is determined by the energy band gap of the semiconductor. An LED is often small in area (less than 1 mm2), and integrated optical components may be used to shape its radiation pattern. LEDs have many advantages over incandescent light sources including lower energy consumption, longer lifetime, improved physical robustness, smaller size, and faster switching. However, LEDs powerful enough for room lighting are relatively expensive, and require more precise current and heat management than compact fluorescent lamp sources of comparable output.Light-emitting diodes are used in applications as diverse as aviation lighting automotive lighting, advertising, general lighting, and traffic signals. LEDs have allowed new text, video displays, and sensors to be developed, while their high switching rates are also useful in advanced communications technology. Infrared LEDs are also used in the remote control units of many commercial products including televisions, DVD players and other domestic appliances. LEDs are also used in seven-segment display.…

    • 392 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Pt1420 Unit 1 Assignment 2

    • 1305 Words
    • 6 Pages

    The number in a bit that represents a turned on position is 1. The number in a bit that represents a turned off position is 0.…

    • 1305 Words
    • 6 Pages
    Powerful Essays
  • Better Essays

    This effect can be explained by the centre/surround organisation of retinal ganglion cells. The organisation means that the response of the ganglion cell to stimulation of one portion of its receptive field, (the area to which a ganglion cell is sensitive), can be modified by stimulation of a neighbouring area. This interaction between antagonistic regions is caller lateral inhibition. If an ON-centre receptive field, that is the centre is stimulated by light and the surround is inhibited by light, is placed over the left square, the light in the…

    • 1745 Words
    • 7 Pages
    Better Essays
  • Satisfactory Essays

    LED and Laser Transmitter

    • 347 Words
    • 2 Pages

    Light - emitting diode (LED) is a standard light source that carries low speed signals at short distances. LED light source is an all plastic fiber that transmits visible light. LED put out lower power and a bigger output pattern than laser light sources. LEDs have less bandwidth and are limiting to operate up to about 250Mhz or about 200Mbs. LED light sources do not contain hazardous material and last longer, about 10,000 hours. Bulbs generate less heat and it is friendlier to the environment because it used 5% less energy. LED transmitters are cheaper, they have a longer lifetime, and they more readily available.…

    • 347 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Why Switch to Led Lights

    • 318 Words
    • 2 Pages

    * light up instantly without flickering. No warm-up period required. When turned on, they are at full brightness.…

    • 318 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    ap psychology

    • 5714 Words
    • 23 Pages

    a. Lowest intensity at which a stimulus can be detected correctly 50% of the time…

    • 5714 Words
    • 23 Pages
    Better Essays
  • Best Essays

    References: JMC Academy, 2011, Introduction to the Audio Industry AUD201, Production Considerations, Melbourne, Accessed 10 April 2011, from <http://myjmc.edu.au/mod/resource/view.php?id=5043>…

    • 2471 Words
    • 10 Pages
    Best Essays
  • Powerful Essays

    SHAWUAN

    • 1285 Words
    • 6 Pages

    Except for your brain, the eyes are the most complex organ you possess. Your eyes are composed of over two million working parts and their coordinated action can instantaneously set in motion hundreds of muscles and organs in the body. Your eyes allow you to track a fly ball into a baseball glove. They can help you pick out the perfect color to paint your room. Your eyes can help you find your best friend at a crowded concert. These amazing organs process light in a way that allows us to perceive color, to judge depth, to sense movement, and to enjoy optical illusions. All these components of a visual scene mergeso we have one combined sensory experience.…

    • 1285 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    To represent the world in our head, we must detect physical energy from the environment and encode it as neural signals, a process traditionally called sensation. As we sense the world or react to particular stimuli , our brains receive that visual information and transform it into neural impulses called transduction. Our eyes, a light-capturing organ, consists of many parts that aid in our vision. The retina, specifically the eye's light-sensitive surface on which the light rays are focused, contain rods and cones. These cells enable color and are sensitive to light (cones) and enable black and white in darkness as well (rods). Perception begins with such articulate neural activity that is based on our expectations and experiences, or through top-down processing to accurately execute the recognition of a stimuli cognitively. The absolute threshold plays a crucial guise in visual perception as well. Absolute threshold enhances these perceptions to a more accurate result-the minimum stimulation necessary to detect a particular stimuli. When beholding a specific visual scene, the brain uses its remarkable receptor cells to extinguish complex lines, shapes, forms, etc., allowing us to clearly define depth and perceive a certain shape or form. In all synchronous operation, these terms are only a crucial component in visual perception.…

    • 440 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Ever want a room that has multiple purposes? That’s what a dimmer switch is made for. From it being a meeting room to a romantic dinner room, it all depends on how much light there is. A dimmer switch is a helpful electrical component that lets you adjust the light levels from nearly dark to extremely bright by simply turning a knob or sliding a lever. When you're decorating a home, light is everything. The light level in a room controls what you can and can't do. It can also make a big impact on how you feel. For example, a romantic dinner for two isn’t so romantic under a 1,500 watt light bulb. Also for some people, it may not be too easy to read with a single light bulb either. We will be conducting experiments testing which variable resistor has the most and least resistance to the electricity. Now, instead of having one specific shade of light, we can adjust it to however bright or dim we want it to be to help in different situations.…

    • 2065 Words
    • 9 Pages
    Good Essays
  • Good Essays

    Class D Amplifier

    • 291 Words
    • 2 Pages

    The binary waveform is derived using pulse-width modulation (PWM), pulse density modulation (sometimes referred to as pulse frequency modulation), sliding mode control (more commonly called "self-oscillating modulation" in the trade.[2]) or discrete-time forms of modulation such as delta-sigma modulation.[3]…

    • 291 Words
    • 2 Pages
    Good Essays