SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson,...

28
SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller

Transcript of SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson,...

Page 1: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

SERENADE MP3 PLAYER

The Hardware Perspective

By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller

Page 2: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Acknowledgements

•Craig Damon - Guidance •Michael Marceau - Guidance •Barry Woodworth - Help in Shop•Andy Child - Parts Management •BAMC - Technical Support

Page 3: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Table of Contents

• System Diagram• Hardware Description

• Main Controller• Power Management• User Interface

• Software Description• Beethoven Program• LCD• Audio Graphical EQ

• Work Distribution • Bill of Materials

Page 4: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

System Diagram

MCUATmega32U4

Audio CodecVS1003

HostPC

µSD Card

LCD

HID:Tactile Buttons

SPI

Serial

GPIO

Page 5: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Hardware Description

• Five Major Components• Milled Aluminum Case • Atmega32U4 Microcontroller• VS1003 Audio Codec• 4DSystems µLCD-144 Graphical LCD System• Power Management System

Page 6: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Case Design

• Milled aluminum • Three pieces:

• Back panel• Front panel • Sidewalls

• Cutouts:• LCD/ Buttons• Audio Jack • USB

Page 7: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

ATMega32U4

• Coordinates all peripheral functions between chips

• Manages SPI communication with µSD card and VS1003

• Manages USB connection

• Manages information serving to LCD

• Operates at 8MHz @ 3.3V

Page 8: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Audio Codec VS1003

• Decodes MP3 &WMA• SPI Control • High Quality on chip Stereo

• 18-bit DAC• Integrated DSP core provides advanced features such as pitch control

• Requires 3 voltage domains (3.3, 2.85, 2.7) and runs at 12.288MHz

Page 9: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Micro-Codec SPI Communication

Microcontroller(Master)

MISOMOSISCK

GPIO1GPIO2GPIO3GPIO4GPIO5

Vs1003(Slave)

SOSISCLKxRESETDREQxCSxDCS

Page 10: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

LCD – 4D Systems LCD

• 128x128 Color LCD• µSD card storage• 10KiB of flash memory program

storage• 510 bytes of RAM for program

memory• Integrated Graphics Processor• Interfaces via standard UART

(serial)

Page 11: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Lithium Polymer Battery

• Single Cell• High Energy Density• Good long term discharge rate

• Rechargeable • Works well under extreme conditions

Page 12: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Voltage Regulation

• Battery/USB power source

• 1 Switching boost regulator (LTC3203)

• 3 linear voltage regulators for localized voltage domains

Page 13: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Custom Hardware Design

• Atmega32U4• LCD Screen• Audio Codec

VS1003• SD Card • LiPo Battery • Power Management

Page 14: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Schematic Power Management

Micro

CODEC

Page 15: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Software Description• Microcontroller

• Simple interrupt driven runtime to serve user requests (button input)• Controls file streaming from the µSD to the VS1003• Sends inputs, the database, and status information about the current

song playing to the LCD

• LCD• Main GUI for the MP3 player• Uses the database to create menus as needed• Tells the microcontroller what song to play and volume level

• Beethoven Program• Media library• Music & database syncing• MP3 playback• Metadata editor

Page 16: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

LCD: Menus

1. Main Menu

2. Song Navigation Menus

3. Current Song View

4. Now Playing Playlist

5. Settings

1 2

3 4

Page 17: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Beethoven

Page 18: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Audio EQ

Page 19: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Labview: Measurement & Control

Control Options

Stop/THD Measurement

Right & Left RMS Voltage Measurement

Page 20: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Work Distribution

Page 21: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Bill Of Materials

Page 22: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Demo

Page 23: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Summary• System Diagram

• Case • Micro-Codec Communication• Hardware Description

• Schematic • Codec• Power Management • Micro

• Software • LCD menus • Syncing program • Audio EQ

• Work Flow• Bill of materials • Demo

Page 24: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Power Management

CHARGE PUMP

Charge Controller

Page 25: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Power System Simulation

Page 26: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Power Management

Results

• .

• LCD Draws 220 mA when powered

• No Sleep/ Hibernate Mode

Current Draw On Battery (mA)

USB Power (mA)

On (No music) 265 265

Playing a song

280 280

Volume at 11 320 320

Battery Life Time Powered

On (No music) 3 Hours 46 Minutes

Playing a song 3 Hours 34 Minutes

Volume at 11 3 Hours 08 Minutes

Page 27: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Microcontroller

Page 28: SERENADE MP3 PLAYER The Hardware Perspective By: Jacob Messick, Marcel Deslauriers, Brendan Simpson, & Nick Miller.

Codec