Setup and calibration of a particle detector based on charge coupled devices