Tone Matrix Music Box
ECE 477 Design Review
Team 17 - Fall 2012
Jun Jun Peh Wan 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
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
Project-Specific Success Criteria1.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.
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.
Block Diagram
Component Selection Rationale
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
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
Component Selection Rationale
• Accelerometer: ADXL335o Detect tilting of device
• Speakero Output from DAC
• SD Cardo Provide additional memory
• Fuel Gauge: BQ26231o 80uA active supply currento internal self discharge estimation counter
Packaging Constraint
• �Low cost• �Lightweight and small size• �Transparent and with good clarity• �Durable and resist to scratch• �Attractive
Packaging Design
• Dimension : 292mm H x 267mm W x 40 mm D
• Weight : ~4lbs (including battery)
• Material : 0.093" acrylic casing
Button pads
Rotary Switch
LCD
Layer Buttons
Bottom Panel View
Bottom Panel View
MIDI Jack
10 mm audio jack
Power Jack
Power Switch
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
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.
Major Subsections1. Four concatenated Button Pads
- 8 digital input pins. - 8 digital output pins. - sample the button states using GPIO pins.
• Red: digital input pins• Yellow: digital output pins
Major Subsections2. 64 RGB LEDs - three AS1115 LED drivers
- VDD of AS1115: 2.7 – 5 V- I2C: SDA and SCL
Major Subsections
3. Speakers and Audio Jack - MCP4921 12-bit DAC
- LM4865 Audio Amplifier- SPI module- audio sampling rate = 44.1 kHz
Major Subsections
4. LCD Display - VDD of LCD: 5 V
- MC14504BDG Level Translator- 74HC164 Shift Register- SPI module
Major Subsections5. SD-MMC Card - VDD of card reader: 3.3 V
- SPI module
Major Subsections6. MIDI - VDD of MIDI: 5 V
- MC14504BDG Level Translator- EUSART Module- Serial data rate = 31.25 kHz
Major Subsections
7. Nine Momentary Push buttons (for Control & RESET)- 9 digital input pins
Major Subsections
8. Rotary Encoder- 3 digital input pins
Major Subsections
9. 3-axis Accelerometer ADXL335- VDD 3.3 V- 3 ADC input channels
10. Programming and Debugging- PICKIT3 (through JTAG)- RS232 with MAX3232 transceivers (through EUSART)
Major Subsections
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
12. Two Switching Regulators- LM2675-3.3 and LM2675-5.0- 15 V wall wart KTPS24
Major Subsections
Printed Circuit Board
Major Subsections
• Power supply – voltage regulator and battery management IC
• LED driver chips• Audio converter• Headers for off-chip components and
important signals
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
Over
all L
ayou
t
Power Regulator
AudioConverter
Software Development Status
MICROCONTROLLER- PIC18F67K22
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
Software Design
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
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
Questions/Discussion
Top Related