Development of a monolithic silicon phototransistor array for optical encoders used in harsh environment and aerospace applications