Sunday, 6 January 2013

PIC16F628A midi music

I wanted to try out the sound library in the MikroC, and wondered if i could programm a music in my PIC. Normally this library is for piezo sounder, i didn't have one so i used a regular speaker and it worked! :) The sound is created by changing the frequancy, and you can choose for how long the frequancy will play. I used the frequancies from http://en.wikipedia.org/wiki/Piano_key_frequencies and programmed Linkin park - numb :)


The scheme is very simple.

Since my camera (smartphone) has a terrible sound quality, i recorded a proteus circuit animation :)



From now I am going to upload the codes, that I made :D They are quite a mess, but it's better then nothing :D
You need to download them both and launch through MikroC:

https://www.dropbox.com/s/60kqpc3aqxj6opt/sound.c
https://www.dropbox.com/s/dhoiqc1lxhsdy98/sound.mcppi

1 comment:

  1. Casino de Argo, Casinos & Rooms - Mapyro
    Find your nearest 여주 출장샵 Casino de 포천 출장마사지 Argo hotel 광양 출장마사지 & casino 화성 출장샵 on 이천 출장샵 Mapyro. Casino de Argo, Argo casino, Argo casino, Argo casino, Casino de Argo casino, Argo casino,

    ReplyDelete