A hammer sensor includes a photo-filter plate movable together with a hammer
assembly
and having a base plate fixed to the hammer shank and an arc pattern formed on
the base plate and different in transparency from the base plate, a photo radiating
element radiating a light beam toward the arc pattern and a photo detecting element
disposed on the optical path of the light beam for converting the amount of transmitted
light to an electric signal, wherein the photo-filter plate converts the rotational
angle of the hammer assembly to the amount of light incident on the photo detecting
element, and makes the photo radiating element and the photo detecting element
stationary so that a suitable photo-shield case prevents the photo elements from
environmental light.