Wednesday, July 13, 2011

Robotsystems: DFKI Bremen - Robotics Innovation Center

A very good collection of research on Robot systems both meant for space and under sea exploration
Robotsystems: DFKI Bremen - Robotics Innovation Center

Friday, May 6, 2011

avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51 Error on Arduino IDE

If you are receiving the following error from Arduino :

avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

Double check if you have the right Arduino board selected. The most common cause of this error (IMO) used to be people choosing the Duemilanove 128 when they had the newer Duemilanove 328.  Click on Tools - Board and make sure you have the right board chosen, and try again.

Saturday, April 30, 2011

Processing and Arrow keys

Although in the Processing API it is mentioned that key returns the value of the pressed key, but when it comes to arrows it just returns question mark !!! The magic is to use keyCode :-)

void keyPressed(){
  //print(keyCode);
  if (keyCode == RIGHT){
    //GO RIGHT
  }
  else if (keyCode == LEFT){
    //GO LEFT
  }

  else if (keyCode == UP){
    //GO UP
  }
  else if (keyCode == DOWN){
    //GO DOWN
  }


}//end of keyPressed