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.