How to make good sound? (starter kit + speaker)


i have piezo speakers (different sizes)+ lots of resistors +..
1.   arduino 2009 duemilanove atmega168 board
2.   16x2 hd44780 white character & blue bl lcd  
3.   400 points breadboard
4.   70 pcs breadboard wire
5.   24c16 - 2k i2c cmos serial eeprom
6.   ds1307 - 64 x 8, serial, i2c real-time clock
7.   32.768khz crystal ds1307
8.   74hc595  - 8-bit serial-in, serial or parallel-out shift register output latches
9.   lm324 -  low power quad operational amplifier
10. lm386 -  low voltage audio power amplifier
11. uln2003 - 7 channel high current darlington array
12. 3mm red led x 5,  green led x 5, yellow led x 5
13. 5 x red mini push button momentary switch
14. 5 x black mini push button momentary switch
15. proto & servo shield protoshield pcb arduino

can make sound sounds piano key note example, or isn't pii pipi pii mm pii? (square wave sound mean)
i'm quite ok in coding use c years, lack knowledge in electronics (all basics, know sound physics) if helps

if want sounds better square wave, short of resorting fm sound chip, can set filter on output round square wave more resembling sine wave.

you can doing dds (with similar filter - dds stands direct digital synthesis):

http://interface.khm.de/index.php/lab/experiments/arduino-dds-sinewave-generator/

another options dac made resistors; 6 bit dac (64 levels) output reasonable sounding tone, 8 bit better.

you might able latch, since going need pins on arduino read whatever keyboard devise.

to find out how build dac , use it, old-school "parallel port dac sound"; technique used dos programmers (mainly demo coders) sound output prior emergence of adlib , soundblaster sound cards.

it simple, , takes handful of resistors wired in r2r ladder (iirc). people used build them within parallel port cable dongles; there absolute ton of information out there on how work.

then need create small wavetable (an array) containing data wave (sine, triangle, sawtooth, etc) , repeat out shift register, latching on each 8 bits "sample" value dac.

in theory, store wav file (without header) re-sampled @ 8 bit mono on sd card, , play out - advanced-stage project.

the thing not covered above how apply asdr (attack-sustain-decay-release) envelope waveform output in order alter make sound piano. first, need output tone sounds more piano (sine or triangle best start with; sawtooth little harsh, harmonics similar square wave grate on ears).

good luck, hope helps.

:)


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > How to make good sound? (starter kit + speaker)


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums