I need to find a switch that can detect whether it should go from 9v source or 5v Source. I am making a tool that has a battery power of 9v and it can also get powered from a USB device, which is 5V. If the customer need to connect the tool to a computer while its running from the battery, will it harm the system? i was asked to use a relay switch. Please help.