My project aims at finding the x and y coordinates of the point where the jockey (connected to A4 pin) touches a resistive square plate (100k measured between opposite sides). For this , an x-axis pair of electrodes applies a 5V drop for 1ms, during which the y-axis electrode pair is broken off from the Arduino circuit by 2 relay switches(for each one of the pair), so that the current flows in a straight path between the x-axis electrode pair and does not enter the y-axis electrodes. The A4 pin reads the input voltage and calculates x-coordinate. Then in the next 1ms , the x-axis electrode pair is broken from the Arduino circuit by 2 relay switches(for each one of the pair) and the y-axis pair applies 5V drop. A4 reads and calculates the y-coordinate. But since, relay has a switching speed of 10-20ms, and a limited switching life, I cannot use relays. And I cannot decrease my sampling frequency , since, I need very accurate and real-time location of the jockey. Is there any alternative to using relays? Can I use the L293D IC for this purpose?