Instructables: A Smart Pull-up Bar With Arduino
Instructables

The final outcome was a neat Arduino-based device that uses an ultrasonic sensor to detect the pull-ups, a buzzer that produces short beeps for each complete pull-up, and an on/off switch.