how to open .pde file

It's just a plain text file. With the Arduino IDE (downloadable from arduino.cc) you can edit, compile and transfer them to the Arduino boards.

Korman