eeg machine

31
EEG Machine By The All- American Boys Featuring Slo- Mo Motaz Alturayef Shawn Arni Adam Bierman Jon Ohman

Upload: vinnie

Post on 20-Jan-2016

93 views

Category:

Documents


0 download

DESCRIPTION

EEG Machine. By The All-American Boys Featuring Slo -Mo Motaz Alturayef Shawn Arni Adam Bierman Jon Ohman. High Level Block Diagram. Processor Schematic. FPGA Daughter Board. Power. A2D. JTAG. FPGA Pins. Bank 3. Bank 4. Bank 1. Bank 2. RS232. Push Buttons, Switches & LEDs. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: EEG Machine

EEG Machine

ByThe All-American

Boys Featuring Slo-Mo

Motaz AlturayefShawn Arni

Adam BiermanJon Ohman

Page 2: EEG Machine

High Level Block Diagram

CPU

PC/FOURIERWAVEFORM

MONITOR

RAM

FLASHAUDIO/VIDEO

OUTPUTS

USER INPUTS

ELECTRODEINPUTS

Page 3: EEG Machine

Processor Schematic

Page 4: EEG Machine

FPGA Daughter Board

JTAG

Power

A2D

Page 5: EEG Machine

FPGA Pins

Bank 1 Bank 2

Bank 3 Bank 4

Page 6: EEG Machine

RS232

Page 7: EEG Machine

Push Buttons, Switches & LEDs

Page 8: EEG Machine

Sample Code using Nios II

• IP Core– Ex. SPI

Void A2D_T (unsigned char ch){while (true) {

if(IOWR_ALTERA_AVALON_SPI_STATUS(base, data) &0x040){IOWR_ALTERA_AVALON_SPI_TXDATA(base,

data)}

}}

Page 9: EEG Machine

Testing

• Memory Storage– Inputs stored then flash LEDs– FFT analysis to Nios II console

• RS232– TX & RX LEDs, PC use

• User Output– Flash On-board LED with Goggles

Page 10: EEG Machine

Electrode Input Schematic

1

82

3

4

5

6

7

Differential Pre-Amp 2INA105KU

2.5k

R1 Input 21Res3

50.5

RGain 2Res3

2.5k

R1 Input 22Res3

100pF

C21 InputCap Semi

100pF

C22 InputCap Semi

100pF

C23 DiffCap Semi

100pF

C24 GroundCap Semi

GND GND GND GND

GND

8

5

2

3

4

6

71 Input 21OPA27GU

8

5

2

3

4

6

71 Input 22OPA27GU

Contact

Con21

Contact

Con22

1

82

3

4

5

6

7

Differential Pre-Amp 1INA105KU

2.5k

R1 Input 11Res3

50.5

RGain 1Res3

2.5k

R1 Input 12Res3

100pF

C11 InputCap Semi

100pF

C12 InputCap Semi

100pF

C13 DiffCap Semi

100pF

C14 GroundCap Semi

GND GND GND GND

GND

8

5

2

3

4

6

71 Input 11OPA27GU

8

5

2

3

4

6

71 Input 12OPA27GU

Contact

Con11

Contact

Con12

8

5

2

3

4

6

71 VinvOPA27GU

12

VccPos

1K

R1Vinv

Res1

1K

R2Vinv

Res1

GNDGNDGND

VccNeg

VccPos

8

5

2

34

671 Summer

OPA27GU

100

Rsum1

Rsum1

100

Rsum2

Rsum2

10000

Rgs

Res1

GND

5626

Rlp1

Res15626

Rlp2

Res1

8

5

2

3

4

6

71 LowPassOPA27GU

.2uF

Clp2Cap

.4uF

Clp1

Cap

1K

RBRes1

1K

RA

Res1

GND

GND

100pF

Cs1

Cap

100pF

Cs2

Cap

100pF

Cf1

Cap

100pF

Cf2

Cap

GND

GND

GND

GND

12

Output

Header 2GND

Page 11: EEG Machine

Part Selection

• Op-Amp Choice:– Burr-Brown OPA27

• Ultra low-noise amplifiers

• Differential Amp Choice:– Burr-Brown INA105

• Ultra low-noise amplifiers

• Resistor Choice– Using 1% tolerance, should be well matched enough

• Have .1% tolerance options picked out if necessary

Page 12: EEG Machine

Filter Selection

• Using Sallen-Key low-pass filter– Corner at 100Hz– 40dB/dec decrease– Simple, easily expanded if necessary– Should filter out high frequency noise components

to neural signal

• Filter not designed to filter out all environmental noise

Page 13: EEG Machine

Power

• Input circuit powered separately from rest of device– Safety:

• Don’t want any risk with a person attached to one end

– Noise:• High frequency components of processor could infect

power lines– Introduce artifacts into signal

Page 14: EEG Machine

Power cont’d

• Input board powered by 9V battery– Voltage inverted to provide negative voltage for

amplifier operation

8

5

2

34

671 Vinv

OPA27GU

12

VccPos

1K

R1Vinv

Res1

1K

R2Vinv

Res1

GNDGNDGND

VccNeg

VccPos

Page 15: EEG Machine

Testing

• Testing will be done on PCB – Voltage injections at specific input sites– Measure response for each stage functionality

• Expect to see:– Amplification of 100x– Single summed output signal– Frequencies over 100Hz are not passed– Noise levels are minimized

Page 16: EEG Machine

Design Change to Contact

• No headband– Movement and friction will introduce too many

artifacts

• Conductive paste will be necessary– Metal/Skin interface is not good enough to

conduct strong signals

• Epoxy cast contact with double-sided adhesive to form “well” for paste

Page 17: EEG Machine

Risks to Design/Implementation• Cannot get usable signal from head contacts

– Purchase commercial contacts• Low-Pass Filter not sufficient at eliminating

excess signal information– Cascade to increase effectiveness– Use Different Design

• Too much noise on the signal line– Increase contact surface area

• Increase signal strength– Isolate board through effective shielding

Page 18: EEG Machine

Output Component Changes

• Previous output components:– Audio CODEC– Monitor to display visual stimulus

• Current output components:– Separate ADC and DAC

• Input signal is not being output as auditory stimulus

– LED mounted glasses or goggles for visual stimulus• Eliminates the need for VGA circuit

Page 19: EEG Machine

ADC Architectures

Page 20: EEG Machine

Analog to Digital Converter16-Bit ResolutionLow Noise PerformanceLow Power ConsumptionSigma-Delta ArchitectureSerial SPI CommunicationConstant Output

Page 21: EEG Machine

Digital to Analog Converter16 Bit ResolutionSerial I2C Interface4 Channel OutputLow Power OperationOutput Directly to

Headphones

Page 22: EEG Machine

Visual Stimulus

Example of Glasses

Page 23: EEG Machine

Testing

• Mount ADC to through-hole adapter• Input sinusoidal signal• View output on multi-meter• Mount DAC to through-hole adapter• Input digital values from FPGA flash• View output on oscilloscope

Page 24: EEG Machine

LabView code for PSD

Page 25: EEG Machine

• The test used a .wav file • The left graph is the time domain • The right graph is the power

spectrum.

Test Results

Page 26: EEG Machine

Serial interface

Page 27: EEG Machine

Buck conveter

•Buck converter used to supply enough current to the board. (LM2676-3.3)•VCCIO will power VCCIO1, VCCIO2, VCCIO3 and VCCIO4.•VCC33 will power the ADC and the DAC chips. •MAX232 need 3.3v so will use VCC33•Memory

Page 28: EEG Machine

Power for Daughter Board

Page 29: EEG Machine

Voltage Regulator and Clock

•Voltage regulator with 1.2v output (LM1117-1.2-0.8A)•VCC12 is the input for VCCD_PLL1, VCCD_PLL2, VCCA_PLL1 and VCCA_PLLA. •The clock is 50MHz

Page 30: EEG Machine

Schedule

Page 31: EEG Machine

Questions?