how to connect potetiometer in 3 pin mode and 2 pin mode. Potentiometer connection diagram