Electrical Engineer required for a microprocessor task
$10-30 USD
In Progress
Posted over 4 years ago
$10-30 USD
Paid on delivery
Type: Mylar Cone Output Power: 0.25 WRMS Impedance: 8 Ω Dimensions: 27(Dia) x 8(H) mm Your task is to design an interface between the Atmel ATmega168 microcontroller and this particular speaker in order to enable output of a set of musical tones/notes from C4 (middle C) through to B4 (C4, D4, E4, F4, G4, A4, and B4). The volume at which the tones play should be user adjustable (although note that it does not have to be software controllable). 1. Refer to the microcontroller datasheet and the provided speaker specification, pick out all the relevant electrical interface data (this is a very important practical skill!) and list them. For each item describe/name the item and explain why it is relevant to your interface design. Note: Make sure you consider the microcontroller pins’ interface ratings. 2. Produce a circuit diagram with details of all elements required to allow the processor to drive this particular speaker properly within the identified constraints. You should provide copies of the datasheets for any components you may choose to include in your design (except for passive elements such as resistors and capacitors). 3. Describe how your circuit elements address the interfacing requirements, including volume control. Please ensure that you consider both the Atmega168 and the speaker requirements / specifications, and justify any decisions made, including any calculations as required. 4. Write a C subroutine that will enable the output of any of the notes ‘C4’ to ‘B4’ from the speaker (specified by a parameter passed to the subroutine). The notes should play for 1s and then stop. 5. Write the assembler code for the Atmel ATmega168 that would continuously output the note C4 from the speaker. Include all necessary initialisation, and comment the code to explain what it is doing at each step. Note: Assume you are using the NerdKit
Being able to generate tones at specific frequencies has its uses, but for a more versatile system we would like to be able to generate a wider range of possible sound effects. To do this we can use the approach of modulating a high frequency PWM output, noting that with appropriate filtering, the duty cycle of such a PWM waveform is proportional to an effective output signal voltage. The Atmel ATmega168 provides the facility to easily generate an accurate high frequency PWM waveform through the use of the crystal oscillator and the dedicated timer/counter circuitry in the processor. Your task is to show how to use these components so that a function can be written to output an arbitrary waveform that can be used to drive the speaker to generate a sound effect. The input to the function should be assumed to be a set of 8-bit sampled amplitude values at a designated sample rate.
Hey,
I am a embedded design engineer at a renowned organization. Its my everyday task to deal with controllers and do such kind of different tasks and playing with different sensor and [login to view URL] you give me a chance to help you. I will assure you that you will be happy to work with me.
Thanks
$25 USD in 7 days
0.0 (0 reviews)
0.0
0.0
2 freelancers are bidding on average $23 USD for this job