This is a sun sensor from the Voyager 2 spacecraft program. This and related items are flight-qualified spare hardware, which were used in laboratory simulations to resolve in-flight problems encountered by the Voyager spacecraft.
Voyager 2 was an unmanned space probe which, in 1986, passed close to the planet Uranus to transmit images of its surface.
NASA's Jet Propulsion Laboratory transferred this artifact to the Smithsonian in 1999.
Transfer from the Jet Propulsion Laboratory, California Institute of Technology