Editing Programmable Chip EEG
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 23: | Line 23: | ||
== Status == | == Status == | ||
− | * | + | *Editing the code of the Open EEG and Monolith EEG to be more portable and utilize avr-libc libraries more. |
*Using the open Boarduno design to prototype the design. | *Using the open Boarduno design to prototype the design. | ||
== Hardware Overview == | == Hardware Overview == | ||
− | + | Here is a diagram of how the analog signal processing boards and the microprocessor board will come together. | |
+ | [[Image:Pceeg.jpg]] | ||
+ | Here is how the analog signal prossesing board will come together. | ||
+ | [[Image:newpceeghddesign.png]] | ||
== Description of How it Works == | == Description of How it Works == | ||
Line 37: | Line 40: | ||
Insulated wires attached to the electrodes bring the signals to the signal processing daughter board. | Insulated wires attached to the electrodes bring the signals to the signal processing daughter board. | ||
− | The signal | + | The signal processing daughter board is responsible for filtering and digitizing the signals from the body. |
− | Then the signals are passed to the | + | Then the signals are passed to the control board that is the motherboard. |
The motherboard then can pass the signal to a larger computer. | The motherboard then can pass the signal to a larger computer. | ||
− | On the | + | On the signal processing daughter board is an anti-aliasing filter, an amplifier, and a [[Integrated_Circuits#ADC_analog_to_digital_converter | analog to digital converter]]. |
The instrumentation amplifier amplifies the differential analog signal on the input wires. | The instrumentation amplifier amplifies the differential analog signal on the input wires. | ||
− | |||
− | |||
Then the signal is digitized by a a/d converter. | Then the signal is digitized by a a/d converter. | ||
The a/d converter has approximately 20 bits accuracy so the signal does not have to be conditioned or filtered as much. | The a/d converter has approximately 20 bits accuracy so the signal does not have to be conditioned or filtered as much. | ||
− | The "right leg driver" circuit on the | + | The "right leg driver" circuit on the daughter board is intended to decrease common mode signal. |
That circuit inverts the common mode signal from the instrumentation amp, sums the result from each instrumentation amp, and sends the total back to the body. | That circuit inverts the common mode signal from the instrumentation amp, sums the result from each instrumentation amp, and sends the total back to the body. | ||
− | The ADCs | + | The ADCs simultaneously digitize all the analog signals ''(really?)''. |
The ADCs send bits of information (representing the original analog electrical signals) to the controller motherboard. | The ADCs send bits of information (representing the original analog electrical signals) to the controller motherboard. | ||
Line 60: | Line 61: | ||
The controller board can be programmed using AVR GCC. | The controller board can be programmed using AVR GCC. | ||
− | Here is the | + | [[image:UCschematicardunonmonolith.png]] |
− | + | Here is the circuit board of it. | |
+ | |||
+ | [[image:PCEEG_Version_1.02_Alpha_05-09-08_uCBrd.png]] | ||
+ | |||
+ | Partlist | ||
+ | |||
+ | Exported from PCEEG_Version_1.02_Alpha_05-09-08_uC.sch at 6/16/2008 3:41:30 PM | ||
+ | |||
+ | EAGLE Version 5.0.0 Copyright (c) 1988-2008 CadSoft | ||
+ | |||
+ | Part Value Device Package Library Sheet | ||
+ | |||
+ | B2 RB1A RB1A rectifier 1 | ||
+ | C0 1000uf CPOL-USE5-13 E5-13 rcl 1 | ||
+ | C1 .1uf CAPNP-5@2 C-5@1 DISCRETE 1 | ||
+ | C2 1µF ELC-2,5 EL25B DISCRETE@2 1 | ||
+ | C3 330uf CPOL-USE5-10.5 E5-10,5 rcl 1 | ||
+ | C4 .1uf CAPNP-5 C-5 DISCRETE 1 | ||
+ | C5 47µF ELC-5 EL25B DISCRETE 1 | ||
+ | C6 .1uf CAPNP-5@2 C-5@1 DISCRETE 1 | ||
+ | C7 .01uf CAPNP-5 C-5 DISCRETE 1 | ||
+ | C8 .1uf CAPNP-5 C-5 DISCRETE 1 | ||
+ | C9 47µF ELC-5 EL25B DISCRETE 1 | ||
+ | C13 0.1uF C-US025-025X050 C025-025X050 minimidi 1 | ||
+ | C14 0.1uF C-US025-025X050 C025-025X050 minimidi 1 | ||
+ | D1 Green LED3MM LED3MM minimidi 1 | ||
+ | D2 RED LED5 LED5 LED 1 | ||
+ | IC1 78XXS 78XXS v-reg 1 | ||
+ | IC2 ATMEGA168P ATMEGA168PROUND DIL28/3 avr 1 | ||
+ | IC105 TMV0505S TMV0505 TMADCDC MODEEG 1 | ||
+ | J1 2.1MMJACK 2.1MMJACK PJ-102A minimidi 1 | ||
+ | JP1 PINHD-2X3 2X03 pinhead-ez 1 | ||
+ | L1 22µH L-10 R-12,5 DISCRETE@2 1 | ||
+ | L2 22µH L-10 R-12,5 DISCRETE@2 1 | ||
+ | OK1 6N137 6N137 DIL08 optocoupler 1 | ||
+ | OK2 6N137 6N137 DIL08 optocoupler 1 | ||
+ | OK3 6N137 6N137 DIL08 optocoupler 1 | ||
+ | R1 1k R-US_0207/5V 0207/5V rcl 1 | ||
+ | R2 10k R-US_0207/5V 0207/5V rcl 1 | ||
+ | R3 1k R-US_0207/5V 0207/5V rcl 1 | ||
+ | R4 1k R-US_0207/5V 0207/5V rcl 1 | ||
+ | R5 1k R-US_0207/5V 0207/5V rcl 1 | ||
+ | R6 1k R-US_0207/5V 0207/5V rcl 1 | ||
+ | R7 1k R-US_0207/5V 0207/5V rcl 1 | ||
+ | R8 1k R-US_0207/5V 0207/5V rcl 1 | ||
+ | R9 1k R-US_0207/5V 0207/5V rcl 1 | ||
+ | S2 RESET 10-XX B3F-10XX switch-omron 1 | ||
+ | SV1 MA03-1 MA03-1 con-lstb 1 | ||
+ | SV2 MA09-1 MA09-1 con-lstb 1 | ||
+ | SV3 MA03-1 MA03-1 con-lstb 1 | ||
+ | SV4 MA03-1 MA03-1 con-lstb 1 | ||
+ | SV7 MA06-1 MA06-1 con-lstb 1 | ||
+ | SV8 MA08-1 MA08-1 con-lstb 1 | ||
+ | USB.I/O MA06-1 MA06-1 con-lstb 1 | ||
+ | X2 16.00MHz CERMOSCILL CERM_OSC digg 1 | ||
+ | |||
+ | Working on some other improvements... C123 with 1uF is much too small. Use 1000uF or so instead. | ||
+ | |||
+ | [[image:adschematicad1256devbrdnmonolith.png]] | ||
+ | Here is the circuit board of it. | ||
+ | [[image:PCEEG_Version_1.34_Alpha_06-15-08_ADBrd.png]] | ||
+ | |||
+ | Partlist | ||
+ | |||
+ | Exported from PCEEG_Version_1.34_Alpha_06-15-08_AD.brd at 6/16/2008 1:58:25 PM | ||
+ | |||
+ | EAGLE Version 5.0.0 Copyright (c) 1988-2008 CadSoft | ||
− | + | Part Value Package Library Position (mil) Orientation | |
− | |||
− | + | C1 .01uf C-5 DISCRETE (3800 2950) R90 | |
− | + | C2 .1uf C-5 DISCRETE (3550 2950) R90 | |
+ | C3 49uF EL25B DISCRETE (3200 3000) R270 | ||
+ | C4 .01uf C-5 DISCRETE (3000 2750) R90 | ||
+ | C5 10µF EL25B DISCRETE (2000 2850) R270 | ||
+ | C6 47µF EL25B DISCRETE@2 (1700 3000) R270 | ||
+ | C7 .01uf C-5@1 DISCRETE (1400 2950) R270 | ||
+ | C8 .01uf C-5@1 DISCRETE (1600 2700) R90 | ||
+ | C9 .1uf C-5@1 DISCRETE (1250 2750) R90 | ||
+ | C10 .1uf C-5@1 DISCRETE (1100 2950) R90 | ||
+ | C11 47uf .Tant. EL25B DISCRETE@3 (200 2450) R270 | ||
+ | C12 .1uf C-5 DISCRETE (200 1600) R0 | ||
+ | C13 47µF EL25B DISCRETE (150 950) R180 | ||
+ | C14 .01uf C-5 DISCRETE (200 1250) R0 | ||
+ | C15 100pf C-5 DISCRETE (900 1950) R270 | ||
+ | C16 .1uf C-5 DISCRETE (700 1850) R0 | ||
+ | C17 47µF EL25B DISCRETE (700 1650) R180 | ||
+ | C18 .1uf C-5 DISCRETE (1750 650) R180 | ||
+ | C19 18pf C-5 DISCRETE (2050 1550) R180 | ||
+ | C20 18pf C-5 DISCRETE (2050 900) R180 | ||
+ | C21 .1uf C-5 DISCRETE (3700 2050) R90 | ||
+ | C22 .1uf C-5 DISCRETE (2950 2050) R270 | ||
+ | C23 .001 C-5 DISCRETE (200 2700) R0 | ||
+ | C24 .001 C-5 DISCRETE (650 2500) R180 | ||
+ | D101 1N5818 D-10 DISCRETE (2750 2800) R90 | ||
+ | IC3 5.0V-3.3V REG 78LXX v-reg (350 700) R90 | ||
+ | IC201 TLC277P DIL-08 BURR (700 2850) R270 | ||
+ | L3 22µH R-12,5 DISCRETE@2 (3450 2700) R0 | ||
+ | Q1 7.68mhz HC49U70 crystal (2050 1200) R90 | ||
+ | R1 100 0204V rcl (3000 3000) R90 | ||
+ | R2 470 0204V rcl (2300 3000) R90 | ||
+ | R3 9.1k 0204V rcl (2300 2800) R90 | ||
+ | R4 15k 0204V rcl (2300 2600) R90 | ||
+ | R5 10k 0204V rcl (1800 2750) R90 | ||
+ | R6 10k 0204V rcl (1800 2550) R90 | ||
+ | R7 100 0204V rcl (2200 550) R180 | ||
+ | R8 100 0204V rcl (1200 400) R90 | ||
+ | R9 100 0204V rcl (2500 2050) R180 | ||
+ | R10 100 0204V rcl (2500 1850) R180 | ||
+ | R11 100 0204V rcl (2500 1650) R180 | ||
+ | R12 100 0204V rcl (2500 2250) R180 | ||
+ | R13 100 0204V rcl (2500 1350) R180 | ||
+ | R14 100k 0204V rcl (150 400) R90 | ||
+ | R15 100k 0204V rcl (350 400) R90 | ||
+ | R16 100k 0204V rcl (550 400) R90 | ||
+ | R17 100k 0204V rcl (750 400) R90 | ||
+ | R18 49.9 0204V rcl (600 1350) R90 | ||
+ | R19 49.9 0204V rcl (850 1350) R90 | ||
+ | R20 200k 0204V rcl (200 3000) R180 | ||
+ | SV1 AIN.0-7+AINCON MA10-1 con-lstb (1700 100) R0 | ||
+ | SV2 AINCON. jump MA03-2 con-lstb (3650 900) R180 | ||
+ | SV3 D0-D3 MA04-1 con-lstb (400 100) R0 | ||
+ | SV4 Digital.I/O MA09-1 con-lstb (2750 100) R0 | ||
+ | SV5 Vref+jump MA04-2 con-lstb (3300 600) R180 | ||
+ | SV6 Vref-jump MA03-2 con-lstb (2700 600) R180 | ||
+ | SV7 V.REF MA03-1 con-lstb (3550 100) R0 | ||
+ | SV8 DRL.I/O MA04-1 con-lstb (900 100) R0 | ||
+ | SV10 High Z.jump MA03-1 con-lstb (3350 2350) R0 | ||
+ | U$1 ADS1256 DIL28-6 brog-ads1256_#7_ (1500 1500) R270 | ||
+ | U$2 CD40109BE DIL16 brog-cd40109be_#Done_ (3350 1600) R0 | ||
+ | ZD 4V TO92-CLP v-reg (2500 2850) R270 | ||
== Parts used in the PCEEG: == | == Parts used in the PCEEG: == | ||
* [http://opencircuits.com/LT1168 LT1168 Resistor-Programmable-Gain Precision Instrumentation Amplifier] is used to amplify the weak electric signals coming from the brain through electrodes attached to the scalp, etc. | * [http://opencircuits.com/LT1168 LT1168 Resistor-Programmable-Gain Precision Instrumentation Amplifier] is used to amplify the weak electric signals coming from the brain through electrodes attached to the scalp, etc. | ||
− | * and | + | * Several [http://opencircuits.com/LT1114 LT1114 Low Power Precision OP-Amps] are used for amplification and filtering of the signal |
==ESD Protection in 1168== | ==ESD Protection in 1168== | ||
Line 111: | Line 236: | ||
* Maxima a computer algebra system s used for graphing and math displays. | * Maxima a computer algebra system s used for graphing and math displays. | ||
*SPI interface code for a/d converters from TI for developers | *SPI interface code for a/d converters from TI for developers | ||
− | + | ||
− | |||
=== How You Can Help === | === How You Can Help === | ||
#. get the tools | #. get the tools | ||
− | |||
− | |||
− | |||
− | |||
== Open Source Circuit Design == | == Open Source Circuit Design == | ||
* [http://opencircuits.com/Programmable_Chip_EEG Open Source Circuit Design ] | * [http://opencircuits.com/Programmable_Chip_EEG Open Source Circuit Design ] | ||
− | * [http:// | + | * [http://pceegbci.blog.com/ The Programmable Chip EEG Open Source Circuit Design BLog] ''(BrokenLink -- I hope this is only temporarily offline. --[[User:DavidCary|DavidCary]] 10:12, 8 October 2007 (PDT) )'' |
== ideas for future work == | == ideas for future work == | ||
Line 148: | Line 268: | ||
Please contribute and make the PCEEG a great tool for researching brain computer interfaces. | Please contribute and make the PCEEG a great tool for researching brain computer interfaces. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also: == | == See also: == | ||
Line 160: | Line 273: | ||
* [https://electrical.codidact.com/posts/288010 "What is a good PCB-layout? ... an ECG-amplifier circuit."] | * [https://electrical.codidact.com/posts/288010 "What is a good PCB-layout? ... an ECG-amplifier circuit."] | ||
* [http://www.nytimes.com/2008/01/15/science/15robo.html?ex=1359090000&en=69146e0fb3807a74&ei=5124&partner=permalink&exprod=permalink/ Monkey’s Thoughts Propel Robot, a Step That May Help Humans ] | * [http://www.nytimes.com/2008/01/15/science/15robo.html?ex=1359090000&en=69146e0fb3807a74&ei=5124&partner=permalink&exprod=permalink/ Monkey’s Thoughts Propel Robot, a Step That May Help Humans ] | ||
+ | * [http://wiki.asiaquake.org/openeeg/published/ The OpenEEG wiki] | ||
+ | * [http://pceegbci.blog.com/ The Open EEG Brain Computer Interface BLog] | ||
* [http://www.larryheadinstitute.com/eeg-training.html EEG Training Seminars] | * [http://www.larryheadinstitute.com/eeg-training.html EEG Training Seminars] | ||
+ | * [http://pceeg.wikia.com/wiki/Main_Page wiki cities on pceeg] | ||
* [http://pceeg.sourceforge.net pceeg.sourceforge.net] | * [http://pceeg.sourceforge.net pceeg.sourceforge.net] | ||
* [http://www.answers.com/topic/miguel-nicolelis miguel nicolelis] | * [http://www.answers.com/topic/miguel-nicolelis miguel nicolelis] | ||
* [http://maxima.sourceforge.net/ Maxima - a computer algebra system] | * [http://maxima.sourceforge.net/ Maxima - a computer algebra system] | ||
− | * [[PCB Manufacturers]] | + | * [http://www.scienceprog.com/ digital high pass filters and other circuits] |
− | + | * [http://hcvl.hci.iastate.edu/cgi-bin/openEyes.cgi human and computer vision lab] | |
+ | * [[PCB Manufacturers]] such as [http://www.batchpcb.com/index.php www.batchpcb.com] | ||
* [http://vulliard.dyndns.org/~vulliard/ eeg biofeedback "mind machine"] | * [http://vulliard.dyndns.org/~vulliard/ eeg biofeedback "mind machine"] | ||
* [http://freenet-homepage.de/moosec/projekte/simpleeeg/index-Dateien/Page431.htm monolith eeg] | * [http://freenet-homepage.de/moosec/projekte/simpleeeg/index-Dateien/Page431.htm monolith eeg] | ||
+ | * [http://mindhacks.com/blog/2007/01/meg_scanning_the_bra.html yet another pundit disrespects the EEG] | ||
+ | * [http://www.pololu.com/laser_cutting.html lazer cutting for box & solder paste stencil] | ||
+ | * [http://www.amazon.com/Build-Your-Printed-Circuit-Board/dp/007142783X?tag2=zottmann1-20 Build Your Own Printed Circuit Board] | ||
* [http://www.stencilsunlimited.com/solder_products.php solder paste for surface mount that can be stored at room temperature] | * [http://www.stencilsunlimited.com/solder_products.php solder paste for surface mount that can be stored at room temperature] | ||
* The thread [http://forum.microchip.com/tm.aspx?m=114626 "amplifying biomedical signals: 150 uA with 16 bit resolution?"] has several op-amp suggestions, and mentions that "a good, low-noise, low-cost, isolated EMG/EEG amplifier is one of the most demanding analog electronics designs." | * The thread [http://forum.microchip.com/tm.aspx?m=114626 "amplifying biomedical signals: 150 uA with 16 bit resolution?"] has several op-amp suggestions, and mentions that "a good, low-noise, low-cost, isolated EMG/EEG amplifier is one of the most demanding analog electronics designs." | ||
Line 179: | Line 299: | ||
* Is there a [http://www.electronicproducts.com/ShowPage1.asp?SECTION=&PRIMID=&FileName=medtelconf3%2Ejul2004%2Ehtml&ReturnLink=%2FSearch1%2Easp%3FManufacturer%3D%26Keyword%3Dimplantables%26Slot%3D0%26StartNum%3D1%26stype%3D%26year%3D10&MonthYear=Jul+2004 Medical Electronics Forum]? | * Is there a [http://www.electronicproducts.com/ShowPage1.asp?SECTION=&PRIMID=&FileName=medtelconf3%2Ejul2004%2Ehtml&ReturnLink=%2FSearch1%2Easp%3FManufacturer%3D%26Keyword%3Dimplantables%26Slot%3D0%26StartNum%3D1%26stype%3D%26year%3D10&MonthYear=Jul+2004 Medical Electronics Forum]? | ||
* [http://www.makezine.com/blog/archive/2006/01/homemade_electrocardiograph.html Make: Homemade Electrocardiograph] ([http://www.eng.utah.edu/~jnguyen/ecg/ecg_index.html] recommends skin lotion or shampoo as a low-cost electrode gel) | * [http://www.makezine.com/blog/archive/2006/01/homemade_electrocardiograph.html Make: Homemade Electrocardiograph] ([http://www.eng.utah.edu/~jnguyen/ecg/ecg_index.html] recommends skin lotion or shampoo as a low-cost electrode gel) | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Projects]] | [[Category:Projects]] |