ECE 477 Design Review Team 5 Fall 2007 Wes Chris Josh Dave.

39
ECE 477 Design Review ECE 477 Design Review Team 5 Team 5 Fall 2007 Fall 2007 Wes Wes Chris Josh Chris Josh Dave Dave

Transcript of ECE 477 Design Review Team 5 Fall 2007 Wes Chris Josh Dave.

Page 1: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

ECE 477 Design Review ECE 477 Design Review Team 5 Team 5 Fall 2007 Fall 2007

WesWes Chris Josh Dave Chris Josh Dave

Page 2: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

OutlineOutline• Project overview Project overview • Project-specific success criteriaProject-specific success criteria• Block diagramBlock diagram• Component selection rationaleComponent selection rationale• Packaging designPackaging design• Schematic and theory of operationSchematic and theory of operation• PCB layoutPCB layout• Software design/development statusSoftware design/development status• Project completion timelineProject completion timeline• Questions / discussionQuestions / discussion

Page 3: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Project OverviewProject Overview

• Wireless home media solutionWireless home media solution• Consists of base station & portable media Consists of base station & portable media

drivesdrives• Base station detects drives within rangeBase station detects drives within range• Media files will be streamed from drives to Media files will be streamed from drives to

base stationbase station• Base station will output analog audio signal Base station will output analog audio signal

at line levelat line level

Page 4: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Project-Specific Success CriteriaProject-Specific Success Criteria

1.1. An ability to decode an MP3 file into a stereo, An ability to decode an MP3 file into a stereo, line-level analog output signalline-level analog output signal

2.2. An ability to read FAT16 files stored on an SD An ability to read FAT16 files stored on an SD memory cardmemory card

3.3. An ability to wirelessly transmit data from a An ability to wirelessly transmit data from a plurality of handheld devices to a single base plurality of handheld devices to a single base stationstation

4.4. An ability to wirelessly detect active wireless An ability to wirelessly detect active wireless handheld devices within close proximity and handheld devices within close proximity and request MP3 files from themrequest MP3 files from them

5.5. An ability to display operational status on base An ability to display operational status on base station LCDstation LCD

Page 5: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Block DiagramBlock Diagram

Page 6: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Component SelectionComponent Selection• Critical components Critical components

– Base station microcontrollerBase station microcontroller– Portable drive microcontrollersPortable drive microcontrollers– Wireless transceiversWireless transceivers– DisplayDisplay– Portable drive batteriesPortable drive batteries

Page 7: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Component SelectionComponent Selection• Base station microcontrollerBase station microcontroller

– 8-bit processor8-bit processor• Maintain low costMaintain low cost• More bits unnecessaryMore bits unnecessary

– SPI port for four slavesSPI port for four slaves• LCD, mp3 decoder, wireless, flash memoryLCD, mp3 decoder, wireless, flash memory

– General input/output pinsGeneral input/output pins• At least 6 inputs for user controlsAt least 6 inputs for user controls• At least 4 outputs for status LEDsAt least 4 outputs for status LEDs

– Flash memoryFlash memory• 9 KB for filesystem library9 KB for filesystem library• 15 KB for application space15 KB for application space

– 2 KB RAM for filesystem buffering2 KB RAM for filesystem buffering– ClockClock

• Preferably internal & programmablePreferably internal & programmable• Minimum 5 MHz (128 x 2 kHz for SPI x 20 to be safe)Minimum 5 MHz (128 x 2 kHz for SPI x 20 to be safe)

– ““Reasonable” power consumptionReasonable” power consumption

Page 8: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Component SelectionComponent Selection• Base station microcontrollerBase station microcontroller

– Atmel AT89C51SND1CAtmel AT89C51SND1C• Max 20 MHz clockMax 20 MHz clock• 64K Flash64K Flash• 2K RAM2K RAM• SPI, UARTSPI, UART• On-Chip MP3 DecoderOn-Chip MP3 Decoder• 44 GPIO Pins44 GPIO Pins• 2.7 – 3.3V Operating Voltage2.7 – 3.3V Operating Voltage• TQFP 80 PackageTQFP 80 Package• Cost: $15.48Cost: $15.48

Page 9: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Component SelectionComponent Selection• PMD microcontrollerPMD microcontroller

– 8-bit processor8-bit processor• Maintain low costMaintain low cost• More bits unnecessaryMore bits unnecessary

– SPI port for two slavesSPI port for two slaves• Wireless & flash memoryWireless & flash memory

– General input/output pinsGeneral input/output pins• At least 2 inputs for user controlsAt least 2 inputs for user controls• Up to 8 outputs for status LEDsUp to 8 outputs for status LEDs

– Flash memoryFlash memory• 9 KB for filesystem library9 KB for filesystem library• 10 KB for application space10 KB for application space

– 2 KB RAM for filesystem buffering2 KB RAM for filesystem buffering– ClockClock

• Preferably internal & programmablePreferably internal & programmable• Minimum 2.5 MHz (128 x 2 kHz for SPI x 10 to be safe)Minimum 2.5 MHz (128 x 2 kHz for SPI x 10 to be safe)

– Lowest available power consumptionLowest available power consumption

Page 10: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Component SelectionComponent Selection• PMD microcontrollerPMD microcontroller

– Atmel ATmega644Atmel ATmega644• 8 Mhz on-chip oscillator 8 Mhz on-chip oscillator • 64K Flash64K Flash• 4K RAM 4K RAM • SPI, UARTSPI, UART• 32 GPIO pins32 GPIO pins• 1.8 – 5.5V operating voltage1.8 – 5.5V operating voltage• TQFP 44 packageTQFP 44 package• Cost: $7.87Cost: $7.87

Page 11: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Component SelectionComponent Selection• Wireless transceiverWireless transceiver

– Bluetooth Class 1 or 2 DeviceBluetooth Class 1 or 2 Device– SPI interfacingSPI interfacing– Low Power ConsumptionLow Power Consumption– Integrated Antenna Integrated Antenna

– Mitsumi WRL-C40 Bluetooth 2.0 ModuleMitsumi WRL-C40 Bluetooth 2.0 Module• Class 1 Bluetooth DeviceClass 1 Bluetooth Device• SPI, UART interface circuitsSPI, UART interface circuits• 90 mA typical current draw90 mA typical current draw

Page 12: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Component Selection Component Selection • LCD screenLCD screen

– Large enough character display size for Large enough character display size for menus and audio track informationmenus and audio track information

– Physical dimensions of the displayPhysical dimensions of the display

– CFAH2004A-TFH-JP CFAH2004A-TFH-JP • 4 line, 20 character display4 line, 20 character display• 98mm x 60mm 98mm x 60mm

Page 13: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Component SelectionComponent Selection• PMD BatteryPMD Battery

– 3.7V3.7V– Rechargeable, Lithium IonRechargeable, Lithium Ion– Largest lifetime with a reasonable sizeLargest lifetime with a reasonable size

– Tenergy PL-383562-850 Tenergy PL-383562-850 • 3.7V3.7V• 850 mAh850 mAh• 62mm x 35mm x 3.8mm 62mm x 35mm x 3.8mm

Page 14: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Packaging – PMDPackaging – PMD

• White vacuum-White vacuum-formed plastic formed plastic enclosureenclosure

• 67mm x 90mm x 67mm x 90mm x 15mm 15mm

• 2 bi-color LED 2 bi-color LED indicatorsindicators

• Power toggle Power toggle switch switch

Page 15: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Packaging – Base StationPackaging – Base Station

• White vacuum-White vacuum-formed plastic formed plastic enclosureenclosure

• 140mm x 140mm 140mm x 140mm x 28mm x 28mm

• 2 LED indicators2 LED indicators• 4 user inputs4 user inputs

Page 16: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Schematic/Theory of OperationSchematic/Theory of Operation

• Base station powerBase station power– 5 VDC from wall 5 VDC from wall

wart into barrel wart into barrel jackjack

– MAX1818 LDO MAX1818 LDO regulator drops regulator drops to 3.3 Vto 3.3 V

Page 17: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Schematic/Theory of OperationSchematic/Theory of Operation

• Base Station LCDBase Station LCD– 5 VDC unregulated5 VDC unregulated

powerpower– 3 control & 8 data lines3 control & 8 data lines

from microcontrollerfrom microcontroller– Potentiometer forPotentiometer for

contrast control keptcontrast control keptinternalinternal

Page 18: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Schematic/Theory of OperationSchematic/Theory of Operation

• Base Station I/OBase Station I/O– Four directionalFour directional

buttons forbuttons formenu navigationmenu navigation

– Bi-color LED forBi-color LED forBluetooth statusBluetooth statusindicationindication

– Single-color LEDSingle-color LEDfor power statusfor power statusindicationindication

Page 19: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Schematic/Theory of OperationSchematic/Theory of Operation

• Base Station Bluetooth ModuleBase Station Bluetooth Module– Connected to micro-Connected to micro-

controller as SPIcontroller as SPIslaveslave

– Slave select signalSlave select signalprovided by P2.1 onprovided by P2.1 onmicrocontrollermicrocontroller

– UART signalsUART signalsprovided forprovided foremergencyemergency

Page 20: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Schematic/Theory of OperationSchematic/Theory of Operation

• Base Station microSDBase Station microSD– Provides data memoryProvides data memory

for cached songsfor cached songs– Operates using (6-pin)Operates using (6-pin)

SD ModeSD Mode– Interfaces with micro-Interfaces with micro-

controller via SPIcontroller via SPI– Slave select signalSlave select signal

provided by P0.7provided by P0.7

Page 21: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

PCB LayoutPCB Layout

• Base Station Digital-to-Audio ConverterBase Station Digital-to-Audio Converter– Receives system andReceives system and

data clock, audio data,data clock, audio data,and channel selectionand channel selectionfrom microcontrollerfrom microcontroller

– Accepts data in IAccepts data in I22S formatS format– Configuration registersConfiguration registers

can be modified using can be modified using MS, MC, and MD signalsMS, MC, and MD signals

– Outputs stereo audio signalOutputs stereo audio signalat line levelat line level

Page 22: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Schematic/Theory of OperationSchematic/Theory of Operation

• Base Station MicrocontrollerBase Station Microcontroller– External 20 MHzExternal 20 MHz

oscillatoroscillator– PLL filter circuitPLL filter circuit– I/O expansionI/O expansion

headerheader

Page 23: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Schematic/Theory of OperationSchematic/Theory of Operation

• Base Station In-Circuit ProgrammingBase Station In-Circuit Programming– ““Proprietary” RS-232Proprietary” RS-232

connection throughconnection through8-pin header8-pin header

– RS-232 levelRS-232 leveltranslatortranslator

– Communicates withCommunicates withmicrocontroller viamicrocontroller viaUARTUART

Page 24: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Schematic/Theory of OperationSchematic/Theory of Operation

• PMD Microcontroller & I/OPMD Microcontroller & I/O– Header to monitor output, SPI chip select Header to monitor output, SPI chip select

signals, and battery status inputsignals, and battery status input

– Expansion header for future UART & I/O use, Expansion header for future UART & I/O use, if necessaryif necessary

Page 25: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Schematic/Theory of OperationSchematic/Theory of Operation

• PMD SPIPMD SPI– Same Bluetooth & microSD connections as Same Bluetooth & microSD connections as

on base stationon base station

– SPI header used for ISPSPI header used for ISP

Page 26: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Schematic/Theory of OperationSchematic/Theory of Operation

• PMD PowerPMD Power

– 3.7 V 850 mAh Li+ 3.7 V 850 mAh Li+ batterybattery

– 3.3 V supplied by 3.3 V supplied by MAX710 MAX710 step-up/down step-up/down regulatorregulator

– 5 V from mini USB5 V from mini USB

– MAX1811 handles MAX1811 handles battery charging, battery charging, provides battery provides battery status signalsstatus signals

Page 27: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

PCB - BSPCB - BS

• Component PlacementComponent Placement• Bypass capacitor Bypass capacitor

locationlocation• Oscillator crystalOscillator crystal• 120mm x 105mm120mm x 105mm

Page 28: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

PCB - BSPCB - BS

Page 29: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

PCB – BS – Power separationPCB – BS – Power separation

Page 30: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

PCB – BS - BluetoothPCB – BS - Bluetooth

Page 31: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

PCB – PMDPCB – PMD

• Component PlacementComponent Placement• Bypass capacitor Bypass capacitor

locationlocation• Headers!Headers!• 85mm x 65mm - Size 85mm x 65mm - Size

ConstraintConstraint

Page 32: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

PCB - PMDPCB - PMD

Page 33: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

PCB – PMD – Power ManagementPCB – PMD – Power Management

Page 34: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

PCB – PMD – SPIPCB – PMD – SPI

Page 35: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

• Base StationBase Station– Uses PMDs as Uses PMDs as

remote storageremote storage

– MP3 decoder is MP3 decoder is interrupt-driveninterrupt-driven

Software DesignSoftware Design

Page 36: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Software DesignSoftware Design

• PMDPMD– Slave to the Slave to the

base stationbase station– Sole purpose is Sole purpose is

providing music providing music filesfiles

Page 37: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Software DesignSoftware Design

• SD Flash Memory CardSD Flash Memory Card– Both units utilize SD Flash Both units utilize SD Flash – PMD for main storagePMD for main storage– Base station for a large cacheBase station for a large cache

• FAT16 FilesystemFAT16 Filesystem– Chosen for compatibilityChosen for compatibility– Implemented with an open source libraryImplemented with an open source library

Page 38: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Project Completion TimelineProject Completion Timeline

Page 39: ECE 477 Design Review Team 5  Fall 2007 Wes Chris Josh Dave.

Questions / DiscussionQuestions / Discussion