A knocker is just a solenoid that hits a bracket attached to the cabinet, producing a loud

THWACK!!!

signaling that the player that a free game had just been awarded.