Are there anything extra I need to do when trying to miniaturize an arduino project to play music through a piezo speaker from an ATTiny85?
The project I have created works on the Arduino just fine and plays the tune, but does not work through the ATTiny85 microcontroller when I load the code onto it.
What I have successfully done with the ATTiny85 is I have loaded the blink example sketch onto it, which works just fine through the ATTiny85. I used this method to do this: http://hlt.media.mit.edu/?p=1695.
I have also loaded my "piezo tune" code onto the ATTiny85 with no errors, but it produces no music or even clicking sounds when it is loaded onto it. The only difference between the code I loaded onto the Arduino to test the "piezo tune" code and the code I'm loading onto the ATTiny85 is the pin I'm using, which is set to digital pin 0 for the ATTiny85 (pin 5), which is the same pin the MIT high-low tech group has you use for the blink example sketch in their instructions.
I can post the exact code I'm using for this later if needed, but I am at work and do not have it with me right now. It seems to be very similar to this, though: http://www.arduino.cc/en/Tutorial/PlayMelody.
I am a professional software developer, but I am just getting started on electronics projects like this as a hobby right now. I have spent some time Googling around for an answer, looking through posts on this forum, and looking though posts on electronics.stackexchange.com, but to no avail.
I would really appreciate any advice you guys can give me to point me in the right direction on this. Thank-you!