Loading files…
Swan Lake Music Art is a project of electronics and firmware to provide monotonic music for a multilayer painting about Russian Ballet which is painted by a fine artist who has been working on the project to exhibit the beauty of Ballet dance. Since the painting is on thinner canvas, the form factor of electronic should be thinner and smaller. Therefore a smaller microcontroller ATtiny85, Piezoceramic Element as speaker and Coincell Battery as power source are chosen.
Circuit board of the project is designed using KiCad. KiCad is an excellent opensource EDA tool available on various platforms. ATtiny85 is a very small microcontroller in SOIC-8 packaging. Furthermore component chosen in the projects are SMT which can be easily soldered to PCB with HotAir or SMD Reflow.
First simple single layer breakout for the IC is designed and etched at home using Copper Clad, Toner Transfer Paper, Laser Print, Acetone and Iron(III) chloride. IC was soldered using HotAir gun of SMD Rework station. Pin headers with 2.54 mm pitch is soldered to it to develop with breadboard.
The artist wants to use music of Tchaikovsky - Dance of the Little Swans from Swan Lake Op. 20. The difficult part (because no experience on synthesizing) of this project was to convert the music sheet to monotonic music notes that can be synthesized on 8 bit microcontroller. Solution from https://github.com/jarv/PlayTune was tried and however couldn't get the music right with it. This challenged me to learn deeply how music synthesis work and solved the problem as following,
Arduino platform officially supports only ATmega AVR microcontroller. In this project very small ATtiny85 microcontroller is used. Initially it was tried out to develop baremetal firmware using AVR GCC toolchain. Working samples ATtiny85 GCC projects are found in research folder. However, ATTinyCore by the community for Arduino platform does the work easily and can be installed in Arduino IDE via board manager. Dev version of firmware on Arduino can be directly flashed to ATtiny85 without reinventing the wheel because tone library implements music synthesizing using Timers/Interrupt of the microcontroller that generates PWM square wave. Finally Swan Lake music was synthesized on Arduino Uno and ATtiny85 by using the transcribed music notes and piano key frequencies.
Updated
No comments yet. Be the first to ask about this board.