plugging in button via a connector generates an initial LOW

Hi

I have a little project in which I can connect a foot pedal via a barrel jack. The female jack goes to p10 and has the internal pullup resistor on. It all works fine. Except that when I physically connect the pedal via the jack it generates a LOW. I am debouncin / denoisin all my buttons, not sure how else to try fix this.

Whats the best way of dealing with a floating pin that's later connected?

thanks

frazzerr

A connector [u]like this[/u]? They can "short out" when plugged-in.

yes, more or less like that. Is there a way around this? or should I try a different type of connector?

Yes, different connector. Try a "DIN" connector.

An RCA jack&plug wouldn't necessarily short.
(If the tip of the plug were touched to the body of the jack, by "accident", well . . .)

Paul__B:
Yes, different connector. Try a "DIN" connector.

thanks so much, i'll give that a go