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.