In this paper the performance of a sensor system, which has been developed to estimate hip and knee angles and the beginning of the gait phase, have been investigated. The sensor system consists of accelerometers and gyroscopes. A new algorithm was developed in order to avoid the error accumulation due to the gyroscopes drift and vibrations due to the ground contact at the beginning of the stance phase. The proposed algorithm have been tested and compared to some existing algorithms on over-ground walking trials with a commercial device for assisted gait. The results have shown the good accuracy of the angles estimation, also in high angle rate movement.