Hi there could be several problems with the compressor. It sound like your compressor is cycling on and off the overload witch protects it. This can be caused by faulty wire, starting relay, capacitor, low voltage. Just a few things to check out good luck. I would start with the capacitor.
life long camper
good times had by all