Peripheral Interpreter consisting of Analyzers 'N Operators P.I.A.N.O. Peripheral Interpreter consisting of Analyzers 'N Operators
P.I.A.N.O. Project Team Team Members Course Instructor Curtis Hayes Dr. Serpen Matthew Huie Eric Lauber Faculty Advisor Wesley Vollmar Dr. Molyet
Background (Problem) Player pianos are expensive Obtrusive internal modifications of piano Musicians are expensive Musicians may not know and be ready to perform all genres of songs
Background (Solution) Play the piano autonomously via computer software Do not modify or damage the piano Be contained and unobtrusive Use modular design to be scalable Be cost effective and easy to use
Background (cont.) Uses existing technologies PWM (Pulse Width Modulation) MIDI (Musical Instrument Digital Interface) Use knowledge gained through University education Computer Programming Electrical Hardware Design
Driving Circuitry Actuators Dual Ledex Solenoids Together pull up to1.3A @ 28V Switched Electronic Control PWM to create Dynamic Variation and Human-Like Playback (Honors) Use different PWM duty cycles to reduce heating losses Power Supply (28V)
Pulse Width Modulation
Pulse Width Modulation
Master/Slave Architecture Serial Bus One Master, Multiple Slaves
Arduino Overview ATMEGA328 On-board Microprocessor 328K Memory I/O PWM Analog Inputs Programmed in C void setup() void loop()
Hardware Block Diagram Serial Communication DIP Addressing PWM to solenoid drivers
Hardware Slave Schematic
Software - Input Parsing Reads in a single track MIDI file Pulls out relevant information Notes Delays End of Song Throws away meta-data, except tempo changes Stores into database Must be done very carefully to prevent corruption of the data.
Software - Output Control Signals Read in command signals from database in array Calculate "tick" time Run timing delays Output command signal on serial port Repeat Fast enough to simulate chords
Software - Serial Communication Using a Universal Serial Bus (USB) to RS232R (TTL logic levl) converter Software uses the built in .NET Serial Port object Can be written to like any file object
Software - Graphical User Interface Simple, clean style Similar to most other media players Custom buttons to customize our system Functions separated on different windows Custom icon to identify the program
Software - Database System.Data.SQLite ADO.NET provider http://www.sqlite.org/ "Most widely deployed SQL database engine in the world" Used in systems such as Mozilla Firefox All data stored in one single file Simple Transaction SQL commands Requires only file path to access
Software - Database Repair Two Redundant backups stored Created at system close Can repair corrupted database at error Protects against data loss
Software - Import / Export Wes Vollmar's Honors portion of the project Ability to export and share database contents Replace or append to current playlist Gives system mobility - - - -
Future Scale up to full sized piano Invest into more key modules Mass produce using printed circuit boards (PCBs) Communicate with other MIDI devices Add other music file functionality
Conclusion One octave self playing piano Software controlled Solenoid key striking modules Easy maintenance and repair Self contained
QUESTIONS?
References Atmel - ATMega328P http://www.atmel.com/dyn/products/product_card.asp?PN=ATmega328P#dataSheets Ledex 191172-001 http://www.jameco.com/webapp/wcs/stores/servlet/ProductDisplay?langId=-1&storeId=10001&catalogId=10001&productId=1919203 Texas Instruments - DRV102 http://focus.ti.com/docs/prod/folders/print/drv102.html