Perhaps turn that wire into a touch sensor instead, with a bright light and noise scare, than to dial in a good shock. Something that lasts longer than a momentary poke that the raccoon might think was a mistake.
Most pet collars only deliver enough of a poke to get attention, far lower than anything needed to properly discourage. With electrcity, there is often a fine balance between oww that hurt, to oops I think that stopped my heart, from an accidental touch. A proper poke would be salavged from an electric fence driver.