Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

melody generation by MCU

Status
Not open for further replies.
A square wave is the easy way to generate a pitch, at any frequency in the audio spectrum.

You probably want to use 12 notes per scale (as is commonly in use today). You must match each pitch to its frequency as generated by your mcu. You must program the correct loops, delays, etc.

To create a melody, you will output a frequency for a suitable time period, then you will change to the next frequency, etc.

Your sound will probably be pulsed DC. To convert it to AC, put a DC blocking capacitor on the output wire. You may or may not need to amplify it. Avoid drawing overmuch current from the output, or exposing it to static charges.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top