Yes, that helps.
The voltage that you are measuring will be equal to (Motor_Current_in_Amps * 1 ohm) + (Saturation_voltage_L298). So 0.7 volts seems reasonable if your motor isn't drawing much current.
If you want the voltage across the motor, you would have to measure the voltage at pin 14 of the L298, and subtract the voltage you are reading now.
But this must be done carefully, as pin 14 will be pulling up to +Vs, which is above 3.3 volts. So you would need a resistor network to scale it down to below 3.3 volts, so the ADC does not saturate at full scale. (Then take that scale factor into account when you calculate the differential voltage, of course.)
Hello, can anyone help me on voltage measurement by using mbed? I am using L298 to drive a motor and I am trying to measure the voltage of the motor. When I use multimeter to check the voltage drop on the motor is 3.2V and but the result I got from mbed is not the same. The following pictures are my program and also my results. Thanks
Ken