290 likes | 457 Views
Musical Carpet. ENSC 440 project. Team. Danny Jiang Anthony Tsang Payam Norouzi Anton Ayzikovsky. Software Division :. Hardware Department:. Agenda. Project Description Motivation Roles System Overview Project Details Future Work Lessons Learned Questions. Project Description.
E N D
Musical Carpet ENSC 440 project
Team Danny Jiang Anthony Tsang Payam Norouzi Anton Ayzikovsky Software Division: Hardware Department:
Agenda • Project Description • Motivation • Roles • System Overview • Project Details • Future Work • Lessons Learned • Questions
Project Description Musical CARPET Step-sensitive Sound-emitting Visually appealing With pitch detection capability
Motivation • Fun • Educational • Aesthetically pleasing • Awesome! • Employs many principles learned
Roles • Danny – sound engineer, software guru, time-management wizard, documentation master • Anthony – voice recognition specialist, components researcher, relaxation supervisor • Payam – wood cruncher, LED solderer, design maniac • Anton – head carpetenter, sensor investigator, chief wiring officer
System Overview • Main Control • Audio Processing • Sensors • Display Module
Sensor Unit • Main part of the sensor unit is the carpet Drawing: Carpet in production:
Sensor construction • Each sensor consists of five contacts for best step detection Sensor structure: Sensors in production:
Sensor - Possible Solutions Sensor • Piezoelectric • Capacitive • Proximity • Strain Gauge • Contact Switch Carpet • Hand-made • Purchased
Main Unit • Sample sensor switches using polling method • Sample voice data from microphone to perform FFT for pitch detection • Communicate with Audio Processing Unit • Interaction with display unit • Record/playback feature
Main Unit - Microcontroller • 32 general purpose I/Os • 2KB of internal SRAM • 4 external Interrupts Atmega32 Atmega64 • 53 general purpose I/Os • 4KB of internal SRAM • 8 external Interrupt
Main Unit • Atmega64
Audio Unit • Play sound samples from SD card • Able to generate multiple tones at the same time • Able to drive an 8 ohms speaker without external power
Audio Unit - High Level Diagram External SD Card SPI Speaker MCU High Current OpAmp DAC
Audio Unit – Current state and Limitation Current State: • Two channels Limitation: • Small capacity of internal SRAM • Access speed to SD card • When many channels are playing at the same time, adding all samples together will lead to saturation
Audio Unit • Arduino + Wave shield
Possible Solutions Main Unit • PIC controller • FPGA • Audio Unit • DSP Processor
Pitch Detection • Sampling rate of 4KHz • Conversion to frequency domain with FFT • Compares fundamental frequencies • Component frequency ratio algorithm
Possible Solutions • Time domain analysis • Cepstrum • Peak detection
Business Case • Just a piano shaped carpet • Cost for a 3 by 4? $33 • With similar functionality • Starts from $120 • Pitch Detection Capability? • Mass Produced • Carpet $0.8 per square foot • Atmega64 6001+ $7.6400 • Control Board approximately $10 • Other $20
Further Improvements Software • Combine the circuitry into one board • Improve the pitch detection algorithm • Use external RAM for better quality sound and playing more channels simultaneously • Use full-swing amplifier for microphone circuitry Hardware • Add LCD to the display unit for more functionality • Use pressure sensors to vary the sound intensity • Use single power supply with possible battery operation
Lessons Learned • Technical • Audio/Signal processing • Communication protocols • Hardware design • Non-Technical • Teamwork • Conflict Resolution • Project Management
References • http://www.aliexpress.com/product-gs/237703985-Piano-shape-handmade-carpet-120-85cm-wholesalers.html • http://www.globalconvention.ca/ • http://avnetexpress.avnet.com/store/em/EMController?langId=-1&storeId=500201&catalogId=500201&term=atmega64&x=0&y=0&N=0&action=products • http://www.digsdigs.com/cool-music-carpet-human-antenna-by-florian-krautli/