I know that there is sample coding for debounce but it uses delays which interrupts can't use, any recommendations as to what I can do for this?
Look at the blink without delay example for some clues how to do this.
I'm working on a project for my friends car, he wants a control for the engine fans, he wants to use a single toggle switch to control the 2 fans
I hate having to tell the customer they've got their requirements wrong, but that is a daft arrangement. It requires the driver to keep track of what the fans are doing (which won't necessarily be obvious) and nudge them into the desired state (which may involve dealing with missed or spurious inputs).The sensible way to do this is with a three position switch so that you can immediately see the current state and move it positively and unambiguously to the desired state.The customer is always right, but the customer can be right and an idiot at the same time.
That doesn't really help me
I guess what I'm really looking for is a way to distinguish between a true rising edge (all the way to 5 volts) versus a noisy line (0-3 volts)
The problem that I am having is that there is a lot of noise on the line for the button (only hovering around a volt or two) so its constantly tripping the interrupt