It uses an ATmega328 to outputs the waveform of the timbre of a piano in different speeds to generate different frequencies so as to reproduce the notes of a piano.
It can play up to 2 notes simultaneously and it follows a sequence of notes and times that it should be played for in an array in the program memory.
The entire program (piano timbre + music notes) has 18 kb.
More details at:
http://code.google.com/p/playing-music-with-atmega328-pwm/
---------------------------------------------
O circuito usa um ATmega328 para gerar a forma de onda do timbre de um piano em diferentes velocidades para gerar diferente frequências de forma a reproduzir diferentes notas de um piano.
Pode tocar até 2 notas simultaneamente e segue uma sequência de notas e tempos gravadas na memória de programa.
O programa inteiro (timbre do piano + notas) possui 18kb.
Mais detalhes em:
http://code.google.com/p/playing-music-with-atmega328-pwm/
missing some b and # notes but its briliant!
Soli9111 5 months ago
@Soli9111 Thank you!
After that project, I made a software to convert from MIDI files to the microcontroller code.
But the one in the video, I just wrote the whole music, note by note and with the times =P
MauricioRivello 5 months ago