Friday, April 27, 2012

Week 14

Date : 23rd - 27th April 2012


This week I will demonstrate my prototype to assessors during UniKL BMI Engineering Day. I need to do final touch up on my prototype and design a project poster. Below is the design of my poster:




The picture below gives the overview picture of my prototype inclusive of EOG goggle, EOG circuit and microcontroller + transmitter circuit.


Friday, April 20, 2012

Week 13

Date : 16th - 20th April 2012


My prototype is not working as I predicted and planned. Problems might caused by the serial communication between microcontroller and mouse (USB). I tried to modify my connected to laptop via RS232.



But, by the end of the week, I did not succeed.

Saturday, April 14, 2012

Week 12

Date : 9th -13th April 2012


My programming protocol for this project is quite simple. For the LCD that attached to the EOG box, I use voltmeter programming where the output voltage from both horizontal and vertical movement will be displayed on the LCD.

For example:


// include the library code:
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
// variables for input pin and control LED
int EOG1 = 1;
int EOG2 = 2;
float vout1 = 0.0;
float vout2 = 0.0;

// print result to lcd display
lcd.setCursor(0, 0);
lcd.print("EOG Vert=");
lcd.setCursor(10, 0);
lcd.print(vout1);
lcd.print("V");
lcd.setCursor(0, 1);
lcd.print("EOG Hori=");
lcd.setCursor(10, 1);
lcd.print(vout2);
lcd.print("V");
delay(500);
}

For wireless communication, I have set both XBee to communicate to each other, and those data transferred can be monitored in the laptop by using XCTU software.

XCTU Monitor

Next, would be the programming for the mouse cursor. Part of the program is as below:


const int buttonPin = 2; //LOW on digital pin enables mouse
const int potXPin = 4; // analog pins for pots
const int potYPin = 5;
void setup()
{
Serial.begin(9600);
pinMode(buttonPin, INPUT);
digitalWrite(buttonPin, HIGH); // turn on pull-ups
}
void loop()
{
int x = (512 - analogRead(potXPin)) / 4; // range is -127 to +127
int y = (512 - analogRead(potYPin)) / 4;


For both programming, my references are form MyDuino websites, and mouse serial programming related websites.

Friday, April 6, 2012

Week 11

Date: 4th - 6th April 2012


After selecting appropriate microcontroller, I then finalize my circuit construction. The schematic design that I use in this project comes from Luis Cruz Eyeboard circuit. I contacted Mr. Cruz via email and ask for his permission to use his eyeboard schematic design. He is an Electronics Engineering student in one of the university in United Stated.


Friday, March 30, 2012

Week 10

Date: 26th - 30th March 2012

I have started my work on Arduino, my chosen microcontroller, and Zigbee, as my wireless medium. My lecturer, Mr. Zul had agreed to help me purchase Arduino Uno R3 and Xbee module.
Arduino Uno R3

I chose Arduino as my microcontroller because it is an open-source physical computing platform based on a simple i/o board and a development environment that implements the Processing/Wiring language. The beauty of open-source is that, the IDE can be downloaded for free.
  
Arduino Uno R3 Features: 

  • ATmega328 microcontroller
  • Input voltage - 7-12V
  • 14 Digital I/O Pins (6 PWM outputs)
  • 6 Analog Inputs
  • 32k Flash Memory
  • 16Mhz Clock Speed

Xbee 1mW 802.15.4
I chose Xbee because it allows a very reliable and simple communication between microcontrollers, computers, systems, and anything with a serial port. Point to point and multi-point networks are supported.

Features:
  • 3.3V @ 50mA
  • 250kbps Max data rate
  • 1mW output (+0dBm)
  • 300ft (100m) range
  • Built-in antenna
  • Fully FCC certified
  • 6 10-bit ADC input pins
  • 8 digital IO pins
  • 128-bit encryption
  • Local or over-air configuration
  • AT or API command set


Saturday, March 24, 2012

Week 9

Date:19th - 23rd March 2012

In the beginning of the week, I spent times designing PCB tracing for my EOG circuit. At the end of the week, my EOG circuit on PCB was completed. Next step is to test the circuit and compare the output result with breadboard circuit connection.

Friday, March 16, 2012

Week 8

Date: 12th - 16th March 2012

I came back to KL after a week mid-semester break and went to Jalan Pasar to pick up my Instrumentation Amplifier that I ordered. Then, I constructed my EOG circuit on breadboard.

Saturday, March 3, 2012

Week 7

Date: 27th February - 2nd March 2012


I went to Jalan Pasar to order my Instrumentation Amplifier IC, INA118 and INA126. I was told that those items need to be order from Singapore and it gonna take about 3 days to arrive. Next week will be our mid-semester break for a week, so I proceed with the order and gonna pick up my ICs as soon as I am back from my hometown. 

The pictures below showing my ICs' pins configuration and internal architecture with basic connection.



INA126 MicroPOWER INSTRUMENTATION AMPLIFIER

It is a precision instrumentation amplifiers for accurate, low noise differential signal acquisition. Their two-op-amp design provides excellent performance with very low quiescent current (175mA/chan.). This, combined with wide operating voltage range of ±1.35V to ±18V, makes them ideal for portable instrumentation and data acquisition systems.



INA118 Precision, Low Power INSTRUMENTATION AMPLIFIER

It is a low power, general purpose instrumentation amplifier offering excellent accuracy. Its versatile 3-op amp design and small size make it ideal for a wide range of applications. Current-feedback input circuitry provides wide bandwidth even at high gain (70kHz at G = 100).


After I get my hands on the ICs, I am planning to do the basic connection then decide on what I am going to do next depending on the result.



Saturday, February 25, 2012

Week 6

Date: 20th - 24th February 2012


This week I am putting aside all my electrical and electronic parts of the project. I went goggle shopping and these were what I found and purchased:






After trying them on, I decided to use Goggle #3, the Picasaf Protective Eyewear for my EOG Goggle. It is the most comfortable among them all. But, I have to fully attach the EOG electrodes and the connection cable in order to finally confirm that this goggle is eligible.


Friday, February 17, 2012

Week 5

Date: 13th - 17th February 2012


I was not able to conduct any lab experiment this week due to a certain reason so I spend my time doing internet research and selecting circuit diagram for my project. I realize that I need to construct few circuits and I came up with a block diagram as shown below:


EOG-Goggle Based-Wireless Mouse Block Diagram
EOG Goggle: 
I need to custom made a goggle which attached to dry electrodes for user interface.

Electrodes Circuit: 
I need to construct a circuit which consists of pre-amplifier, Band-Reject Filter, Isolator, Band-Pass Filter, and Amplifier in order to come up with a reasonable EOG output (instead of in micro-volt, i can get mili-volt with this circuit).

Amplifier Circuit:
And again I need to amplify the output voltage from mili-volt to volt in order to fed into PIC. 

PIC Transmitter Circuit:
This circuit attached to user, will send data or command to PIC Receiver Circuit.

PIC Receiver Circuit:
This circuit attached to laptop or computer via RS232, will receive data or command from PIC Transmitter Circuit.


Listing components to purchase
I went to Jalan Pasar to purchase some electronic components for the project. I purchased LM 324 Quad Operational Amplifier, LM 7805 Voltage Regulators, resistors and capacitors. 


LM 324 Quad Operational Amplifier consist of four independent, high gain, internally frequency compensated operational amplifiers which were designed specifically to operate from a single power supply over a wide voltage range. 

LM 7805 Voltage Regulator has on-card regulation for elimination of noise and distribution problems associated with single-point regulation.



Friday, February 10, 2012

Week 4

Date: 6th - 10th February 2012


Conducted second lab experiment of Electrooculogram (EOG) Measurement on Thursday (09/02/12) at HPL 209. The goal of the experiment is to acquire and control the output signal from KL-75003 Electrooculogram (EOG) Module. The output was fed to Digital Multimeter and Digital Oscilloscope. I was assisted by my classmate, Ms. Dalilah.

Experimental Results:



Output to Digital Oscilloscope

Yellow signal = Left & Right (eye movement)
Blue signal = Up & Down (eye movement)

Output to Digital Multimeter


                       
                                Subject's eye move to LEFT              
                      

         
                       Subject's eye move to RIGHT 
   
                                        Subject's eye move UP                                          


Subject's eye move DOWN
                                  
LEFT eye movement gave positive reading (3.7mV) on Digital Multimeter while RIGHT, negative (-3.5mV). UP and LOW eye movement gave both negative reading where either one suppose to give a positive value. This probably due to electrode placement error or some other reason that yet to be discover on the next lab session.

Analysis:

The human eye is polarized, with the front of the eye being positive and the back of the eye being negative, caused by a concentration of negatively charged nerves in the retina on the back of the eye.


Friday, February 3, 2012

Week 3

Date: 30th January - 3rd February 2012


Conducted lab experiment of Electrooculogram (EOG) Measurement on Thursday (02/02/12) at HPL 209. The goal of the experiment is to acquire and understand the electrical alteration in the muscles that control the eyeball motion. In this experiment, I was assisted by my classmate, Ms. Dalilah.

Equipment used: KL-72001 Main Unit, KL-75003 Electrooculogram (EOG) Module, Digital Oscilloscope, KL-79101 5-Conductor Electrode Cable, disposable body surface electrodes, RS-232 cable, connecting wires, and 10-mm Bridging Plugs.

KL-72001 Main Unit and KL-75003 Electrooculogram (EOG) Module

Dalilah and I were trying to obtain result on Digital Oscilloscope

The electrodes placement were on upper, lower, left, and right of the eye, and the reference electrode on the frontal lobe. The experiment results as shown below:

Distorted signal where subject wriggle the electrode cables and  perform rapid blinking
Yellow signal indicates Right & Left movement while Blue signal indicates Up & Down movement of the eye

The lab experiment that was conducted did not satisfy my lab objective. The output signals were distorted whereby it display lots of noise signal. Hence, I decided for my next lab experiment would be involving multimeter measurement.


My lab experiment was assisted by Ms. Dalilah with the presence of my FYP Advisor, Mr. Syazwan

Friday, January 27, 2012

Week 2

Date: 23rd - 27th January 2012


Attended 2nd FYP Briefing at Gemilang Hall on 26/01/12. We were instructed to get started with our FYP Blog and failure to publish will results in 3% marks deduction. Had a short meeting with FYP Advisor, Mr. Syazwan, discussion on how to proceed with the project. I am going to perform EOG experimental lab for few weeks in order to investigate EOG output and to analyse my findings.

Friday, January 20, 2012

Week 1

Date: 16th - 20th January 2012

Attended FYP Briefing on Thursday (19/01/12) at Gemilang Hall. The briefing agenda was mainly pertaining RPS whereby we need to update our student profile. We are instructed to create a blog instead of using Log Book for our weekly progress report.