embodied speech and facial expression avatar critical design review

28
Embodied Speech and Facial Expression Avatar Critical Design Review Dan Harbin - Evan Zoss - Jaclyn Tech - Brent Sicking March 10, 2004

Upload: teegan-chandler

Post on 02-Jan-2016

25 views

Category:

Documents


1 download

DESCRIPTION

Embodied Speech and Facial Expression Avatar Critical Design Review. sss Dan Harbin - Evan Zoss - Jaclyn Tech - Brent Sicking sss March 10, 2004. Problem Background/Needs Statement. There has been a great deal of research trying to understand how a person interacts with a computer. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Embodied Speech and Facial Expression Avatar Critical Design Review

Embodied Speech and Facial Expression Avatar Critical Design Review

Dan Harbin - Evan Zoss - Jaclyn Tech - Brent Sicking

March 10, 2004

Page 2: Embodied Speech and Facial Expression Avatar Critical Design Review

Problem Background/Needs Statement

• There has been a great deal of research trying to understand how a person interacts with a computer.

• Messages of the face help illustrate verbal communication by revealing what the expresser is feeling or trying to convey.

• The ability to generate animated facial expressions together with speech is important to many diverse application areas.– A deaf person could use an animated face as a lip-

reading system.– An autistic child could be positively affected from a

robotic face in terms of social interaction, language development, and learning through structure and repetition.

Page 3: Embodied Speech and Facial Expression Avatar Critical Design Review

Goals and Objectives

• The overall goal of this project is to create a robotic face capable of displaying human emotion accompanied with speech.

Page 4: Embodied Speech and Facial Expression Avatar Critical Design Review

Goals and Objectives• Reverse engineer Yano’s motors and sensors so we

are able to move them to any desired position.• Develop a GUI that allows the user to move each

motor in both directions to a desired position.• Research the psychology behind the use of facial

expressions to convey emotion and mimic these facial expressions with the Yano face.

• Develop a GUI that allows the user to select and display real human facial expressions.

• Add a microphone input in which we will develop software to mimic speech based on a measure of intensity.

• Incorporate facial expressions with speech input to complete the avatar.

Page 5: Embodied Speech and Facial Expression Avatar Critical Design Review

Yano Control System

Page 6: Embodied Speech and Facial Expression Avatar Critical Design Review

Note: In the future a speech dialog box will be added to the menu.

User Interface Flow Chart

Page 7: Embodied Speech and Facial Expression Avatar Critical Design Review

MenuDlg

ManualControlDlg CYanoDlg

YanoEngine

Motor(3 instances)

CComm

SpeechControlDlg

User Interface Class Diagram

Page 8: Embodied Speech and Facial Expression Avatar Critical Design Review

SetProgressValues()

CheckEndSwitches()

YanoEngine::CalibrateMotor(int)

YanoEngine::adjustMotors(int destX, int destY, int destZ)

Goes back to menu

ManualControlDlg (.cpp) Class

Page 9: Embodied Speech and Facial Expression Avatar Critical Design Review

YanoEngine::adjustMotors(int destX, int destY, int destZ)

YanoEngine::conveyEmotion(int destX, int destY, int destZ)

Goes back to menu

CYanoDlg (.cpp) Class

Page 10: Embodied Speech and Facial Expression Avatar Critical Design Review

Command Examples

• Open Mouth: “PC5PS6D200PS5PS6\r”

• Close Mouth: “PS5PC6D200PS5PS6\r”

• Raise Cheeks: “PS3PC4D200PS3PS4\r”

• Lower Cheeks: “PC3PS4D200PS3PS4\r”

• Open Mouth and Lower Cheeks: “PC5PS6PC3PS4D200PS3PS4PS5PS6\r”

Page 11: Embodied Speech and Facial Expression Avatar Critical Design Review

SV203 MicrocontrollerCircuit Description

Input Port: AD1

AD5

Power: Gnd

Vcc

Serial Port

Motor Control Port:SV6

SV1

Page 12: Embodied Speech and Facial Expression Avatar Critical Design Review

SV203 MicrocontrollerFunctional Description

• Receives command through the serial port• Set or Clear the appropriate Motor Control Pin(s)• Read an analogue voltage off of the desired Input Pin(s)• Transmit a value representing the voltage back up the

serial line

Page 13: Embodied Speech and Facial Expression Avatar Critical Design Review

SV203 MicrocontrollerInterface Description

• Serial Port – ASCII text commands are sent to the board via the serial port to tell it what to do. Values from the input pins are also sent back to the computer via the serial port– List of commands we use:

• SVxM0 – initialize pin x to use digital logic• PSx – set pin x high• PCx – clear pin x to low• Dn – delay for n milliseconds before next command• PC1PC3PC5D300PS1PS3PS5 – typical motor control command• ADy – read the voltage of input pin y, transmit up serial port

• Motor Control Port – sends the logic controls for the motors to the Yano I/O Board. When a pin is set high with PSx, it is set to 6V, PCx will set it to 0V. We use six pins, SV1 through SV6

• A/D Input Port – receives the status of Yano’s switches from the Yano I/O Board. We use 5 pins, AD1 through AD5. Each pin will have 6V on it if it’s switch is open, and near 0V if it is closed. The SV203 converts these voltages to the numbers 0 – 255 for 0V-6V.

Page 14: Embodied Speech and Facial Expression Avatar Critical Design Review

SV203 MicrocontrollerLogic Description

Mouth: SV5 SV6 AD3 AD4open: PC PS 255 0

closed: PS PC 0 255

Cheek: SV3 SV4 AD1 AD2up: PS PC 255 0

down: PC PS 0 255

Eyes: SV1 SV2 AD5cw: PS PC N/A

ccw: PC PS N/A

A/D Input PortMotor Control Port

Motor Control Port5V

0V5V

0V

Mouth Motor Mouth Opens Mouth ClosesStopped 2 Pulses 2 Pulses

SV5:

SV6:

A/D Input Port255

0255

0

Mouth Motor Mouth Fully Mouth FullyIn the Middle Closed Open

AD3:

AD4:

Page 15: Embodied Speech and Facial Expression Avatar Critical Design Review

Yano I/O BoardCircuit Description

SV

203

Mic

roco

ntro

ller

Yano

Switch Circuit:

Page 16: Embodied Speech and Facial Expression Avatar Critical Design Review

Yano I/O BoardFunctional Description

• Receives logic controls for the motors from SV203• Converts them into powered control for Yano’s motors

• Reads in status of Yano’s switches, open or closed• Converts this to a voltage, 6V for open, 0V for closed,

and sends back to SV203

Page 17: Embodied Speech and Facial Expression Avatar Critical Design Review

Yano I/O BoardInterface Description

• Motor Control Input – the logic input for the H-Bridges that determines motor direction and movement. They are paired off, 2 pins per H-Bridge, 1 Bridge per motor:

– Mouth: SV5 and SV6– Cheeks: SV3 and SV4– Eyes: SV1 and SV2

• Motor Outputs – 3 two pin ports, one for each motor, each pin will have either Vcc or Gnd. If both pins are Vcc (default state) there is no potential between them and the motor will not turn. If one pin drops to Gnd, the motor will turn one way, vice-versa for the other pin.

• Sensor Inputs – these ports connect directly to Yano’s switches. Each motor has two limit switches to determine when it runs far enough in each direction.

• Sensor Outputs - the interface back to the SV203 that has 5 pins, each of which are set to 6V for open switch and 0V for closed switch. They are paired off according to which motor they are the limit switches for:

– Mouth: AD3 and AD4– Cheeks: AD1 and AD2– Eyes: AD5

Page 18: Embodied Speech and Facial Expression Avatar Critical Design Review

Yano I/O BoardLogic Description

Mouth: SV5 SV6 AD3 AD4open: 0 1 1 0

closed: 1 0 0 1

Cheek: SV3 SV4 AD1 AD2up: 1 0 1 0

down: 0 1 0 1

Eyes: SV1 SV2 AD5cw: 1 0 N/A

ccw: 0 1 N/A

Sensor OutputMotor Control Input

H-Bridge Logic for All Motors

InA InB OutA OutB Desc.0 0 Gnd Gnd Stop0 1 Gnd Vcc Fwd1 0 Vcc Gnd Rev1 1 Vcc Vcc Brake

Page 19: Embodied Speech and Facial Expression Avatar Critical Design Review

YanoCircuit Description

Page 20: Embodied Speech and Facial Expression Avatar Critical Design Review

YanoFunctional Description

• Yano has 3 motors powered by the Yano I/O Board. One for each the mouth, one for the cheeks, and one to control the eyelids, eyebrows, and ears.

• When the mouth and cheek motors reach their endpoints (ie. fully open or fully closed), they close a switch to indicate that limit is reached.

• These switches are read by the Yano I/O Board.

Page 21: Embodied Speech and Facial Expression Avatar Critical Design Review

YanoInterface Description

• Yano’s interfaces are the motor controls, and the switch feedbacks.

• The wires are coded as follows:– Motors:

• Red/Black – Eyes – SV1/SV2• Green/Black – Cheeks – SV3/SV4• White/Black – Mouth – SV5/SV6

– Sensors: • Red/Green/Brown – Mouth – Gnd/AD4/AD3• Gray/Yellow/Pink – Cheeks – Gnd/AD2/AD1• Green/Yellow/Red/Brown – Eyes – Vcc/AD5/Gnd/Gnd

Page 22: Embodied Speech and Facial Expression Avatar Critical Design Review

YanoLogic Description

Motors

Colored Black Mouth Cheeks Eyes0 0 Stop Stop Stop0 1 Open Up Cw1 0 Close Down Ccw1 1 Brake Brake Brake

Page 23: Embodied Speech and Facial Expression Avatar Critical Design Review

Tasks and Accomplishments

• Completed:– Disassemble Yano– Reverse engineer motors and end switches– Create control circuit– Simple computer interface for motor control

• In Progress:– Motor calibration– Reverse engineer eye motor IR switch

• To Do:– Facial expressions– Sound analysis software– Complete GUI

Page 24: Embodied Speech and Facial Expression Avatar Critical Design Review

Validation and Testing Procedures

• Calibration Test - Calibrate the motors, then run the motors to its limits and back to see if it stays calibrated.

• Expression Test - Change from any one expression to any other expression, and the face should show the desired expression each time.

• Speech Test - Using a sample sound file, make sure Yano produces the right mouth movements for the differences in sound volume consistently and accurately.

Page 25: Embodied Speech and Facial Expression Avatar Critical Design Review

Validation and Testing Procedures

• Complete Project Validation – When we are successfully able to calibrate Yano’s motors and change between various facial expressions, as well as produce mouth movements that mimic human speech intensity, we will know we have been successful in accomplishing our goal.

Page 26: Embodied Speech and Facial Expression Avatar Critical Design Review

Itemized BudgetPart Quantity Cost

Computer 1 N/A

Yano 1 $65.49

SV203 Microcontroller 1 $59.98

TC4424 H-bridges 3 $3.11

Serial Cable 1 $11.99

Breadboard 1 $19.97

2 pin .100" Female Locking Connector 6 $8.94

4 pin .100" Female Locking Connector 1 $1.49

6 pin .100" Female Locking Connector 1 $1.49

8 pin .100" Female Locking Connector 2 $2.98

2 pin .100" Male Locking Connector 4 $5.96

4 pin .100" Male Locking Connector 3 $4.47

6 pin .100" Male Locking Connector 1 $1.49

8 pin .100" Male Locking Connector 1 $1.49

1kΩ Resistor 5 $0.99

.1 µF Capacitor 1 $0.10

.01 µF Capacitor 1 $0.10

Green Wire 24 $1.00

Red Wire 17 $1.00

Black Wire 12 $1.00

Total   $193.04

Page 27: Embodied Speech and Facial Expression Avatar Critical Design Review

Schedule of Tasks

Page 28: Embodied Speech and Facial Expression Avatar Critical Design Review

Questions?