tone matrix music box jun jun pehwan qi choo kian hui wong chia siong goh

44
Tone Matrix Music Box ECE 477 Design Review Team 17 - Fall 2012 Jun Jun Peh Wan Qi Choo Kian Hui Wong Chia Siong Goh

Upload: agatha-robertson

Post on 03-Jan-2016

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Tone Matrix Music Box

ECE 477 Design Review

Team 17 - Fall 2012

Jun Jun Peh Wan Qi Choo

Kian Hui Wong

Chia Siong Goh

Page 2: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Outline

• Project overview

• Project-specific success criteria

• Block diagram

• Component selection rationale

• Packaging design

• Schematic and theory of operation

• PCB layout

• Software design/development status

• Project completion timeline

• Questions / discussion

Page 3: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Project Overview

• An 8x8 grid-based music synthesizer.

• Produces sound and emits light (LED) when user touches the buttons

• 3 music playing modes:o Sweep modeo Gravity modeo Memory mode

• Several different types of sound:o guitar, piano, and drum beats

Page 4: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Project-Specific Success Criteria

1.An ability to respond to touch by producing sound and emitting light.

2.An ability to memorize past note events and to play the selected tones in a sequence set by the user.

3.An ability to utilize an accelerometer to detect the inclination and direction of the device so that the pitch and tempo of music can be changed.

Page 5: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Project-Specific Success Criteria

4. An ability to load various sound effects such as guitar, piano and drum beats from the internal memory of the microcontroller and to play out the sound.

5.An ability to send the musical tones out to a computer through MIDI-USB protocol to be saved as a file.

Page 6: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Block Diagram

Page 7: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Component Selection Rationale

Page 8: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Microcontroller (PIC18F67K22)

• I/O pins – 53 pins

• Operating Voltage: 1.8V - 5.5V

• Memory – 128K

• ATD channel – 3-axis accelerometer

• ATD Channel: 16 (12-bit)

• Interface - SPI, I2C, UART, USART

• Price: $5.14

Page 9: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Component Selection Rationale

• 8 x 8 Button Padso detect user's touch

• LCD: LCMS01604DSRo display playing modes

• Rotary Switch & Pushbuttonso selection of playing modes

• 8-bit RGB LEDSo 3-color lights

Page 10: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Component Selection Rationale

• Accelerometer: ADXL335o Detect tilting of device

• Speakero Output from DAC

• SD Cardo Provide additional memory

• Fuel Gauge: BQ26231o 80uA active supply current

o internal self discharge estimation counter

Page 11: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Packaging Constraint

• �Low cost

• �Lightweight and small size

• �Transparent and with good clarity

• �Durable and resist to scratch

• �Attractive

Page 12: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Packaging Design

• Dimension : 292mm H x 267mm W x 40 mm D

• Weight : ~4lbs (including battery)

• Material : 0.093" acrylic casing

Page 13: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh
Page 14: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Button pads

Rotary Switch

LCD

Layer Buttons

Page 15: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Bottom Panel View

Page 16: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Bottom Panel View

MIDI Jack

10 mm audio jack

Power Jack

Power Switch

Page 17: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Schematic/Theory of Operation

• PIC18F67K22• 8x8 button pads• 64 RGB LEDs• Sound system• LCD display• SC card• MIDI• Push buttons and rotary encoder• Programming and Debugging• Power management

Page 18: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

PIC18F67K22

ADC

EUSARTSPI

I2CGPIO

• VDD = 1.8 – 5.5 V• ENVREG connect to GND for VDD of 3.3 V.• Power supply pins are connected with capacitors.

Page 19: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Major Subsections1. Four concatenated Button Pads

- 8 digital input pins. - 8 digital output pins. - sample the button states using GPIO pins.

Page 20: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

• Red: digital input pins• Yellow: digital output pins

Page 21: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Major Subsections

2. 64 RGB LEDs - three AS1115 LED drivers

- VDD of AS1115: 2.7 – 5 V- I2C: SDA and SCL

Page 22: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh
Page 23: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Major Subsections

3. Speakers and Audio Jack - MCP4921 12-bit DAC

- LM4865 Audio Amplifier- SPI module- audio sampling rate = 44.1 kHz

Page 24: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Major Subsections

4. LCD Display - VDD of LCD: 5 V

- MC14504BDG Level Translator- 74HC164 Shift Register- SPI module

Page 25: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Major Subsections

5. SD-MMC Card - VDD of card reader: 3.3 V

- SPI module

Page 26: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Major Subsections6. MIDI - VDD of MIDI: 5 V

- MC14504BDG Level Translator- EUSART Module- Serial data rate = 31.25 kHz

Page 27: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Major Subsections

7. Nine Momentary Push buttons (for Control & RESET)- 9 digital input pins

Page 28: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Major Subsections

8. Rotary Encoder- 3 digital input pins

Page 29: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Major Subsections

9. 3-axis Accelerometer ADXL335- VDD 3.3 V- 3 ADC input channels

Page 30: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

10. Programming and Debugging- PICKIT3 (through JTAG)- RS232 with MAX3232 transceivers (through EUSART)

Major Subsections

Page 31: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Major Subsections

11. Polymer Lithium Ion Battery - Triple cell battery pack – 11.1 V- Fuel Gauge BO26231- HDQ pins through EUSART (TX & RX)- Diode - avoid wrong connection of battery

Page 32: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

12. Two Switching Regulators- LM2675-3.3 and LM2675-5.0- 15 V wall wart KTPS24

Major Subsections

Page 33: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Printed Circuit Board

Page 34: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Major Subsections

• Power supply – voltage regulator and battery management IC

• LED driver chips• Audio converter• Headers for off-chip components and

important signals

Page 35: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Layout Considerations

• Power supply away from the rest of the circuit

• Digital signals isolated from analog signals

• Wider power and ground traces• I/O pins close to the board edge• Heat dissipation• Avoid acute angles and 90-degree

turn

Page 36: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Ove

rall

Layo

ut

Page 37: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Power Regulator

Page 38: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

AudioConverter

Page 39: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Software Development Status

MICROCONTROLLER- PIC18F67K22

Page 40: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Components

Functions PERIPHERAL USED

PROGRESS

LCD Shift out data and display on LCD SPI,IO Working

Button Pads

Buttons detection IO In Progress

Rotary Switch

User interface navigation IO In Progress

LED Driver

Light up LEDs using AS1115 LED drivers

I2C In Progress

SD Card Read audio data from SD card SPI,IO Scheduled

MIDI Output audio data through MIDI port to PC's USB

USART Scheduled

Battery Fuel Gauge

Output command bytes and Read battery status

USART Scheduled

DAC Output audio signal to DAC SPI,IO Scheduled

Page 41: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Software Design

Page 42: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Project Completion TimelineWEEK

TASK DELIVERABLES

8 Design review presentation. Tweak the PCB. Prototype parts.

Design Review Presentation

9 Incorporate changes/comments from Design Review into the schematic and PCB. Prototype parts.

Proof-of-PartsFinal SchematicsPCB Layout

10 Prototype Parts & Software Development Spring Break

11 Continue software development and testing Software Report

12 Begin populating and testing PCB. Patent Liability Analysis Report

Page 43: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Project Completion TimelineWEEK

TASK DELIVERABLES

13 Populating and testing PCB. Subsystems are added each at a time.

Reliability and Safety Analysis Report

14 Populating and testing PCB. Subsystems are added each at a time. Start working on the packaging.

Ethical and Environmental Impact Analysis Report

15 Finalize packaging and system integration. User Manual

16 Start assembling and editing Final Report.Create PSSC demo video.

PSSC Demo VideoECE Senior Design Report

17 Prepare for Final Presentation. Senior Design Presentation

Page 44: Tone Matrix Music Box Jun Jun PehWan Qi Choo Kian Hui Wong Chia Siong Goh

Questions/Discussion