Thursday, May 23, 2013

Finally is time to say GOOD bye to UTAR

Finally, I have my engineering degree.

Thanks, LORD...
leading me and blessed me passed such a difficult semester.
And thanks for blessed such a beautiful and warm angel in my final journey for completing my studies.

Thanks to my parents supporting me all the way until I am graduated. 

Thanks my academic adviser and also FYP supervisor Dr Yong Thian Khok guiding me with his advice and comfort in this 5 years times. Sincerely thanks... 

And also thanks to all my brothers and sisters that cheers up my life in UTAR.

Life is difficult...
Is time to start another part of my life!


Tuesday, May 7, 2013

Last Final Exam Paper in UTAR???

Although maybe it's not a good ending
But
It's also not the worst ending as well 

I was tried my best!!!

No matter what the destiny.
It is still always the blessing from GOD...


Saturday, April 13, 2013

Finally Thesis Submission

Fighting all the way from the day I don't know how to do the simple differentiation and integration and finally submission of Thesis in an engineering course.

It is difficult and it is totally not easy for me.
And I'm still not confident to pass all my subjects in this final Semester.
No one can help unless myself!!!

Many University said that coursework helps you to pass!!!
But in UTAR engineering course! There is no more such thing!!! it is to kill you before you go into final exam....





Saturday, March 23, 2013

Finally Thesis


Writing a thesis just like writing a love diary. Although it is time consuming but i am still quite enjoy with it. It make me refreshing back all the bitter memories in come out the solution for all the problem met in this project.  

The product may seen and sound complicated but in fact no matter how simple it is. I should review my product scientifically in report. 

Still have long way to go but with a very limited time to complete every things. The only way i can do is try my best by fully utilizing my time to complete and withdrawn from UTAR .    







Tuesday, February 26, 2013

To be insane soon!!!

10 LAB REPORTS + 5 ASSIGNMENT + 6 TEST + FYP HARDWARE + FYP THESIS =24 TASKS


Friday, February 22, 2013

hello hello

Hi guys and girls...

I am back again. Seen like another 10 more weeks gonna to complete my studies in UTAR. 

After completing this degree how much going to be my value in market? Any one going to hire me?

Sad...
I am just nothing with the super poor result in my hand!!! Life is difficult rite?? Where to have the courage go for interview!! Even now i struggling how to pass all subjects in this final semester. 


This is my final year project partial prototype may call its as Opto transceiver. Look cool rite? Better don't tell you how fast the transmission speed. Will laugh die you one!!!




Saturday, February 2, 2013

What the hell is that!!!

When i looking back for the project i did for Embedded System Design one year ago. . I try gone through and refresh back all task i did. Especially all those email conversation. 

I asking my self!!!
How can i make it!!! Is that me?? And yet the project was done in very last minute... I am just like a hero in the group by surprisingly present the final product to my group in last minute!!!
Of course.... After that, i told my self.... I will never ever touch that chip any more!!!

Unfortunately.....
In my final year project. I need this chip to solve some of my problem again!!!  
When i gone through the codding i compile before!! 
I only can ask my self "What the hell is that!!!!"

Do you know what the alliance language shown below??






// Temperature monitoring and safety system
#include
#include "lcd.c"
#include "lcd.h"
void initADC( );
int read_averageADC();
int readADC( int tsensor);
void _ISR _T1Interrupt();
void convert(int no, char base);
void display(char number);
void converter();
int count=0,count2=0,x,y,key1,key2;    //declare and initialization 
int temp,temp2; //temporarry variable for temperature 
int temperature[3],i;
_CONFIG1(JTAGEN_OFF & BKBUG_OFF & FWDTEN_OFF) //setup configuration bits
_CONFIG2(FCKSM_CSDCMD & OSCIOFNC_ON & POSCMOD_NONE & FNOSC_FRC)
#define SENSOR 1
char di[10];
int main()
{
AD1PCFG = 0x1FFE; //Set all pins to analogue input
TRISB &= 0x0000; //Port B set to output for D4,D5,D6 and D7
TRISA = 0x0001; //Port A set to output for RS and E and input for AN0
_TRISB9=0;//set RB9 as input
lcd_init();
initADC();
lcd_clear();


//********************************************************************
while(1)// main loop
{
//---------------------------------------------------------------
//basic initialization
x=0;
y=0;
key1=1;
key2=0;
//----------------------------------------------------------------
/*
* DC fan speed control timer initialization and output config 
* DC fan control for temperature monitoring within temperature 0-50 
* from 0-24  40% fan speed 
* from 25-39 80%
* from 40-45 100%
* greater than 46 alarm trigled temperature monitoring fail
*/
_TRISB14=0; //port RB14 as output
_TRISB8=0;
_TRISB9=1; //port RB15 as output
AD1PCFG=0Xffff;
_T1IF=0; //Clear timer1 interrupt flag.
_T1IE=1; //Enable timer1 interrupt.
_RB14=0;
_RB15=0;
_RB8=0;
    _RB7=0;
T1CON=0x8000; //Timer1 on.
PR1=0x2710; //Timer counter of 10 ( 10 is for mplab testing) in decimal(PR1=period-1).
TMR1=0;
//--------------------------------------------------------------------
while(key1)//secondary loop 1
{
//------------------------------------------------------------
//Read the temperature from sensor and display on LCD
if(_RB9==1){
count2+= _RB9;
}
_RB9=0;
if(count2>2){
count2=0;
}
converter();

//----------------------------------------------------------------------------------------------------------
};//secondary loop 1
while(key2)//secondary loop 2
{
// actually can decide for continue ing display latest temperature here 
_RB8=1;//testing alarm 
_RB15=1;//testing alarm

if(_RB9==1)//RB9 used for 
{
// all port reset before return to secondary loop 1
x=0;
y=0;
_RB9=0;
_RB7=0;
_RB14=0;
_RB15=0;
key1=1;
key2=0;
_RB9=0;
delayms(100);// delay needed to avoid interating the _RB9 (switched) input 
}
};//secondary loop 2
};//main loop
//**********************************************************************************
}//main

void _ISR _T1Interrupt()//interupt funtion for fan speed setting
{count++;
temp2=read_averageADC();// take reading form sensor
//temp2=45; use for testing different temperature here 
//----------------------------------------------------------
//DC fan speed and alarm control 
if (temp2<27 div="">
{
//go 40% fan speed mode 
_RB14=x;
} else {
if (temp2>26 && temp2<35 div="">
{
//go 80% fan speed mode
_RB14=y;
} else{
if (temp2 >35 && temp2<40 div="">
{
//go 100% fan speed mode 
_RB14=1;
} else if (temp2>39){
// alarm triggled (all at secondary loop 2)... 
_RB14=1; 
key1=0;// stop this loop and jump to secondary loop 2
key2=1;// enable key to secondary loop 2
T1CON=0x0000; //timer off and no more interrupt allowed
}
}
}
if(count==6)//at sixth time entering interrupt togger x
{
x=~x;
}else
if(count==2)//at second time entering interrupt togger y
{
y=~y;

}else
if(count==10)// togger both pins at tenth times entering interupt
{
x=~x;
y=~y;
count=0;
}

//-------------------------------------------------------------------------------------------------------------


_T1IF=0;
}
void initADC( )
{
AD1CON1 = 0x00E0; // auto convert after end of sampling
AD1CSSL = 0; // no scanning required
AD1CON3 = 0x1F02; // max sample time = 31Tad, Tad = 2 x Tcy = 500ns >75ns
AD1CON2 = 0x0000;// use MUXA, Vss and Vdd are used as Vref+/-
AD1CON1bits.ADON = 1; // turn on the ADC

int readADC( int tsensor)
{
AD1CHS =0x0000; // input at AN0
AD1CON1bits.SAMP = 1; // start sampling, auto-conversion will follow
while (!AD1CON1bits.DONE); // wait to complete the conversion
return ADC1BUF0; // read the conversion result

int read_averageADC()
{
int temp,j;
initADC();
temp = 0;
T3CON = 0x8030;
for ( j= 16; j >0; j--)
{
TMR3 = 0;
temp += readADC( SENSOR); 
}
temp >>= 4; //get the average of 16 readings
temp = temp*330/1024; //temp*330/1024
return temp;
}
//function used to get reminder and store in array
void convert(int no, char base)
{int i;
for(i=1;no!=0;i++) {
di[i]=no%base;
no=no/base;
}
}
//switching method use for convert the character stored in array
void display(char number)
{
switch(number){
case 0:{lcd_string("0");break;}
case 1:{lcd_string("1");break;}
case 2:{lcd_string("2");break;}
case 3:{lcd_string("3");break;}
case 4:{lcd_string("4");break;}
case 5:{lcd_string("5");break;}
case 6:{lcd_string("6");break;}
case 7:{lcd_string("7");break;}
case 8:{lcd_string("8");break;}
case 9:{lcd_string("9");break;}
case 10:{lcd_string("A");break;}
case 11:{lcd_string("B");break;}
case 12:{lcd_string("C");break;}
case 13:{lcd_string("D");break;}
case 14:{lcd_string("E");break;}
case 15:{lcd_string("F");break;}
default:{lcd_string("?");break;}
}}


//functiom below is main function for converting analogue signal from temperature sensor
//and display on LCD
void converter(){
AD1PCFG = 0x1FFE; //Set all pins to analogue input
TRISB &= 0x0000; //Port B set to output for D4,D5,D6 and D7
TRISA = 0x0001; //Port A set to output for RS and E and input for AN0
temperature[0]=read_averageADC(); //10mV per Celsius
temperature[1]=(int)(1.8*temperature[0]+32); //Celsius to Fahrenheit 320
temperature[2]=(int)(temperature[0]+273); //Celsius to Kelvin 2731.5
lcd_line(0,0);
lcd_string("Temp:");
lcd_line(5,0);
lcd_string("=");
lcd_line(6,0);
convert(temperature[count2],10);
for(i=3;i>=1;i--) // display the converted value in array [reminder 3,reminder 3,reminder 3]
{
display(di[i]);
}
for(i=1;i<4 div="" i="">
{
di[i]=0;
}
if(count2==0){
lcd_char(0xdf);
lcd_string("C");
    lcd_line(0,1);
}else
if(count2==1){
lcd_char(0xdf);
lcd_string("F");
}else if (count2==2)
{
lcd_char(0xdf);
lcd_string ("K");
}

//temperature condition display
lcd_line(0,1);
if(temperature[0]<27 div="">
lcd_string("Good         ");
}
else
if(temperature[0]>26 &&temperature[0]<35 div="">
lcd_string("Moderate     ");
}
else
if(temperature[0]>34 && temperature[0]<40 div="">
lcd_string("Hot         ");
}
else
if(temperature[0]>39){
lcd_string("Caution     ");
}


}


Saturday, November 10, 2012

Why UTAR!!!

Its almost 5 years in UTAR.

Sometime at top of the hill and sometime i fall as deep into the hell.

Its really suffer and difficult!!!

I am really not the one good in studies. I am not sure why i joined UTAR! Why i need to be here...

I really wish to withdraw from here now but its sound impossible!!!

7 more months!!! 5 more subjects for me to terminate UTAR!!!
Seriously i don't like UTAR!!!




Friday, November 2, 2012

My laboratory

Hardwork!!!!!!






Wednesday, September 19, 2012

Friday, August 17, 2012

How suffer is it when there a unnessery subject offered!!!!

LAW FOR ENGINEERING!!!!
DO WE REALLY NEED IT??


Saturday, August 11, 2012

That's My Destiny

Although it seen easy... But when really want come to it... Its in totally different view!!! It's really difficult!!!

Although i almost reach there!! But still lake of confident and faith....


Tuesday, July 17, 2012

Finally in Final Year now

Finally in Final year now...

After back from intern, Its too difficult for me focus in my studies and homework. May be i prefer working more than study.

I have a very good time at Philips Lumileds. I made a lot new friends there and also learned quite much on Matlab in this Company. Its bring me a meaningful intern period in Philips Lumileds.

Just like a dream!! Now i am in week eight of my final year semester one. I am still struggling with my school work although i have only three subjects needed for final exam for this semester.

I try very hard to make my self focus but its always failed to do so! I thought i did bad on my first test but i achieved 76% in test. Its just lucky sharing.

With the interesting title proposed by my lecturer "Visible Light Communication System". I accepted the challenge without any anxious but I think i started worry with my progress. It's very fresh technology in communication systems which the signal transmission was base on Flicking LED. I didn't hope i can do very well in this project but hope i can come out with something to pass my final year project credit. My dream now only if i can graduated.


Between i also join back UTAR Taekwondo. Since my weight is getting heavy and heavy i hope i can get some fitness work in this club. But seen like its boring cause all those crazy members not around.

We have a difficult moment but its doesn't means that moment will halt forever.
Looking toward no matter how hard and how difficult it is!
I believe i will made it and said good bye to UTAR...


Saturday, May 12, 2012

Thursday, April 19, 2012

Try updating my self

One more day it's going to end my week 16 in Philips Lumileds. Only left 4 more weeks for me to be here.

I start fall in love with working environment here. I was grateful to work with my supervisor and also colleagues here.

But no matter how....
I still need to go back for complete my degree course.

Is time to busy with my intern report and presentation....
Beside also need to relocate my self too...

Cheersss





Thursday, April 5, 2012

Saturday, February 4, 2012

Weekend Dessert

The historical "Tau fu hua" shop (Near Tune Hotel Penang).

US Pizza (Some way near tune hotel too)

Tuesday, January 24, 2012

Fatty Loh Chicken Rice

I had visited Fatty Loh Chicken Rice restaurant today. There have variety choice of dishes and its taste really nice. With the eighties century interior dining environment. Its really look special and amazing. If you landed in Penang island, you should not miss up this place.

All dishes i ate

Moi Choy Khao Yok
Spring Roll
Green Vagetable
Chicken
Here the restaurant
Air-corn side,
May be its not a lunch time so not much people here.
Smoking area but too hot no one here
Dishes menu

Monday, January 23, 2012

Happy Chinese New Year

Happy Chinese New year for every one Pass through here.

Little sharing from me on Chinese New Year Eve:
I used my evening time jogging for about 8KM. Which 4.2KM from my house to Straits Quay. Really enjoy with the sea side view all the way to Straits Quay.
Well.... Nothing much can do this new year. Just wish to have a good rest before go back to office.

Straits Quay view

At last wish you all Gong Xi Fa Chai and always have a good luck in this dragon year....

Sunday, January 22, 2012

Completed 3rd week in Penang

Although i was so excited with intern life but after 3 weeks working. I started felt tired. I was started known how wonderful the feeling on weekend and moody feeling on Monday.

But still get comforted when received my salary before Chinese New Year.

Got my salary before Chinese New Year
^_^
Special gift from company for Chinese New Year