SlideShare a Scribd company logo
1 of 1
Download to read offline
Charles Moyes (cwm55) and Mengxiang Jiang (mj294)
                                                                                Week of April 11, 2012


       Brain-Computer Interface using Multi-Channel
                 Electroencephalography
Current Progress
We designed and built an analog amplification circuit with a gain of 6,400. The first stage uses an AD620
instrumentation amplifier for differential common mode signal rejection to reduce noise. The gain of the
AD620 is approximately 23. A voltage divider and a 3140 opamp buffer provide a 2.5 V virtual ground
for the instrumentation amplifier. After passing through the instrumentation amplifier, the signal is filtered
using an RC high pass filter with fc = 0.13 Hz. Next, the signal undergoes a second-stage amplification.
The gain of the 3140 opamp is set to approximately 278 using a trim pot. The output signal is then filtered
using an RC low-pass filter with a cut-off frequency of approximately 48 Hz. This frequency was chosen to
preserve the low-frequency content of the EEG signal, while removing 50-60 Hz power line noise from the
signal. We ordered parts from Digi-Key and samples from Analog Devices, Texas Instruments, and Maxim
Semiconductor. We also sampled silver-plated passive EEG electrodes. We constructed this prototype circuit
on a breadboard. We constructed an isolated +6 VDC power supply using 4 AA batteries and connected
it the microcontroller using the PCB target board. We cut the ground trace connecting the microcontroller
ground to the USB ground using a dremel tool. We used a Fairchild Semiconductor 6N137 optoisolator to
isolate the USB power from the microcontroller power. The line of isolation is between the microcontroller
UART RX and TX pins (Pin D.0 and Pin D.1) and the FTDI chip’s RX and TX pins. Firmware was
developed in the C programming language that samples the ADC at 128 Hz and sends the 10-bit values over
serial to the PC. A MATLAB program then plots the time-domain signal in real-time, along with its FFT.
From there, we were able to amplify a 125 µV Vpp , 14 Hz square wave calibration signal and plot it on a
PC in real-time. We demonstrated this functionality to Pavel during our lab section.


Challenges Faced and Future Plans
  1. Our target board’s FTDI chip was damaged presumably due to ESD (it was working over spring break).
     We wasted several hours debugging this in lab and had to construct our own separate communications
     board.
  2. We need to scale and bias the signal to utilize the full 10-bit dynamic range of the ADC. This is
     challenging because the input signal is already biased at 2.5 V and so putting a third amplifier stage
     would cause the signal to clip. We propose adding an inverting summing amplifier and an inverter.
  3. We still have not started working on the Brain-Computer Interface (BCI) component of this project
     yet. We plan on training and using a linear classifier to detect the P300 event-related potential by
     measuring the EEG signal from the Cz electrode site (single-channel). We may use PCA to reduce
     the dimensionality of the 1-second input signal (currently 128 values). We were thinking of using
     multiple different-colored LEDs that blink in random order to allow the user to choose a color. The
     microcontroller will have a training mode and a test mode to train the classifier and test it on unknown
     signals.
  4. If we do not have time to finish the BCI, then we will develop a neurofeedback device instead that
     displays the dominant frequency of the measured brain waves and classifies them as either alpha, beta,
     theta, or delta waves. FFT code will execute on the microcontroller and an LED will be lit indicated
     the type of wave that was measured.
  5. We need to move our prototype analog circuits from breadboards to solder boards.



                                                     1

More Related Content

What's hot

7-Bit Single I2C Digital Potentiometer
7-Bit Single I2C Digital Potentiometer7-Bit Single I2C Digital Potentiometer
7-Bit Single I2C Digital PotentiometerPremier Farnell
 
Digital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE studentsDigital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE studentsMitul Lakhani
 
ADC 4 bit using HSIPCE
ADC 4 bit using HSIPCEADC 4 bit using HSIPCE
ADC 4 bit using HSIPCEVN Trần
 
Analog-to Digital Conversion
Analog-to Digital ConversionAnalog-to Digital Conversion
Analog-to Digital Conversionwajahat Gul
 
DE-NOISING OF ECG USING WAVELETS AND MULTIWAVELETS
DE-NOISING OF ECG  USING WAVELETS  AND MULTIWAVELETS     DE-NOISING OF ECG  USING WAVELETS  AND MULTIWAVELETS
DE-NOISING OF ECG USING WAVELETS AND MULTIWAVELETS ajayhakkumar
 
DENOISING OF ECG SIGNAL USING FILTERS AND WAVELET TRANSFORM
DENOISING OF ECG SIGNAL USING FILTERS AND WAVELET TRANSFORMDENOISING OF ECG SIGNAL USING FILTERS AND WAVELET TRANSFORM
DENOISING OF ECG SIGNAL USING FILTERS AND WAVELET TRANSFORMIJEEE
 
Digital to analog convertor
Digital to analog convertorDigital to analog convertor
Digital to analog convertorsartaj ahmed
 
Analog & Digital Integrated Circuits - Material (Short Answers)
Analog & Digital Integrated Circuits -  Material (Short Answers) Analog & Digital Integrated Circuits -  Material (Short Answers)
Analog & Digital Integrated Circuits - Material (Short Answers) Mathankumar S
 
Lab 6 Neural Network
Lab 6 Neural NetworkLab 6 Neural Network
Lab 6 Neural NetworkKyle Villano
 
M-TECH 4th SEM PRESENTATION
M-TECH 4th SEM PRESENTATIONM-TECH 4th SEM PRESENTATION
M-TECH 4th SEM PRESENTATIONSubhajit Shaw
 
SAR ADC's and industrial Applications
SAR ADC's and industrial Applications SAR ADC's and industrial Applications
SAR ADC's and industrial Applications ilker Şin
 

What's hot (20)

7-Bit Single I2C Digital Potentiometer
7-Bit Single I2C Digital Potentiometer7-Bit Single I2C Digital Potentiometer
7-Bit Single I2C Digital Potentiometer
 
Prese000
Prese000Prese000
Prese000
 
Adc dac
Adc dacAdc dac
Adc dac
 
Digital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE studentsDigital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE students
 
Lica 7th chapter slides
Lica 7th chapter slidesLica 7th chapter slides
Lica 7th chapter slides
 
Ad and da convertor
Ad and da convertorAd and da convertor
Ad and da convertor
 
ADC 4 bit using HSIPCE
ADC 4 bit using HSIPCEADC 4 bit using HSIPCE
ADC 4 bit using HSIPCE
 
ADC - Types (Analog to Digital Converter)
ADC - Types (Analog to Digital Converter)ADC - Types (Analog to Digital Converter)
ADC - Types (Analog to Digital Converter)
 
Adc &dac ppt
Adc &dac pptAdc &dac ppt
Adc &dac ppt
 
Analog-to Digital Conversion
Analog-to Digital ConversionAnalog-to Digital Conversion
Analog-to Digital Conversion
 
DE-NOISING OF ECG USING WAVELETS AND MULTIWAVELETS
DE-NOISING OF ECG  USING WAVELETS  AND MULTIWAVELETS     DE-NOISING OF ECG  USING WAVELETS  AND MULTIWAVELETS
DE-NOISING OF ECG USING WAVELETS AND MULTIWAVELETS
 
DENOISING OF ECG SIGNAL USING FILTERS AND WAVELET TRANSFORM
DENOISING OF ECG SIGNAL USING FILTERS AND WAVELET TRANSFORMDENOISING OF ECG SIGNAL USING FILTERS AND WAVELET TRANSFORM
DENOISING OF ECG SIGNAL USING FILTERS AND WAVELET TRANSFORM
 
Digital to analog convertor
Digital to analog convertorDigital to analog convertor
Digital to analog convertor
 
Analog & Digital Integrated Circuits - Material (Short Answers)
Analog & Digital Integrated Circuits -  Material (Short Answers) Analog & Digital Integrated Circuits -  Material (Short Answers)
Analog & Digital Integrated Circuits - Material (Short Answers)
 
Lab 6 Neural Network
Lab 6 Neural NetworkLab 6 Neural Network
Lab 6 Neural Network
 
ADC & DAC
ADC & DACADC & DAC
ADC & DAC
 
M-TECH 4th SEM PRESENTATION
M-TECH 4th SEM PRESENTATIONM-TECH 4th SEM PRESENTATION
M-TECH 4th SEM PRESENTATION
 
SAR ADC's and industrial Applications
SAR ADC's and industrial Applications SAR ADC's and industrial Applications
SAR ADC's and industrial Applications
 
Lab LCA 1 7
Lab LCA 1 7Lab LCA 1 7
Lab LCA 1 7
 
Adc & dac
Adc & dacAdc & dac
Adc & dac
 

Similar to Ece4760 progess report1

Ece4760 progress report2
Ece4760 progress report2Ece4760 progress report2
Ece4760 progress report2Chuck Moyes
 
Modelling and Analysis of Brainwaves for Real World Interaction
Modelling and Analysis of Brainwaves for Real World InteractionModelling and Analysis of Brainwaves for Real World Interaction
Modelling and Analysis of Brainwaves for Real World InteractionPavan Kumar
 
Senior Project Students' Presentation on ECG Monitoring
Senior Project Students' Presentation on ECG MonitoringSenior Project Students' Presentation on ECG Monitoring
Senior Project Students' Presentation on ECG MonitoringMd Kafiul Islam
 
Brain computer interface
Brain computer interfaceBrain computer interface
Brain computer interfaceAlwin Poulose
 
Optical Fiber Communication ECE Practical File.pdf
Optical Fiber Communication ECE Practical File.pdfOptical Fiber Communication ECE Practical File.pdf
Optical Fiber Communication ECE Practical File.pdfYash Shrivastava
 
Design, Development and Simulation of Front End Electronics for Nuclear Detec...
Design, Development and Simulation of Front End Electronics for Nuclear Detec...Design, Development and Simulation of Front End Electronics for Nuclear Detec...
Design, Development and Simulation of Front End Electronics for Nuclear Detec...ijtsrd
 
[Best]Chromatic Tuner Project Final Report
[Best]Chromatic Tuner Project Final Report[Best]Chromatic Tuner Project Final Report
[Best]Chromatic Tuner Project Final ReportNicholas Ambrosio
 
Audio Acquisition, Storage and Playback
Audio Acquisition, Storage and PlaybackAudio Acquisition, Storage and Playback
Audio Acquisition, Storage and PlaybackJerome Stanislaus
 
Design of single channel portable eeg
Design of single channel portable eegDesign of single channel portable eeg
Design of single channel portable eegijbesjournal
 
Design Project 2 Poster V9
Design Project 2 Poster V9Design Project 2 Poster V9
Design Project 2 Poster V9George Lee
 
Efficient signal acquisition in multi channel neural systems
Efficient signal acquisition in multi channel neural systemsEfficient signal acquisition in multi channel neural systems
Efficient signal acquisition in multi channel neural systemsAshwath Krishnan
 
final poster AMSIC lab
final poster AMSIC labfinal poster AMSIC lab
final poster AMSIC labCameron Young
 
Design of an IOT based Online Monitoring Digital Stethoscope
Design of an IOT based Online Monitoring Digital StethoscopeDesign of an IOT based Online Monitoring Digital Stethoscope
Design of an IOT based Online Monitoring Digital StethoscopeIJAAS Team
 
Adc lab
Adc labAdc lab
Adc labxyxz
 
An ECG-on-Chip for Wearable Cardiac Monitoring Devices
An ECG-on-Chip for Wearable Cardiac Monitoring Devices An ECG-on-Chip for Wearable Cardiac Monitoring Devices
An ECG-on-Chip for Wearable Cardiac Monitoring Devices ecgpapers
 

Similar to Ece4760 progess report1 (20)

Ece4760 progress report2
Ece4760 progress report2Ece4760 progress report2
Ece4760 progress report2
 
Modelling and Analysis of Brainwaves for Real World Interaction
Modelling and Analysis of Brainwaves for Real World InteractionModelling and Analysis of Brainwaves for Real World Interaction
Modelling and Analysis of Brainwaves for Real World Interaction
 
Ece4760 hw5
Ece4760 hw5Ece4760 hw5
Ece4760 hw5
 
Lab3
Lab3Lab3
Lab3
 
Senior Project Students' Presentation on ECG Monitoring
Senior Project Students' Presentation on ECG MonitoringSenior Project Students' Presentation on ECG Monitoring
Senior Project Students' Presentation on ECG Monitoring
 
Brain computer interface
Brain computer interfaceBrain computer interface
Brain computer interface
 
Optical Fiber Communication ECE Practical File.pdf
Optical Fiber Communication ECE Practical File.pdfOptical Fiber Communication ECE Practical File.pdf
Optical Fiber Communication ECE Practical File.pdf
 
Design, Development and Simulation of Front End Electronics for Nuclear Detec...
Design, Development and Simulation of Front End Electronics for Nuclear Detec...Design, Development and Simulation of Front End Electronics for Nuclear Detec...
Design, Development and Simulation of Front End Electronics for Nuclear Detec...
 
[Best]Chromatic Tuner Project Final Report
[Best]Chromatic Tuner Project Final Report[Best]Chromatic Tuner Project Final Report
[Best]Chromatic Tuner Project Final Report
 
Audio Acquisition, Storage and Playback
Audio Acquisition, Storage and PlaybackAudio Acquisition, Storage and Playback
Audio Acquisition, Storage and Playback
 
Design of single channel portable eeg
Design of single channel portable eegDesign of single channel portable eeg
Design of single channel portable eeg
 
PC based oscilloscope
PC based oscilloscopePC based oscilloscope
PC based oscilloscope
 
Design Project 2 Poster V9
Design Project 2 Poster V9Design Project 2 Poster V9
Design Project 2 Poster V9
 
Efficient signal acquisition in multi channel neural systems
Efficient signal acquisition in multi channel neural systemsEfficient signal acquisition in multi channel neural systems
Efficient signal acquisition in multi channel neural systems
 
final poster AMSIC lab
final poster AMSIC labfinal poster AMSIC lab
final poster AMSIC lab
 
Design of an IOT based Online Monitoring Digital Stethoscope
Design of an IOT based Online Monitoring Digital StethoscopeDesign of an IOT based Online Monitoring Digital Stethoscope
Design of an IOT based Online Monitoring Digital Stethoscope
 
Adc lab
Adc labAdc lab
Adc lab
 
An ECG-on-Chip for Wearable Cardiac Monitoring Devices
An ECG-on-Chip for Wearable Cardiac Monitoring Devices An ECG-on-Chip for Wearable Cardiac Monitoring Devices
An ECG-on-Chip for Wearable Cardiac Monitoring Devices
 
EE Lab 2 Semester Report
EE Lab 2 Semester ReportEE Lab 2 Semester Report
EE Lab 2 Semester Report
 
sirishamadishetty
sirishamadishettysirishamadishetty
sirishamadishetty
 

More from Chuck Moyes

Gameplay specificationfinal
Gameplay specificationfinalGameplay specificationfinal
Gameplay specificationfinalChuck Moyes
 
Final presentation
Final presentationFinal presentation
Final presentationChuck Moyes
 
Concept documentfinal
Concept documentfinalConcept documentfinal
Concept documentfinalChuck Moyes
 
Beta releasereport
Beta releasereportBeta releasereport
Beta releasereportChuck Moyes
 
Beta presentation
Beta presentationBeta presentation
Beta presentationChuck Moyes
 
Alpha releasepresentation
Alpha releasepresentationAlpha releasepresentation
Alpha releasepresentationChuck Moyes
 
Manual small (1)
Manual small (1)Manual small (1)
Manual small (1)Chuck Moyes
 
CS 2110 Programming Competition Entry Readme
CS 2110 Programming Competition Entry ReadmeCS 2110 Programming Competition Entry Readme
CS 2110 Programming Competition Entry ReadmeChuck Moyes
 
Ece3140 lab5 writeup
Ece3140 lab5 writeupEce3140 lab5 writeup
Ece3140 lab5 writeupChuck Moyes
 
Ece lab5 proposal
Ece lab5 proposalEce lab5 proposal
Ece lab5 proposalChuck Moyes
 
Cs 4621 presentation slides
Cs 4621 presentation slidesCs 4621 presentation slides
Cs 4621 presentation slidesChuck Moyes
 
Presentation slides
Presentation slidesPresentation slides
Presentation slidesChuck Moyes
 
Car sim rendering
Car sim renderingCar sim rendering
Car sim renderingChuck Moyes
 

More from Chuck Moyes (18)

Gameplay specificationfinal
Gameplay specificationfinalGameplay specificationfinal
Gameplay specificationfinal
 
Final presentation
Final presentationFinal presentation
Final presentation
 
Concept documentfinal
Concept documentfinalConcept documentfinal
Concept documentfinal
 
Beta releasereport
Beta releasereportBeta releasereport
Beta releasereport
 
Beta presentation
Beta presentationBeta presentation
Beta presentation
 
Alpha releasepresentation
Alpha releasepresentationAlpha releasepresentation
Alpha releasepresentation
 
Manual small (1)
Manual small (1)Manual small (1)
Manual small (1)
 
CS 2110 Programming Competition Entry Readme
CS 2110 Programming Competition Entry ReadmeCS 2110 Programming Competition Entry Readme
CS 2110 Programming Competition Entry Readme
 
Ece4760 hw4
Ece4760 hw4Ece4760 hw4
Ece4760 hw4
 
Ece3140 lab5 writeup
Ece3140 lab5 writeupEce3140 lab5 writeup
Ece3140 lab5 writeup
 
Ece lab5 proposal
Ece lab5 proposalEce lab5 proposal
Ece lab5 proposal
 
Fb graph
Fb graphFb graph
Fb graph
 
Cs 4621 presentation slides
Cs 4621 presentation slidesCs 4621 presentation slides
Cs 4621 presentation slides
 
Ai plan
Ai planAi plan
Ai plan
 
Final report
Final reportFinal report
Final report
 
Presentation slides
Presentation slidesPresentation slides
Presentation slides
 
Car sim rendering
Car sim renderingCar sim rendering
Car sim rendering
 
Cs665 writeup
Cs665 writeupCs665 writeup
Cs665 writeup
 

Ece4760 progess report1

  • 1. Charles Moyes (cwm55) and Mengxiang Jiang (mj294) Week of April 11, 2012 Brain-Computer Interface using Multi-Channel Electroencephalography Current Progress We designed and built an analog amplification circuit with a gain of 6,400. The first stage uses an AD620 instrumentation amplifier for differential common mode signal rejection to reduce noise. The gain of the AD620 is approximately 23. A voltage divider and a 3140 opamp buffer provide a 2.5 V virtual ground for the instrumentation amplifier. After passing through the instrumentation amplifier, the signal is filtered using an RC high pass filter with fc = 0.13 Hz. Next, the signal undergoes a second-stage amplification. The gain of the 3140 opamp is set to approximately 278 using a trim pot. The output signal is then filtered using an RC low-pass filter with a cut-off frequency of approximately 48 Hz. This frequency was chosen to preserve the low-frequency content of the EEG signal, while removing 50-60 Hz power line noise from the signal. We ordered parts from Digi-Key and samples from Analog Devices, Texas Instruments, and Maxim Semiconductor. We also sampled silver-plated passive EEG electrodes. We constructed this prototype circuit on a breadboard. We constructed an isolated +6 VDC power supply using 4 AA batteries and connected it the microcontroller using the PCB target board. We cut the ground trace connecting the microcontroller ground to the USB ground using a dremel tool. We used a Fairchild Semiconductor 6N137 optoisolator to isolate the USB power from the microcontroller power. The line of isolation is between the microcontroller UART RX and TX pins (Pin D.0 and Pin D.1) and the FTDI chip’s RX and TX pins. Firmware was developed in the C programming language that samples the ADC at 128 Hz and sends the 10-bit values over serial to the PC. A MATLAB program then plots the time-domain signal in real-time, along with its FFT. From there, we were able to amplify a 125 µV Vpp , 14 Hz square wave calibration signal and plot it on a PC in real-time. We demonstrated this functionality to Pavel during our lab section. Challenges Faced and Future Plans 1. Our target board’s FTDI chip was damaged presumably due to ESD (it was working over spring break). We wasted several hours debugging this in lab and had to construct our own separate communications board. 2. We need to scale and bias the signal to utilize the full 10-bit dynamic range of the ADC. This is challenging because the input signal is already biased at 2.5 V and so putting a third amplifier stage would cause the signal to clip. We propose adding an inverting summing amplifier and an inverter. 3. We still have not started working on the Brain-Computer Interface (BCI) component of this project yet. We plan on training and using a linear classifier to detect the P300 event-related potential by measuring the EEG signal from the Cz electrode site (single-channel). We may use PCA to reduce the dimensionality of the 1-second input signal (currently 128 values). We were thinking of using multiple different-colored LEDs that blink in random order to allow the user to choose a color. The microcontroller will have a training mode and a test mode to train the classifier and test it on unknown signals. 4. If we do not have time to finish the BCI, then we will develop a neurofeedback device instead that displays the dominant frequency of the measured brain waves and classifies them as either alpha, beta, theta, or delta waves. FFT code will execute on the microcontroller and an LED will be lit indicated the type of wave that was measured. 5. We need to move our prototype analog circuits from breadboards to solder boards. 1