49
DETAILED DESIGN REVIEW: Wireless Assistive Control System Project 08027 Todd Bentley, ISE Vianna Muller, EE Benjamin Danziger, EE Peter “PJ” Drexel, EE Jay Radharkrishnan, EE James Corcoran, CE Dr. Edward Brown, Advisor Page 1 of 49

DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

DETAILED DESIGN REVIEW:Wireless Assistive Control System

Project 08027

Todd Bentley, ISEVianna Muller, EE

Benjamin Danziger, EEPeter “PJ” Drexel, EE

Jay Radharkrishnan, EEJames Corcoran, CE

Dr. Edward Brown, Advisor

November 2nd, 2007RIT Multidisciplinary Senior Design 1

Page 1 of 40

Page 2: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Design Review: Table of Contents

Function Diagram 3Front End 4

Customer Needs for the Front End 5Strap Design 7BOM: Stra 9

Filter, Controller 10Customer Needs for the Filter and DSP 10Unfiltered EMG data 12Filter types 13Exploration of Crosstalk 14

14DSP 537 Architecture 18CONTROL SYSTEM OPERATION 21PROCESSING REQUIREMENTS AND SPECIFICATIONS 22

Audio System 24Audio Analog-to-Digital Converter (ADC) 24

Wireless System 26RC Car 28

The QFD as it relates to the RC Car. 28Microcontroller 29Development Board 30Programmer 32RC Car Pseudo Code 34Visual Feedback 36BOM: RC Car 39

Bill of Materials 40

Page 2 of 40

Page 3: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Design Review: Functional Diagram

Figure 1: Overall System Functional Diagram

Page 3 of 40

Page 4: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Design Review: Front End

Figure 2: Front End Functional Diagram

Page 4 of 40

Page 5: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Customer Needs for the Front End

Category Nu. Specification Units Ideal Marginal

Put

s E

MG

wire

s an

d el

ectro

des

clos

e to

des

ired

loca

tion

Leng

th o

f wire

s su

ffici

ent f

or m

ost o

pera

tors

Stra

p le

ngth

suf

ficie

nt to

wra

p ar

m o

f mos

t ope

rato

rs

Vel

cro

stro

ng e

noug

h to

hol

d w

ithou

t loo

seni

ng

Wea

r res

ista

nt s

traps

Eas

ily s

tore

d fo

r ext

ende

d pe

riods

of t

ime

Rat

ing

of th

e ap

peal

of t

he g

love

to th

e cu

stom

er.

Hig

h st

reng

th th

read

use

d fo

r con

stru

ctio

n

Gua

rant

eed

safe

ty b

y m

anuf

actu

rer

Am

plifi

er n

o m

ore

than

5 lb

s

Eas

e of

App

licat

ion

Ele

ctro

des

mus

t be

grou

nded

con

sist

ently

Wire

s sh

ould

be

thin

and

insu

late

d

Wire

s m

ust b

e ea

sily

abl

e to

con

nect

to e

lect

rode

s

Doc

umen

tatio

n

Front End A                                      Directs/Protects EMG wires A2

Ergonomic Design, size ft 4 ±1 3       3                   1

Universal Fitment of glove A3

Ergonomic Design, size ft 2 ±0.5   1 1     1                  

Universal Fitment EMG wires A4

Ergonomic Design, size in 8 ±5   1                     3    

Asthetic value ("coolness") A5

The "Fonze" Factor N/A N/A N/A             3           1    

Secures EMG pads in place A6

Location of pads N/A N/A N/A       1                     1

Durable A7 Material N/A N/A N/A       1 3     3           9  Comfortable to wear A8

Ergonomic Design, size in 8 ±5   3       1 3     3  3   1   1

Safe Electrodes and Wires A9

Current into the body A None None                 1     3 3   1

Electrode Size A10 Radius Cm 2 1   3 3            9 3   3  

Page 5 of 40

Page 6: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Anthropometric Summary(cm)

Wrist Breath Elbow Breadth Wrist to ElbowFemale Male Female Male Male

5th 95th 5th 95th 5th 95th 5th 95th 5th 95th4.6 5.9 5.3 6.6 5.7 7.7 6.4 8.2 31.9 41.1

The wrist to elbow dimension requires a maximum only since anyone with arms shorter than 41.1 centimeters will simply have a bit of slack between the wrist and

elbow points.

Page 6 of 40

Summary of Specs and Anthropometric BasisDesired

Spec Strap Anthropometric Data Measure Converted

Circumference around elbow Elbow Strap Elbow Breadth is the diameter of the

elbow 8.2 10.1

Circumference around wrist Wrist Strap Wrist Breadth is the diameter of the wrist 6.6 8.2

Length of wrist to elbow

Connecting Tube Relates to the Wrist to Elbow Distance 41.1 16.2

Height from wrist to thumb Thumb Strap

No anthropometric data exists for such a measure, convenient since it is not

necessary to know.N/A N/A

The final column represents a conversion of the anthropometric data from a diameter to a circumference and converting the measure from centimeters to inches. The final lengths of each strap will need to overlap so an additional 3 inches was added for the

Velcro overlaps.

Page 7: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Figure 3: Three-Dimensional View of the Strap

Page 7 of 40

Page 8: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Figure 4: Strap Components with Measurements

Page 8 of 40

Page 9: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

BOM: Strap

Primary Sources    

ItemQuantity

(Roll) Total Price1" Nylon Webbing 1 - 50 ft Roll $22.90

1" Nylon Web Tubing 1 - 50 ft Roll$20.50

2" Nylon Webbing 1 - 50 ft Roll $30.50

1.0" Duragrip ™ Black Hook Std 1 - 25 ft Roll $12.501.0" Duragrip™ Black Loop Sew-On 1 - 25 ft Roll $12.50

1" Ladder Locks 10 @ $1.17 $11.70

500 Denier Cordura Plus®1 yd $13.40

Sub-total $124.00Est.

Shipping $20.00Total $144.00

Page 9 of 40

Page 10: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Design Review: Signal Processing

Figure 5: Data Processing Functional Diagram

Customer Needs for the Filter and DSP

Category Number Specification Units Ideal Marginal

Afte

r A/D

con

vers

ion,

sa

mpl

ing

is h

igh

Num

ber o

f inp

uts

for e

ach

com

man

d an

d cl

arity

Doc

umen

tatio

n

Filter/DSP B              Sampling (Digital per line) B1 Range second 500 ±250 9   1Sampling Lines B2 Input N/A 4 >4   9 1Speaker, Analog Output B3 Output N/A 1     9 1

Page 10 of 40

Page 11: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Implementation of Filter in the system

The 4 lines of on analog data enter DAQ and leave digitized and enter MATLAB. From here the filtration process will start. As of right now, a sampling frequency of 500Hz is being used.

In senior design II, the filtration process ADC will happen inside of the DSP along with the filtering. After the data is filtered, it is sent the control system to figure out how to process the data further.

Page 11 of 40

Page 12: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Unfiltered EMG data after RMS

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 50

0.5

1

1.5

2

2.5

3

3.5

4

time (s)

volta

ge (v

)

Test 1-2

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 50

0.5

1

1.5

2

2.5

3

3.5

4

time (s)

volta

ge (v

)

ben thumb right2

Figure 6: an example of the A movement with a hold Figure 7: example of the B movement (20K amplification) (5K amplification)

0 1 2 3 4 5 60

0.5

1

1.5

2

2.5

3

3.5

4

time (s)

volta

ge (v

)

Test 11L-2

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 50

0.5

1

1.5

2

2.5

3

3.5

4

time (s)

volta

ge (v

)

Test A-1 arm

Figure 8: example of the B movement with a hold Figure 9: example of the A movement (5K amplification) (20K amplification)

Page 12 of 40

Page 13: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Filter types

From the International Encyclopedia of Ergonomics and Human Text, it is seen that the three main filters to look at are a Low pass, a High pass and Notch filter.

The low pass will be used with a 600hz cutoff frequency when working with surface emg and 1000Hz when working with fine wire EMG to prevent aliasing. It is suggested to use an analog filter for this.

The High pass filter would be used with a 15 cutoff, due to the rapid hand movements to remove movement artifacts. It is suggested to use a 4th order Butterworth filter.

The notch filter is used at 60Hz to get rid of noise from power lines.

Working with RMS data

When working with the EMG signal, we want to work with the RMS data (root mean squared). In order to replicate this on the grass telefactor, the RMS function will have to be performed on the DSP.

An equation similar to this will have to be used.

Xrms=√ (X12+X 2

2+X32+.. .+X n

2)n

Page 13 of 40

Page 14: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Exploration of Crosstalk

Shown in the following graph is data obtained of a person doing the A movement with electrodes on both the arm and thumb. 50K amplification was used was the forearm while 5k was used on the thumb.

0 1 2 3 4 5 6 7 8 9 10-0.5

0

0.5

1

1.5

2

2.5

3

3.5

4

4.5

time (s)

volta

ge (v

)

Cross talk with movement A

Figure 10: Crosstalk on Movement A

In the next graph is data obtained of a person doing the B movement with electrodes on both the arm and the thumb thenar muscle group. 50K amplification was used was the forearm while 5k was used on the thumb.

0 1 2 3 4 5 6 7 8 9 10-0.5

0

0.5

1

1.5

2

2.5

3

3.5

4

4.5

time (s)

volta

ge (v

)

Cross talk with movement B

Figure 11: Crosstalk on Movement B

With these two movements, there is minimal cross talk to be seen.

Page 14 of 40

Page 15: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Control System

The control system along with the situation is properly modeled here. How the control system fits into the overall project architecture is shown in the block diagram below. The controller and the digital filter is both implemented in the DSP processor.

Figure 12: System architecture under scrutiny

The control system was designed qualitatively by modeling the situation at hand. For instance, the situation is presented where a muscle is flexed from its initial rest position at point (a) in the figure below to the point (b) and returned back to its original rest position. The user’s motion does not have to be like this, however it represents the range of motion any muscle can have. The EMG data is recorded to process and develop the control system in a similar manner.

Figure 13: The range of movement of muscle under scrutiny

The figure below shows how this can be shown through a graph. The points (a) and (b) from figure above is shown on the figure above. This graph can be seen as the input to the controller. The only exception is that 4 different muscles excerpt properties to a similar model. The 4 different muscles exhibit the same range of force. IT SHOULD BE NOTED THAT THESE GRAPHS ONLY MODEL THE SITUATION AND DOES NOT REFLECT ANY EMG DATA.

Page 15 of 40

Page 16: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Figure 14: Controller input model

For this project we have 4 different muscular inputs that translate to subsequent outputs that go through a wireless transmitter to the RC car. For instance how one input is related to the output is shown in figure below.

Figure 15: Relationship of EMG input data to move left to the output on the RC car

It can be noted that the EMG data to move right works in a similar way, except the output will be taking into account the range in which the tires of the RC car turn right. However, the input-output relation to move forward and backward is slightly different. This is more clearly shown in figure below.

Page 16 of 40

Page 17: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Figure 16: Relationship of EMG input data to move forward to the output of the RC car.

Here, it can be seen that the input is tied to the velocity of the RC car to move forward. The same relationship is applied to move the car backward. This whole modeling idea is influenced from fuzzy logic modeling. However, the lack of overlapping membership functions, made fully fledged implementation of fuzzy logic unnecessary and impractical. However, concepts from fuzzy logic are used in this digital controller. A much clear representation of this modeling is shown in figure below.

Figure 17: The explicit modeling of the control system

Everything explained till now is shown in the figure above. How the force excerpted by the muscle should translate to the movement of the RC car is explained in the figure above. A further explanation of how this is done in the DSP processor is explained below.

Page 17 of 40

Page 18: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

DSP 537 Architecture

Figure 18: BF537 Board Architecture

It can be seen from the figure above that the processor does not have an in-built ADC or DAC. The ADC/DAC is on the Development board.

General-Purpose I/O ModulesThe processor supports 48 bidirectional or general-purpose I/O (GPIO) signals. These 48 GPIOs are managed by three different GPIO modules, which are functionally identical. One is associated with port F, one with port G, and one with port H. Every module controls 16 GPIOs available through the pins PF15–0, PG15–0, and PH15–0. Each GPIO can be individually configured as either an input or an output by using the GPIO direction registers (PORTxIO_DIR). When configured as output, the GPIO data registers (PORTFIO, PORTGIO, and PORTHIO) can be directly written to specify the state of the GPIOs.

The GPIO direction registers are read-write registers with each bit position corresponding to a particular GPIO. Logic 1 configures a GPIO as an output, driving the state contained in the GPIO data register if the peripheral function is not enabled by the function enable registers. Logic 0 configures a GPIO as an input.

Note when using the GPIO as an input, the corresponding bit should also be set in the GPIO input enable register. Otherwise, changes at the input pins will not be recognized by the processor. The GPIO input enable registers (PORTFIO_INEN, PORTGIO_INEN, and Page 18 of 40

Page 19: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

PORTHIO_INEN) are used to enable the input buffers on any GPIO that is being used as an input. Leaving the input buffer disabled eliminates the need for pull-ups and pull-downs when a particular PFx, PGx, or PHx pin is not used in the system. By default, the input buffers are disabled.

Once the input driver of a GPIO pin is enabled, the GPIO is not allowed to operate as an output anymore. Never enable the input driver (by setting PORTxIO_INEN bits) and the output driver (by setting PORTxIO_DIR bits) for the same GPIO. A write operation to any of the GPIO data registers sets the value of all GPIOs in this port that are configured as outputs. GPIOs configured as inputs ignore the written value. A read operation returns the state of the GPIOs defined as outputs and the sense of the inputs, based on the polarity and sensitivity settings, if their input buffers are enabled.

The GPIO pins on the processor are also hooked up to various switches on the board, which can be accessed only when the switches are turned OFF.

The figures below show the detailed review of the processor and its GPIOs. Here, four GPIOs are used as the input for the four EMG signals, before they are filtered. These four pins are pins 47, 48, 49, 50 on connector J2 this is connected to the PG ports 8-11. This is circled in figure 9, also the particular EMG input data is also labeled. All four of these pins are hooked up to the PG port on the processor as shown in figures 8 and 9.

Figure 19: GPIOs in the BF537 processor

Page 19 of 40

Page 20: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Figure 20: J2 connector on the Development boardIt is apparent from the functional diagram that there needs to be one GPIO for the wireless transmitter. This is PG13 which will be connected to the J2 connector.

Page 20 of 40

Page 21: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

CONTROL SYSTEM OPERATION

How the control system functions will be explained in detail in this section. At this point, it is assumed that the digital filter cleans out the raw EMG data. The filtered EMG data is fed to the controller; this is clearly shown in the figure below.

Figure 21: Detailed operations diagram of the control system

The controller accepts the inputs and transmits 8 bits of data as the output through the wireless transmitter. The controller logic is pretty important in deciding the output and is briefly explained here. The truth table clearly shows the situations in which a particular output can be high.

Left (i) Right (i) Forward(i) Reverse(i) Left(o) Right(o) Forward(o)

Reverse(o)

0 0 0 0 0 0 0 00 0 0 1 0 0 0 10 0 1 0 0 0 1 00 0 1 1 0 0 0 00 1 0 0 0 1 0 00 1 0 1 0 1 0 10 1 1 0 0 1 1 00 1 1 1 0 1 0 01 0 0 0 1 0 0 01 0 0 1 1 0 0 11 0 1 0 1 0 1 01 0 1 1 1 0 0 01 1 0 0 0 0 0 01 1 0 1 0 0 0 11 1 1 0 0 0 1 01 1 1 1 0 0 0 0

Table 1: Truth Table for the input-output relation

The truth table can be summarized to the follow assumptions:Left output is high when the Left input is high and when the Right input is low.Right output is high when the Right input is high and when the Left input is Low.Forward input is high when the Forward input is high and when the Reverse input is low.Reverse input is high when the Reverse input is high and when the Forward input is low.

Page 21 of 40

Page 22: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Depending on the inputs, the output that will go through the wireless transmitter is an 8 bit number. How the 8-bit data is allocated is shown in the figure below.

Figure 22: Bit allocation for the 8-bit output

From the above figure, it is apparent that there are 16 positions for forward/Reverse Directions and 16 positions for Left and Right Directions.

All of this information is integrated using the following pseudo code:

a= 4bits of information for right/left turnb=4bits of information for forward/reverse directionIf (left amplitude > right amplitude)Then (resulting left turn= (left – right) of a’s left magnitude)If (right amplitude > left amplitude)Then (resulting right turn = (right-left) of signed a’s magnitude)If (right amplitude = left amplitude)Then (a=0000)

If (forward amplitude > reverse amplitude)Then (resulting forward magnitude = (forward – reverse) b magnitude)If (reverse amplitude > forward amplitude)Then (resulting reverse magnitude = (reverse – forward) signed b magnitude)If (forward amplitude = reverse amplitude)Then (b=0000)This clearly means that each direction’s magnitude is divided into 8 divisions. Also, the control system is itself an open loop control system were the only feedback is the user’s eyes. Also it can be seen the user is the actual control system while the digital controller could be seen as a simple interface, since no major control algorithm is being used there.

PROCESSING REQUIREMENTS AND SPECIFICATIONS

For this project the Nyquist frequency is assumed to be around fN= 1kHz.Thus:

fS ~ 10 fN = 10kHzTherefore: BW = 10kHz

Thus the dynamic range for the Analog to Digital converter is from 1 kHz to 10 kHz. This results in a dynamic range of 23.52dB.

A total of 6 GPIOs are needed, 4 GPIOs for the 4 EMG channels, 1 GPIO as the output from the controller to wireless transmitter. Also 1 GPIO is needed for the audio feedback that was added in this project.

Page 22 of 40

Bit #: 7 6 5 4 3 2 1 0Sig

nMagnitude

Sign

Magnitude

Page 23: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

The 4 EMG input signals needs to be sampled simultaneously than serially. Although multiplexing 2 inputs such as forward and reverse as one along with right and left as another might workout.

This results in a resolution of 8 bits or higher. Thus the skew rate is .

The propagation delay for the GPIOs is assumed to be something less than the clock cycle on the DSP board.

Time frame for the DSP

Fidelity of the Signal is tested by conducting the dynamic and static tests. A good shape of the curve is anticipated before it’s generated from various tests. The possibility of getting an unwanted signal is limited.

The 8 bit output has a refresh rate with the maximum of 4800 baud rate. This translates to a maximum transfer of 150 transfers/sec. The normal human eye can perceive about 26 frames/sec. Any, transfer rate higher than that, will work in this case.

Page 23 of 40

Page 24: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Design Review: Audio System

Figure 23: Audio Capability Functional Diagram

Audio Analog-to-Digital Converter (ADC)

The ADC is AD1871 96 kHz analog-to-digital codec (ADC); it also has a DAC, which is AD1854 96 kHz digital-to-audio codec (DAC). It also has 1 input stereo jack and 1 output stereo jack. This should be enough for Audio evaluation processes. The AD1871 is a stereo audio ADC intended for digital audio applications requiring high performance analog-to-digital conversion. It features two 24-bit conversion channels each with programmable gain amplifier (PGA), multi-bit sigma-delta modulator and decimation filters. Each channel provides 97 dB of THD+N and 107 db of Dynamic Range making the AD1871 suitable for applications such as Digital Audio Recorders and Mixing Consoles. On the other hand, the AD1854 is a high performance, single-chip stereo, audio DAC delivering 113 dB Dynamic Range and 112 dB SNR (A-weighted—not muted) at 48 kHz sample rate. It is comprised of a multibit sigma-delta modulator with dither, continuous time analog filters and analog output drive circuitry. Other features include an on-chip stereo attenuator and mute, programmed through an SPI-compatible serial control port. The AD1854 is fully compatible with current DVD formats; including 96 kHz sample frequency and 24 bits. It is also backwards compatible by supporting 50 ms/15 ms digital de-emphasis intended for "redbook" 44.1 kHz sample frequency playback from compact discs.

The AD1854 has a very simple but very flexible serial data input port that allows for glue less interconnection to a variety of ADCs, DSP chips, AES/EBU receivers and sample rate converters. The AD1854 can be configured in left-justified, I 2 S, right-justified, or DSP serial port compatible modes. The AD1854 accepts serial audio data in MSB first, twos-complement format. A power-down mode is offered to minimize power consumption when the device is inactive. The AD1854 operates from a single 5 V power supply.

Page 24 of 40

Page 25: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Page 25 of 40

Page 26: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Design Review: Wireless Communication

Figure 24: Wireless Functional Diagram

Wireless SystemThe wireless link between the DSP and RC car consists of a paired ASK transmitter module with an

output of up to 8mW depending on power supply voltage and a receiver with a sensitivity of 3uV. Frequency: 434 MHz

Range: 500 ft

Max Data Throughput: 4800bps

Transmitter Voltage Range: 2 – 12V

Receiver Voltage Range: 4.5 – 5.5V

Optional Antenna: 30-35cm of wire

From development board: 5V

Page 26 of 40

Page 27: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Figure 25: Wireless Transmitter/Receiver Hardware

Page 27 of 40

Page 28: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Design Review: RC Vehicle

Figure 26: Robot Functional Diagram

The QFD as it relates to the RC Car.

Category Number Specification Units IdealMarginal V

ehic

le M

ust r

ecei

ve R

F co

mm

ands

Veh

icle

Eas

ily C

ontro

lled

Effi

cien

t con

trol o

f all

driv

es/s

ervo

s

Veh

icle

is a

esth

etic

ally

ple

asin

g

Mus

t be

rela

tivel

y sm

all c

hass

is

Doc

umen

tatio

n

Proof of Concept C                    Chassis C1.1 Length in 12 20     1 1 3 1  C1.2 Width in 6 8     1 1 3 1  C1.3 Max Weight lb < 10 < 20     1 1   1Control C2.1 Transmission range m 150 50 3         1  C2.2 Minimum turning radius ft 2 5   3       1  C2.3 Accuracy of Path in ±3 ±3   1       1µProcessor C3.1 Sufficient PWMs # 2 2     9     1Power C4.1 Minimum battery life min 60 45     3     1  C4.2 Minimum battery supply voltage V 6 >6     3     1

Page 28 of 40

Page 29: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Microcontroller

The microcontroller being used for the task of controlling the vehicle is the ATTiny2313. Up to 20 MHz operating frequency

8bit processor

15 I/O Lines

UART compatible pins

Data and Non-volatile program and data memories

o 2K Bytes In-System Self Programmable Flash

o 128 Bytes In-System Programmable EEPROM

o 128 Bytes Internal SRAM

One 8bit Timer/Counter

One 16bit Timer/Counter

Four PWM Channels

Operating Voltage Range: 2.7 – 5.5V (@10MHz)

Typical Power Consumption

o Active Mode

1MHz, 1.8V: 230uA

o Power-down Mode

<0.1uA at 1.8V

Page 29 of 40

Figure 27: ATtiny 2313 Microcontroller

Page 30: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Microcontroller Development Board:

Figure 28: Microcontroller Development Board Schematic

Page 30 of 40

Page 31: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Microcontroller Development Board:

Description:

Prototype board for 20 pin AVR microcontrollers with power supply circuit, crystal oscillator circuit, RS232 port, reset IC, status LED, 10 pin STK ICSP port.

ICSP 5x2 pin connector for in-circuit programming with AVR Programmers Voltage regulator +5V or 3.3V, LM317 Quartz crystal oscillator circuit: 10Mhz Reset IC ZM33064 Status LED connected to PB7 via removable jumper AGND-GND AVCC-VCC jumpers DIL28 microcontroller socket RS232 DB9 female connector RS232 MAX232 interface circuit with Tx, Rx, CTS, DTR/RTS signals Extension slot on every uC pin Grid 100 mils GND bus Vcc bus

Page 31 of 40

Page 32: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Microcontroller Programmer:Description: AVR-PG1B is programmer based on serial port PonyProg design. It takes the power supply from the target board. The connector is 2x5 pin with 0.1" step and Atmel STKxxx compatible layout.

Figure: Microcontroller Programmer

Page 32 of 40

Page 33: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Tit le

S ize D o c u m e n t N u m b e r R e v

D a t e : S h e e t o f

<D o c > 1

R C V eh ic le S c h e m a t ic

B

1 1W e d n e s d a y , O c t o b e r 3 1 , 2 0 0 7

U 1

A TTIN Y 2 3 1 3

P A 0 / XTA L 15

P A 1 / XTA L 24

P A 2 / R E S E T/ D W1

P B 0 / A I N 0 / P C I N T01 2

P B 1 / A I N 1 / P C I N T11 3

P B 2 / O C 0 A / P C I N T21 4

P B 3 / O C 1 A / P C I N T31 5

P B 4 / O C 1 B / P C I N T41 6

P B 5 / M O S I / D I / S D A / P C I N T51 7

P B 6 / M I S O / D O / P C I N T61 8

P B 7 / U C S K / S C K / P C I N T71 9

G N D1 0

V C C2 0

P D 0 / R XD2

P D 1 / TXD3

P D 2 / C K O U T/ XC K / I N T06

P D 3 / IN T17

P D 4 / T08

P D 5 / O C 0 B / T19

P D 6 / I C P1 1

0

V 1

3 .3 V d c

0

C 1 11 0 0 n

R 31 k

B U T0

1

2

Acceleration

Steering

Q1 0 M H z

C 9

2 2 p

C 1 02 2 p0

U 2L M D 1 8 2 0 0

BO

OT

ST

RA

P 1

1O

UT

PU

T 1

2

DIR

EC

TIO

N I

NP

UT

3

BR

AK

E I

NP

UT

4P

WM

IN

PU

T5

V S P O W E R S U P P L Y6G R O U N D

7

CU

RR

EN

T S

EN

SE

OU

TP

UT

8T

HE

RM

AL

FLA

G O

UT

PU

T9

OU

TP

UT

210

BO

OT

ST

RA

P 2

11

U 6

7 4 F 1 3 8

A 01

A 12

A 23

Y 77Y 69Y 51 0Y 41 1Y 31 2Y 21 3Y 11 4Y 01 5

0V 2

6 V d c

0

C 51 0 n

R 4

1 0 0

R 5

1 0 0

C 51 0 n

R 6

1 0 0

R 7

1 0 0

R 8

1 0 0

R 9

1 0 0

R 1 0

1 0 0

U 3L M D 1 8 2 0 0

B O O TS TR A P 11

O U TP U T 12

D I R E C TI O N I N P U T3

B R A K E I N P U T4

P W M I N P U T5

VS

PO

WE

R S

UP

PLY

6

GR

OU

ND

7

C U R R E N T S E N S E O U TP U T8

TH E R M A L F L A G O U TP U T9

O U TP U T 21 0

B O O TS TR A P 21 1

MicrocontrollerWireless receiver

Motor Controls

C 6

1 0 n

C 7

1 0 n

U 7

7 4 F 1 3 8

A 01

A 12

A 23

Y 77Y 69Y 51 0Y 41 1Y 31 2Y 21 3Y 11 4Y 01 5

R 1 1

1 0 0

0

R 1 2

1 0 0

R 1 3

1 0 0

R 1 4

1 0 0

R 1 5

1 0 0

R 1 61 0 0

R 1 71 0 0

R 1 81 0 0

R 1 91 0 0

ICSPICSP

U 4 A

M O -R X3 4 0 0

D a t a3

D a t a2

G N D1

V C C4

V C C5

G N D6

G N D7

A N T8

ICSP

0

Visual Feedback

D C M o t o rG N D

1 8V C C

1 7

Left

Rear

Side

SideRight

U5B

D C M o t o rG N D

1 8V C C

1 7

Figure 29: RC Vehicle Circuit Schematic

Page 33 of 40

Page 34: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

RC Car Pseudo Code:The RC Car must accept digital control information from a wireless source and translate

this information into direction and magnitude information which will control the motors.The RC vehicle will utilize interrupt driven subroutines for both of these tasks. As shown

in the Vehicle Circuit Schematic, the wireless transmitter will interface directly to the microprocessor through a digital input on pin 16 (PB4). Upon receiving data an interrupt will be thrown causing the received data to be verified. To indicate the beginning of a data transmission the transmitter will send a header byte having neutral disparity (eg. 0xAA, 0x55). Upon identifying this byte subsequent data will be accepted, otherwise the byte is dropped and further data is not analyzed. Upon receiving a header successfully two additional bytes will be accepted. The first is the data byte and the second is its compliment. If the addition of these two bytes is equal to zero, the first byte will be stored for later use in the motor control subroutine. The design of this communications protocol will limit data transfer to a maximum of 150 samples/sec.

The motor control subroutine references a stored byte to update the motor control parameters. This subroutine is executed at a set interval and in effect will control how frequently the robots motor parameters will be changed. This subroutine will parse the stored data byte for direction and magnitude information for the forward/reverse and left/right motors.

It is estimated that code requirements to implement the functions necessary for the operation of the vehicle to be approximately 1K bytes.

Figure 30: RC Car Circuit Board Placement Mock-U

Page 34 of 40

//Receive wireless data//Enter from receive interruptwait:

Read in a byte from the serial connectionClear Receive Interrupt and Disable interrupts

If byte is equal to start byteGet byte1Get byte2 //We expect byte2 to be the compliment of byte1If( byte1 + byte2 == 0)

store byte1 to MotorByteelse

Toss byteselse

continue to wait for start byte

Enable interrupts

//Setup Motors//Enter from timed interrupt at least 30 times/sec

//Forward/Reverse Motor Controlsmask upper four bits of MotorByteSet fwd/rvs direction based on bit 3Set fwd/rvs PWM based on bits 0-2

Move lower 3 bits to mux to update fwd/rvs LEDs

//Right/Left Motor Controlsshift MotorByte right 4mask upper four bits of MotorByteSet left/right direction based on bit 3Set left/right PWM based on bits 0-2

move lower 3 bits to mux to update left/right LEDs

Page 35: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Figure 31: RC Car Circuit Board Placement Mock-Up

Page 35 of 40

Page 36: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Visual FeedbackConcern was expressed in the proposed control design in the fact that there will be little

feedback to the user to indicate how the vehicle is responding to a user’s actions. One mechanism devised to provide feedback on the actions being received by the vehicle is through lighted indicators on the sides and rear of the vehicle.

It is intended that these be composed of individual LEDs aligned linearly on the sides and rear of the vehicle (as shown in the images to follow). These lights would range in color from green yellow red. The different colors will be used to indicate a magnitude of direction. For example, if the user is turning left, the LEDs at the back of the vehicle will light the left half of the LEDs according to the magnitude of the direction. Similarly if a user is driving forward, the lights positioned at the side of the vehicle will light indicating magnitude of direction in the forward or reverse direction.

These Lights will be connected to a 3-to-8 multiplexor which in turn will connect to the digital outputs of the ATtiny2313. A total of 8 discrete levels of magnitude will be able to be indicated in the left/right directions and the forward/reverse directions.

The lights will be installed behind a plastic cover which lies flush with the truck body. The plastic cover and the packages of the LEDS can be sanded to help diffuse the light and create the appearance of a clean transition between colors.

Page 36 of 40

Page 37: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Figure 32: RC Car Side Lighting Mock-Up

Page 37 of 40

Page 38: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Figure 33: RC Car Rear Lighting Mockup

Page 38 of 40

Page 39: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

BOM: RC Car

RC Vehicle BOMComponent Quantity Retail Link Cost/Item Total Component CostATtiny2313 3 Link $2.88 $8.64AVR Dev board 1 Link $16.95 $16.95Power Supply 1 Link $5.95 $5.95Serial Cable 1 Link $3.95 $3.95Programmer 1 Link $12.95 $12.95H Bridge 1 Sampled $0.00 $0.00DC Motor (Forward/Reverse) 1 From RC Car $0.00 $0.00DC Motor (Left/Right) 1 From RC Car $0.00 $0.00Wireless Link 315MHz 1 Link $16.95 $16.95Wireless Link 434MHz 1 Link $16.95 $16.95RC Car 1 WalMart $19.97 $19.97 5mm Red LED 20 Link (152805) $0.19 $3.805mm Green LED 20 Link (1586197) $0.65 $13.005mm Yellow LED 20 Link (152792) $0.17 $3.403-to-8 Multiplexor 10 Link (835315) $0.20 $2.0010 pin 100Ω Resistor network 10 Link (280671) $0.26 $2.60 Total Cost $127.11

Page 39 of 40

Page 40: DETAILED DESIGN REVIEW:edge.rit.edu/.../public/P08027_design_review_email.docx · Web viewRIT Multidisciplinary Senior Design 1 Design Review: Table of Contents Function Diagram3

Design Review: Bill of Materials

Comprehensive Bill of Materials

Comprehensive BOMSystem Subsystem Number of Parts Subsystem Cost Total CostFront End 16

$ 144.00 Strap 16 $ 144.00 Amplifier Signal Processing Audio Proof of Concept 93

$ 127.11 Wireless System 2 $ 33.90 Car with Supplies 91 93.21 Total Parts Total Cost

109 271.11 271.11

Page 40 of 40