in this project we need ultrasonic sensor
and processing software for processing
the processing software link is herehttp://playground.arduino.cc/Interfacing/Processing
firs you must connect the arduino board to computer and upload the arduino code after you must open the processing software and upload the processing code and run
you must choose the serial port from processing code
the processing code is here