Pololu G2 2518 motor driver

I have Pololu Dual G2 High-Power Motor Driver 24v18 Shield for Arduino (item 2518) and Pololu Dual MC33926 Motor Driver Shield for Arduino (item 2503). Both have current measurement feature. In both boards, I see -50mV with multimeter on pins A0 and A1 when it does not work when no current flows. In the data sheet, it is stated that the outputs are active when the H bridge is driven. However, when the motor is driven by the h bridge (item 2503), I can read the current correctly at both A0 and A1, (820mV which means 1,6A) while I cannot read the correct current (item 2518). When I measure the outputs with a voltmeter, I do not see the correct value. With multimeter A0 goes from -50mV to -10mV, A1 goes from -50mv to +20mV…

What should I do to measure currents correctly.

Hello.

I am sorry to hear you are having problems with the current sensing on your dual high-power motor driver shield. The output of the current sense should be 20mV/A plus an offset of approximately 50mV, and you definitely should not be reading a negative voltage. Could you send me pictures of your setup that show how everything is connected, including your multimeter? Also, if you are using an Arduino as your controller, have you tried running the Demo.ino example from our Arduino library to see what it is reporting?

Brandon

I am using STM32F401 Re. This Ardunio compatible motor driver has pin compatibility with STM32F401. M1PWM, M2PWM, (as timer) M1DIR, M2DIR, M1SLP and M2SLP GPIO output, M1FLT and M2FLT GPIO input. I defined M1FLT and M2FLT as GPIO input. ADC0 and ADC1 were defined in A0 and A1. When A0 is connected to the voltmeter input of the multimeter and the ground of the multimeter is connected to the ground, the value I read from pin A0 is -50mV. (when the motor is not running). A1 is the same. I will try the motor driver and STM board separately.

Hello, I have another question. I am using the Pololu G2 2518 dual channel motor driver with the STM32F401 card. In STM32CUbe ide, I defined M1PWM and M2PMW Timer from the motor driver pins. I have also defined M1DIR and M2DIR as GPIO outputs. In the datasheet, M1PWM and M2PWM are required to be low, ie 0 PWM, as braking in the motor driving process. However, when the motor is running, PWMs being 0 does not brake. What can be recommended for braking on this motor driver shield for Ardunio?

Regards

AKIN

BrandonM via Pololu Forum <inbox@pololu.com>, 7 Mar 2025 Cum, 00:58 tarihinde şunu yazdı:

Just to avoid confusion, it sounds like you are now referring to the Dual G2 High-Power Motor Driver 24v18 Shield for Arduino.

The driver should brake low when the PWM pin is low (0V). Can you elaborate on the behavior are you seeing that makes you think it is not braking?

Could you verify that you have a solid common ground connection between the devices? Also, could you post some pictures of your setup that show all of your connections, as well as some close-up pictures of both sides of your Dual G2 High-Power Motor Driver board?

Brandon