Opportunity missed

Yesterday, the Malaysian team lost a chance to brag 3 points in the opening match against Singapore. However, we still get 1 point from a 0-0 draw on that match. On the 14th minute...

Manchester United continues their winning streak

Manchester United have achieved their victory once again to continue their winning streak. Just 8 minutes after the whistle went off...

Gunners Stunned

After having a disappointment for the last few matches, Arsenal are stunned again by the 14th-ranked Blackburn yesterday. This made Arsenal...

Mission 33 almost impossible

Selangor lost another game with T-Team on a slim 2-1 score after having a draw wtih Kuala Lumpur last Tuesday. On the 14th minute...

Archive for August 2011

Happy 54th Merdeka Day!!


54th Merdeka Countdown!!!


Arduino Remote Decoder LED Trigger

This afternoon, I've made a project on my Arduino Uno. It is programmed to light a LED for each button I pressed on a remote control. I've used :
Arduino Uno
IR Receiver

10K Ohm Resistors
Phillips Remote Control
to make my project work! Below is the sketch for my project:

IRremote library download link >>>>>> HERE


#include <IRremote.h>                // use the library
int receiver = 8;                              // pin 1 of IR receiver to Arduino digital pin 8
IRrecv irrecv(receiver);                 // create instance of 'irrecv'
decode_results results;
int led1=2;
int led2=3;
int led3=4;


void setup()
{
  Serial.begin(9600);                    // for serial monitor output
  irrecv.enableIRIn();                    // Start the receiver
  pinMode(led1,OUTPUT);
  pinMode(led2,OUTPUT);
  pinMode(led3,OUTPUT);
}
void loop()
{
  if (irrecv.decode(&results))       // have we received an IR signal?
  {
    Serial.println(results.value, HEX);  // display it on serial monitor in hexadecimal
    irrecv.resume();                                 // receive the next value
  }            // Your loop can do other things while waiting for an IR command
  //below is triggering mode
  //0x???? ????is the HEX code detected, must add 0x to trigger something
  switch(results.value){
    case 0x458:                   //1st push (UP Button Phillips)
    digitalWrite(led1,HIGH);
    break;
    case 0x10458:              //2nd push
    digitalWrite(led1,HIGH);
    break;
    case 0x45A:                  //1st push (LEFT Button Phillips)
    digitalWrite(led2,HIGH);
    break;
    case 0x1045A:             //2nd push
    digitalWrite(led2,HIGH);
    break;
    case 0x45B:                  //1st push (RIGHT Button Phillips)
    digitalWrite(led3,HIGH);
    break;
    case 0x1045B:             //2nd push
    digitalWrite(led3,HIGH);
    break;
    case 0x45C:                 //1st push (OK Button Phillips)
    digitalWrite(led1,LOW);
    digitalWrite(led2,LOW);  
    digitalWrite(led3,LOW);
    break;
    case 0x1045C:            //2nd push
    digitalWrite(led1,LOW);
    digitalWrite(led2,LOW);  
    digitalWrite(led3,LOW);
    break;
    case 0x459:                 //1st push (DOWN Button Phillips)
    digitalWrite(led1,HIGH);
    digitalWrite(led2,HIGH);  
    digitalWrite(led3,HIGH);
    break;
    case 0x10459:            //2nd push
    digitalWrite(led1,HIGH);
    digitalWrite(led2,HIGH);  
    digitalWrite(led3,HIGH);
    break;
  }
}

Wanna know how it works? Watch the video below!!!! Enjoy!


by Weng Fei

Sorry!!!

Arsenal 2 - Manchester United 8
        I've been very sorry for not updating my blog for the last month. I was preparing for my exam (I actually had a lot of time to update it but I'm just lazy to do that). 
        For this time, I'll give you the highlights of a shocking match between Manchester United and Arsenal. As I said, it was shocking! Manchester United embarrassed Arsenal with a 8 - 2 goal! Wayne Rooney walked off with the matchball, having scored his 150th Red Devils goal, then adding two more after half-time to complete his hat-trick. Yet Rooney's efforts did not even account for half of United's staggering tally as they scored eight for the first time since 1999. 
        Danny Welbeck, Ashley Young, Nani and Park Ji-sung also found the net before Young completed the rout with his second. It was Arsenal's worst ever defeat against United and the first time they have conceded eight in a league game since 1896. The result leaves Wenger staring at the biggest crisis of his 15 years at the helm. 
         For Sir Alex Ferguson, so strident in his defence of the Frenchman pre-match, this is of little concern. His side are yet to drop a point, as are their noisy neighbours across the city. And while there are plenty at Stamford Bridge and Anfield who will strongly disagree this season already seems to be turning into an eight-month shoot-out between the red and blue halves of Manchester.


         Below here would be the video highlights of the match. Enjoy!


by Weng Fei



Popular Posts