A man who recorded his neighbor's dog barking and played it back to her at full volume during the early hours has been given a two-year restraining order.
Andrew Nicklin, 50, of Nuthurst Road, West Heath, Birmingham, admitted a charge of harassment at the city's magistrates court.
The court heard he had waged a campaign of harassment against his neighbor.
Nicklin was also ordered to carry out 100 hours of community service.
The court heard he had banged on Catherine Farrell's fence and played his drums loudly after becoming angry at her Yorkshire terrier cross, Buster, barking.
He was arrested several times, but continued to harass Ms Farrell, the court heard.
District judge Jack McGarva said references given to the court by Nicklin painted him as a hard-working man.
"No-one could say that the recording of and playing of a dog barking in the early hours of the morning is a proportionate response to any problems that you might have with your neighbor," he added.
In mitigation, Balraj Singh Sahota said Nicklin had been wrongly portrayed as "a mad man".
He said Ms Farrell's decision to buy a dog had caused the problem.
The restraining order means Nicklin cannot make any contact with Ms Farrell, his neighbor of ten years.
Happy Pet's, Happy Life!