Mutrix Technology Benson Lam Shuozhi Yang Winfield Zhao Gary Heng Weiguang Mao.

Post on 13-Jan-2016

219 views 0 download

Transcript of Mutrix Technology Benson Lam Shuozhi Yang Winfield Zhao Gary Heng Weiguang Mao.

Mutrix TechnologyBenson LamShuozhi YangWinfield Zhao

Gary HengWeiguang Mao

Team Members and Roles Design Motivation Project Description and Features System Overview Schedule and Milestone Final Thought Team Dynamic

2

Benson Lam – Chief Executive Officer (CEO)◦ Role in the project:

Benson Lam devoted most of his time in developing the firm software and designing the mechanical system of Dreambox.

Winfield Zhao – Chief Technical Officer (CTO)◦ Role in the project:

Winfield Zhao mainly focus on the whole mechanical system of Dreambox.

3

Shuozhi Yang – Chief Programming Officer (CPO)◦ Role in the project:

Shuozhi is the main programmer in the team. His strong programming background is one of the key componets to the success of Dreambox.

Gary Heng – Chief Design Officer (CDO)◦ Role in the project

Gary focused on the design of amplitude patterns. He also built the beat algorithm.

4

Weiguang Mou – Chief Financial Officer (CFO)◦ Role in the project:

Weiguang focused on the design of LED pattern. He also assisted building the mechanical system.

5

Strong market for electronics devices◦ Digital music gadgets take a large portion

Digital picture frames Digital music box I-animals

6

Durability won’t last long in the competitive market if:◦ Impractical functionality ◦ lack of innovation

Solution:◦ A digital music gadget that has practical functionality

Entertainment system Home decoration

◦ DreamBox!!

7

Statue consists of 25 cells

Each cell has◦ Crystal bar◦ Mechanical system◦ LED

8

Two Modes of operation

◦ Dynamic Mode: A music player is connected to the system Music is filtered and analyzed by an algorithm Algorithm detect the beat level of the music and output

different 3D shape

◦ Static Mode: Display shapes drawn by the users The users first define shapes on the GUI GUI communicate with the board and output the shapes

users defined

9

10

Mechanical◦Design Mechanical system◦Component choosing

Hardware◦Motor Controller◦LED control circuit◦dsPIC development board◦ADC pre-processing circuit

Dynamic Mode

◦Beat Detection Algorithm

Static Mode◦GUI ◦Communication

Pattern Design◦LED pattern◦Motor pattern

11

Main Components◦ Crystal Bar◦ Linear Movement

Slot◦ Gear Rack and

Gear Set◦ Servo Motor

12

Crystal Bar ◦ Made of Thin Plastic Glass◦ Print with White◦ 4X4X9cm

Linear Movement Slot ◦ Hold the Gear Rack in

Place◦ Tricolor LED installed on

the Top

Gear Rack and Gear Set ◦ Translate Rotational

Motion to Linear Motion

13

Micro Servo Motor◦ Allowable 180 degree turn◦ Control by Pulse Width from 0.5ms to 2.5 ms in 15 ms

period◦ Operating Speed: 0.3sec/60degree

14

4 Main Sections◦ Motor Controller◦ Tri-Color LED Control Circuit◦ dsPIC Development Board◦ ADC Pre-processing Circuit

15

Motor Controller – Lynxmotion SSC-32 Servo Controller◦ High Resolution 1us◦ Support up to 32 Servo

Motors◦ Allow Single Move and

Group Move◦ Serial Interface (RS-232)

16

17

Motor Controller – Data Formal◦ # <ch> P <pw> S <spd>... # <ch> P <pw> S <spd> T

<time><cr>

◦ <ch> =Channel number in decimal (0 – 31)◦ <pw> =Pulse width in microseconds (500 – 2500)◦ <spd> =Movement speed in uS per sec for one channel.

(Optional)◦ <time> =Time in mS for the entire move, affects all

channels, 65535 max. (Optional)◦ <cr> =Carriage return character

18

Tri-Color LED Control Circuit

◦ Allow Full Color Control Switching between each Color (Red, Blue and

Green)

◦ Allow Full Brightness Control

19

20

dsPIC Development Board – dsPICDEM GP 1.1 Plus Development Board◦ dsPIC30F6014A

12-bit 200Ksps ADC 4Kbytes EEPROM Up to 30MIPS Operation

◦ Two RS232 Channels◦ Four Push Buttons◦ 122X32 dot LCD◦ Audio Input & output Sockets

21

Pre-processing circuit for data capturing

22

Display static decorative styles designed by users

Provide full control over all components of DreamBox

Provide users a convenient platform to design their own decorative styles

23

Features◦ Ease of use:

Plug-and-play Straightforward graphical user interface on PC Simple user interface without PC Recall user-designed styles at any time and any

place

◦ Full control over DreamBox Crystal bars LED’s

24

Static Display Mode

25

26

Establish Connection

27

Main Control Panel

28

Crystal Bar Mapping

29

Button Color Indication

LED Select

Bar Rise (left-click)

Bar Drop(right-click)

30

31

32

Simple on-board GUI

Establishing connection with DreamBox

Maintaining Connection

Saving Data to DreamBox

33

Establishing connection with DreamBox

◦ Handshake Stage I: GUI sends flag requesting for establishing connection; if no reply is received in timeout time, prompt message; if expected reply is receive, enter Handshake Stage II.

◦ Handshake Stage II: GUI sends flag requesting data from DreamBox; if no reply is received in timeout time, prompt message; if data is received completely, GUI enters main control panel.

34

Maintaining Connection

◦ Step I: DreamBox sends confirmation byte to GUI if no command is received within certain amount of time

◦ Step II: If no reply is received within timeout time, DreamBox exits from connection state; if expected reply is received, connection state is maintained

35

Saving Data to DreamBox

◦ Synchronized data transfer to provide sufficient time for EEPROM storing operation

◦DreamBox returns Rdy signal to GUI for each byte of data processed

36

37

38

Windows Media Player

Music Player – Winamp

39

Implemented beat detection algorithm in Matlab

Surprisingly accurate result

40

Sampling rate 46.1 KHz Constantly interrupts the CPU for real time

calculation

41

42

Compact Disc Quality Design Choice

Pre-defined Pattern Design Welcome Pattern Spiral Shape

43

When Music is Unplugged or Paused Static LED Sequence Displayed 6 Random Assignment Snake, Clock, Heart, Row Rotation, Diagonal

Rotation, Disco

44

Random Assignment

45

Random Assignment

46

Increase Display Resolution

Wireless Connection

Noise Reduction

Signal Processing Algorithm Improvement

47

48

49

Proposed Actual Discrepancy

Microcontroller dev. Board $300 $570 -$270

LED’s $20 $30 -$10

USB-to-Serial Adaptor n/a $20 -$20

Breadboard n/a $10 -$10

Servo Motors $500 $160 $340

Gears n/a $80 -$80

Motor Controller n/a $66 -$66

Crystal Bars $50 $50 $0

Power Amplifier $200 $0 $200

Shift Register n/a $20 -$20

Circuit Components $50 $0 $50

Cover $100 $20 $80

Others $50 $120 -$70

Total: $1270 $1146 $124

Engineering Science Student Endowment Fund(ESSEF) Award$500

School of Engineering Science $50

50

Music Decoration

Help deaf people feel music

Ice lantern show

51

Accomplished a project from nothing to completion

Hands on experience with ◦ hardware design ◦ firmware design ◦ mechanical design

Lots of programming Improved soldering skills Improved documentation skills Shipping to Point Robert can save a lot !!!

No internal conflict Everybody has been working hard Teamwork!!!

53

Dreambox is successfully built and working as expected◦ Different crystal bar and LED patterns output in

Dynamic mode◦ A user-friendly software user interface is built◦ Users can build the shape of their interest easily

in the static mode

We will continue this project for further improvement

Sources of Information http://www.microchip.com http://www.kelvin.com http://www.leeselectronic.com http://www.robotshop.ca http://www.toysonics.com

We would like to thank◦ Patrick Leung◦ Steve Whitmore◦ Jason Lee◦ Jamie Westell