I tried a simple circuit where I wanted to do some encoder control of my DC Motor . My circuit is as sown below. I can measure 12V being supplied to the L298N, but when I measured the voltage on the M1 & M2 pin on the L298N, I do not see any voltage at all. I can see my sketch doing something as I physically tried to rotate the motor shaft. My encoder interrupt function gets called. Any idea what the problem is with my sketch?