In Progress

Electrical Engineer required for a microprocessor task

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.

Skills: Electronics, Electrical Engineering, Circuit Design, Microcontroller

See more: electrical engineering careers, electrical engineer salary, what are the requirements for an electrical engineer, electrical engineering degree salary, electrical engineering job prospects, how long does it take to become an electrical engineer, how to become an electrical engineer, electrical engineer job description, can write proposal future demand electrical engineer, electrical engineer allied bank, mechanical electrical engineer, math skills electrical engineer, electrical engineer technical writing, math skills needed electrical engineer, self employed electrical engineer, trainee engineer required karachi 2009, electrical engineer freelnace technical writer austin, embedded systems engineer required pakistan, self employed electrical engineer business, electrical engineer 5hour 2009

About the Employer:
( 8 reviews ) Islamabad, Pakistan

Project ID: #21344502

Awarded to:

mujtaba140180

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 chan More

$25 USD in 7 days
(0 Reviews)
0.0

2 freelancers are bidding on average $23 for this job

endgame2

can you explain simply what u need as , you just made this task complicated and i just got that i need to make a circuit diagram

$20 USD in 4 days
(0 Reviews)
0.0