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

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

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

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

Mutrix TechnologyBenson LamShuozhi YangWinfield Zhao

Gary HengWeiguang Mao

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

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

2

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

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

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

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

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

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

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

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

Digital picture frames Digital music box I-animals

6

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

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

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

Statue consists of 25 cells

Each cell has◦ Crystal bar◦ Mechanical system◦ LED

8

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

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

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

10

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

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

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

Main Components◦ Crystal Bar◦ Linear Movement

Slot◦ Gear Rack and

Gear Set◦ Servo Motor

12

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

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

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

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

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

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

15

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

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

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

17

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

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

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

Tri-Color LED Control Circuit

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

Green)

◦ Allow Full Brightness Control

19

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

20

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

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

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

Pre-processing circuit for data capturing

22

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

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

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

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

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

Static Display Mode

25

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

26

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

Establish Connection

27

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

Main Control Panel

28

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

Crystal Bar Mapping

29

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

Button Color Indication

LED Select

Bar Rise (left-click)

Bar Drop(right-click)

30

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

31

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

32

Simple on-board GUI

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

Establishing connection with DreamBox

Maintaining Connection

Saving Data to DreamBox

33

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

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

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

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

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

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

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

37

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

38

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

Windows Media Player

Music Player – Winamp

39

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

Implemented beat detection algorithm in Matlab

Surprisingly accurate result

40

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

Sampling rate 46.1 KHz Constantly interrupts the CPU for real time

calculation

41

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

42

Compact Disc Quality Design Choice

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

Pre-defined Pattern Design Welcome Pattern Spiral Shape

43

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

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

Rotation, Disco

44

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

Random Assignment

45

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

Random Assignment

46

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

Increase Display Resolution

Wireless Connection

Noise Reduction

Signal Processing Algorithm Improvement

47

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

48

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

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

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

Engineering Science Student Endowment Fund(ESSEF) Award$500

School of Engineering Science $50

50

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

Music Decoration

Help deaf people feel music

Ice lantern show

51

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

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 !!!

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

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

53

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

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

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

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

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

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

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