Brain wave controlled robot

33
Brain wave controlled robot Rahul Wagh 9604068909

Transcript of Brain wave controlled robot

Page 1: Brain wave controlled robot

Brain wave controlled robot

Rahul Wagh9604068909

Page 2: Brain wave controlled robot

Contents:

• Introduction.• Literature survey.• Methodology.• Specification.• Block diagram.• Hardware details.• Software details.• Advantages.• Disadvantages.• Application.• References.

Page 3: Brain wave controlled robot

Introduction

• It is the study of brain functions.• A collaboration in which a brain accepts and controls a mechanical device.• Direct communication pathway between a brain and an external device.• Thus BCI extracts electro-physical signals from suitable components of the brain and process

them to generate control signals for computers, robotic machines or communication devices.

“ A Brain-Computer Interface is a communication system that do not depend on peripheral nerves and muscles “

[J. R. Wolpaw et al. “Brain-computer interface technology: A review of the first international meeting,” IEEE Trans. Rehab. Eng., vol. 8, no. 2, pp. 164–173, 2000]

Page 4: Brain wave controlled robot

What is BCI

• Brain-Computer Interfaces (BCI) • Interaction between the human neural system and machines• Goal

• Enabling people (especially disabled) to communicate and control devices by mere thinking.• BCI is a control system

Page 5: Brain wave controlled robot

Literature survey

A brain–computer interface (BCI), sometimes called a mind-machine interface (MMI), direct neural interface (DNI), or brain–machine interface (BMI), is a direct communication pathway between the brain and an external device. BCIs are often directed at assisting, augmenting, or repairing human cognitive or sensory-motor functions.

Research on BCIs began in the 1970s at the University of California, Los Angeles (UCLA) under a grant from the National Science Foundation, followed by a contract from DARPA.The papers published after this research also mark the first appearance of the expression brain–computer interface in scientific literature.

The field of BCI research and development has since focused primarily on neuroprosthetics applications that aim at restoring damaged hearing, sight and movement. Thanks to the remarkable cortical plasticity of the brain, signals from implanted prostheses can, after adaptation, be handled by the brain like natural sensor or effector channels. Following years of animal experimentation, the first neuroprosthetic devices implanted in humans appeared in the mid-1990s.

Page 6: Brain wave controlled robot

Methodology

• To control the wheelchair, EEG signals are needed. • Here this paper describes EEG signals through a BCI interface.• In this system we have a tendency to use simple unipolar electrode to record

EEG signal from the forehead to construct a Brain-Computer Interface (BCI) primarily controls electrical wheelchairs through ZigBee for unfit patients.

• The experimental results confirmed that this system will offer a convenient manner to control an electrical wheelchair.

Page 7: Brain wave controlled robot

Specification

PIC16F877A: a) 256 Bytes EEPROMb) Maximum operating frequency: 20MHzc) 368bytes Internal SRAMd) 8-channel, 10-bit ADCe) Operating Voltage range 4.5V. II. ZigBee transceiver: a) 2.4 GHz IEEE 802.15.4/ZigBee RF transceiverb) Wide supply range: 1.8 V – 3.8 Vc) Data rate: 250 kbpsd) RF frequency range 2.394 - 2.507 GHze) Transmission range: 50 meters  III. L293D driver IC: a) Wide Supply-Voltage Range: 4.5 V to 36 Vb) Output Current 1 A per Channel (600 mA for L293D)c) Peak Output Current 2 A per Channel (1.2 A for L293D)

Page 8: Brain wave controlled robot

Block diagram

Page 9: Brain wave controlled robot

Hardware details

Page 10: Brain wave controlled robot

Power Supply Circuit

V D D

V D D

C 70 . 1 u F

J P 2

2 2 0 V A C

12

- +

D 1 1

4

3

2

U 27 8 0 5

1

3

2V I N

GN

D

V O U T

C 61 0 0 u F

C 54 7 0 u F

R 42 2 0 o h m

D 2

L E D

Page 11: Brain wave controlled robot

Power Supply – Circuit Description

• The operation of power supply circuits built using filters, rectifiers, and then voltage regulators. Starting with an AC voltage, a steady DC voltage is obtained by rectifying the AC voltage, Then filtering to a DC level, and finally, regulating to obtain a desired fixed DC voltage. The regulation is usually obtained from an IC voltage regulator Unit, which takes a DC voltage and provides a somewhat lower DC voltage, Which remains the same even if the input DC voltage varies, or the output Load connected to the DC voltage changes.

Page 12: Brain wave controlled robot

About Microcontroller

• PIC16F877A microcontroller is used for this project• It is 8-bit Microcontroller• System is RISC Architecture• It has Small set of Instruction set• It has 35-Instructions only• Compatibility: avail 28/40 Pin ICs

Page 13: Brain wave controlled robot

Microcontroller overview

• Operating Speed Max 20 MHz, Voltage-(2-5.5)v• Memory:

Flash Program 8Kx14 Words,

RAM 368 Bytes,

EEPROM Data Memory 256 Bytes• Low power, High speed Flash/EEPROM Technology

Page 14: Brain wave controlled robot

Features of Microcontroller

• It has 5 Ports for Internal and External usage• It has on chip Timers. 3 Timers are avail• It has in built Analog to Digital Converter• In built Multiplexer availability for signal Selection• It has serial as well as Parallel Communication facilities• In built Capture, Compare and Pulse width modulation

Page 15: Brain wave controlled robot

Pin Diagram

Page 16: Brain wave controlled robot

PIC16F877A microcontrollerV D D

M C L R

R XTX

R A 0

R B 7R B 6R B 5R B 4R B 3R B 2R B 1R B 0

R D 7R D 6R D 5R D 4R D 3R D 2R D 1R D 0

R C 2R C 3R C 4R C 5R C 6R C 7

R E 2R E 1R E 0R A 5R A 4R A 3R A 2R A 1

R C 0R C 1

R A 0

C 92 7 p F

C 82 7 p F

C 1 00 . 1 u F

P IC 1 6 F 8 7 7U 3

123456

11 32 12 31

789

1 0

1 31 4

1 51 61 71 8

1 92 0

3 33 43 53 63 73 83 94 0

2 82 93 0

2 12 2

2 42 52 6

2 7

2 3

M C L R /V p pR A 0 /A N 0R A 1 /A N 1R A 2 /A N 2 / V re f -R A 3 /A N 3 / V re f +R A 4 /T0 C K I

VD

D

VD

D

VS

S

VS

S

R A 5 /A N 4 / S SR E 0 /A N 5 / R DR E 1 /A N 6 / W RR E 2 /A N 7 / C S

O S C 1 / C L K I NO S C 2 / C L K O U T

R C 0 / T1 O S O / T1 C K IR C 1 / T1 O S I / C C P 2R C 2 / C C P 1R C 3 / S C K / S C L

R D 0 / P S P 0R D 1 / P S P 1

R B 0 / I N TR B 1R B 2

R B 3 / P G MR B 4R B 5

R B 6 / P G CR B 7 / P G D

R D 5 / P S P 5R D 6 / P S P 6R D 7 / P S P 7

R D 2 / P S P 2R D 3 / P S P 3

R C 5 / S D OR C 6 / TX/ C KR C 7 / R X/D T

R D 4 / P S P 4

R C 4 / S D I / S D A

Y 1

4 M h z

R 61 k

R 52 2 0 o h m

S W 2

R E S E T

Page 17: Brain wave controlled robot

USART pins inPIC16f877A

• The USART always transmits data on pin RC6/TX• The USART always receives data on pin RC7/RX• The RS-232 standard defines lots of other signals other than TX and RX used for

handshaking.

Page 18: Brain wave controlled robot

Voltages

• The USART input/output uses 0V for logic 0 and 5V for logic 1.• The RS-232 standard (and the COM port) use +12V for logic 0 and –12V for logic

1.• To convert between these voltages levels we need an additional integrated circuit

(such as Maxim’s MAX232).

Page 19: Brain wave controlled robot

MAX232

V D D

R X

TX T2 O U T

R 2 I N

U 1M A X2 3 2

1 38

1 11 0

1345

2

6

1 291 47

1615

R 1 I NR 2 I NT1 I NT2 I N

C +C 1 -C 2 +C 2 -

V+

V -

R 1 O U TR 2 O U TT1 O U TT2 O U T

VC

CG

ND

C 1 1 0 u F

C 41 0 u F

C 31 0 u F

C 21 0 u F

Page 20: Brain wave controlled robot
Page 21: Brain wave controlled robot

Zigbee module

• The XBee and XBee-PRO OEM RF Modules were engineered to meet IEEE 802.15.4 standards and support the unique needs of low-cost, low-power wireless sensor networks. The modules require minimal power and provide reliable delivery of data between devices.

• The modules operate within the ISM 2.4 GHz frequency band and are pin-for-pin compatible with each other

Page 22: Brain wave controlled robot

IEEE 802.15.4 MAC

Applications

IEEE 802.15.42400 MHz

PHY

IEEE 802.15.4868/915 MHz

PHY

802.15.4 / ZigBee Architecture

ZigBee

• Packet generation• Packet reception• Data transparency• Power Management

Page 23: Brain wave controlled robot

802.15.4 Architecture

IEEE 802.15.4 MAC

Applications

IEEE 802.15.42400 MHz

PHY

IEEE 802.15.4868/915 MHz

PHY

• Channel acquisition• Contention mgt• NIC address• Error Correction

ZigBee

Page 24: Brain wave controlled robot

802.15.4 Architecture

IEEE 802.15.4 MAC

Applications

IEEE 802.15.42400 MHz

PHY

IEEE 802.15.4868/915 MHz

PHY

• Network Routing• Address translation• Packet Segmentation

• Profiles

ZigBee

Page 25: Brain wave controlled robot

Data Flow diagram

• The XBee®/XBee-PRO OEM RF Modules interface to a host device through a logic-level asynchronous serial port. Through its serial port, the module can communicate with any logic and voltage compatible UART; or through a level translator to any serial device (For example: Through a Digit proprietary RS-232 or USB interface board).

Page 26: Brain wave controlled robot

Software details

Page 27: Brain wave controlled robot

Embedded C

• The C for microcontrollers and the standard C syntax and semantics are slightly different. The former is aimed at the general purpose programming paradigm whereas the latter is for a specific target microcontroller such as 8051 or PIC. The underlying fact is that everything will be ultimately mapped into the microcontroller machine code. If a certain feature such as indirect access to I/O registers is inhibited in the target microcontroller, the compiler will also restrict the same at higher level. Similarly some C operators which are meant for general purpose computing are also not available with the C for microcontrollers. Even theoperators and constructs which may lead to memory inefficiency are not available in C programming meant for microcontrollers.

Page 28: Brain wave controlled robot

Embedded C(cont…)

• Be aware that the target code should fit in the limited on-chip memory of the processor. Even the I/O functions available in standard C such as printf() or scanf() are either not made available in C compilers for microcontrollers or advised not to use them. These functions eat up lot of memory space and are not time-efficient owing to the dragging of supporting functions like floating point routines and lot of delimiters. Another striking difference in case of embedded systems programs is that they do nothave the umbrella or support of the operating system. The programmer has to be accustomed with the absence of system calls which makes life easy in traditional C.

Page 29: Brain wave controlled robot

MPLAB IDE

• MPLAB IDE is a Windows Operating System (OS) software program that runs on a PC to develop applications for Microchip microcontrollers and digital signal controllers.

• It is called an Integrated Development Environment, or IDE, because it provides a single integrated "environment" to develop code for embedded microcontrollers.

• The MPLAB IDE has both built-in components and plug-in modules to configure the system for a variety of software and hardware tools.

Page 30: Brain wave controlled robot

MPLAB IDE

Page 31: Brain wave controlled robot

Disadvantages

THE DRAWBACKS OF BCI :

- THE BRAIN IS INCREDIBLY COMPLEX,

- THE SIGNAL IS WEAK & PRONE TO INTERFENCE,

- THE EQUIPMENTS IS LESS THAN PORTABLE,

Page 32: Brain wave controlled robot

Application

Page 33: Brain wave controlled robot

References

1) Jzau-Sheng Lin,Kuo-Chi Chen and Win-Ching Yang, “EEG and Eye-Blinking signals through a BrainComputer Interface Based Control for Electric Wheelchairs with Wireless Scheme”.

2) K. Kiguchi and Y. Hayashi, “Motion Estimation based on EMG and EEG Signals to Control Wearable Robots”, IEEE International Conference on Systems, Man and Cybernetics, pp. 4213-4218, 2013.

3) S.Y. Cho, A. P. Vinod, and K. W. E. Cheng, "Towards a Brain Computer Interface Based Control for Next Generation Electric Wheelchairs ", Int. Can! on Power Electronics Systems and Applications, pp. 1-5,2009.

4) K. Nielsen, A. Cabrera, and O. Nascimento, "Eeg based bci - towards a better control: Braincomputer interface research at aalborguniversity,"IEEE Transactions on Neural Systems and Rehabilitation Engineering., vol. 14, no. 2, pp. 202-204, 2006.

5) G. E. Fabiani, D. J. McFarland, J. R. Wolpaw, and G. Pfurtscheller"Conversion of EEG activity into cursor movement by a brain-computer interface (BCI), IEEE Trans. on Neural Systems and Rehabilitation Eng., vol. 12, no. 3, pp. 331-338, Sep. 2004.