Maqueen Plus V2 motor issue

userHead d0m3n 2024-12-07 05:31:53 483 Views5 Replies

I have an issue with my Maqueen V2. When code to stop the motors is executed it sometimes happens that the motors accelerate for a brief moment before stopping. This is really annoying when I want it to stop at an intersection for example as it drives forward a few cm where the lines are no longer being detected. What could be causing this issue?

 

I tried this on two different maqueens and they both do it. I also tried with the original micro:bit and also with an mbits (https://www.elecrow.com/wiki/mbits.html). It appears that this accelerations happen randomly, I couldn't find a pattern. 

 

Does this happen on every maqueen V2? I'm using this library (https://github.com/DFRobot/DFRobot_Maqueenplus) which is meant for V1 but other than the acceleration it works ok. At first I thought it was because I had Wifi and Websocket running too, but it happens even with only the motor commands. Does anyone have any suggestions how to solve this?

 

Here is the code I test with:

 

#include <DFRobot_MaqueenPlus.h>
 

DFRobot_MaqueenPlus maqueenPlus;
 

unsigned long testMillis = 0;

bool testdrive = true;
 

void testAccel()

{

  if (millis() - testMillis >= 1000)

  {

    testdrive = !testdrive;

    testMillis = millis();

  }
 

  if (testdrive)

  {

    maqueenPlus.motorControl(maqueenPlus.eALL, maqueenPlus.eCCW, 50);

    Serial.println("Go");

  }

  else

  {

    maqueenPlus.motorControl(maqueenPlus.eALL, maqueenPlus.eCCW, 0);

    Serial.println("Stop");

  }

}
 

void setup()

{

  Serial.begin(115200);
 

  Serial.println("initialize MaqueenPlus I2C communication");

  while (maqueenPlus.begin() != 0)

  {

    Serial.println("I2C initialization failed");

  }

  Serial.println("I2C initialization success");

}
 

void loop()

{

  testAccel();

}

 

Here is a video of it happening, it's hard to see but you can hear it, it works normally the first 3 times, then it accelerates two times and then works again normally the last time: 

2024-12-09 19:37:13

If you're experiencing motor issues with the Maqueen Plus V2, there are several potential causes and solutions to consider:

Motor Calibration: The Maqueen Plus V2's motors might need calibration, as they are not perfectly aligned. You can adjust the motor's speed and correct the motor's performance by setting calibration points for each motor. This could resolve issues with inconsistent speed or motor behavior. The code for motor calibration can be found in the provided documentation​

GitHub

.

 

Power Supply: Ensure that the power supply is sufficient. The Maqueen Plus V2 uses a 18650 lithium battery, and if the battery is undercharged or damaged, it may affect motor performance. A full charge typically lasts for about 15 hours​

DFRobot Wiki

.

 

Connection and Wiring: Double-check the connections between the motor, power supply, and the microcontroller (such as the micro:bit). Loose or faulty connections can cause the motors to malfunction.

Motor Driver Issues: If there is an issue with the motor driver circuit, replacing or repairing the driver may be necessary. Check for overheating or visible damage to the board.

Firmware and Software: Ensure that the firmware is up to date and that you are using the appropriate libraries for motor control. If you're programming with Python or another language, ensure you're calling the correct motor control functions​

GitHub

​.

 

DFRobot Wiki

These steps should help you diagnose and resolve common motor issues with the Maqueen Plus V2. If the problem persists, reviewing community forums or seeking direct support from the manufacturer might provide further guidance.

 

4o mini

 

 

 

userHeadPic Waqas.Tech
2024-12-09 19:36:23

If you're experiencing motor issues with the Maqueen Plus V2, there are several potential causes and solutions to consider:

Motor Calibration: The Maqueen Plus V2's motors might need calibration, as they are not perfectly aligned. You can adjust the motor's speed and correct the motor's performance by setting calibration points for each motor. This could resolve issues with inconsistent speed or motor behavior. The code for motor calibration can be found in the provided documentation​

GitHub

.

 

Power Supply: Ensure that the power supply is sufficient. The Maqueen Plus V2 uses a 18650 lithium battery, and if the battery is undercharged or damaged, it may affect motor performance. A full charge typically lasts for about 15 hours​

DFRobot Wiki

.

 

Connection and Wiring: Double-check the connections between the motor, power supply, and the microcontroller (such as the micro:bit). Loose or faulty connections can cause the motors to malfunction.

Motor Driver Issues: If there is an issue with the motor driver circuit, replacing or repairing the driver may be necessary. Check for overheating or visible damage to the board.

Firmware and Software: Ensure that the firmware is up to date and that you are using the appropriate libraries for motor control. If you're programming with Python or another language, ensure you're calling the correct motor control functions​

GitHub

​.

 

DFRobot Wiki

These steps should help you diagnose and resolve common motor issues with the Maqueen Plus V2. If the problem persists, reviewing community forums or seeking direct support from the manufacturer might provide further guidance.

 

4o mini

 

 

 

userHeadPic Waqas.Tech
2024-12-08 23:02:22

The library you are using (DFRobot_MaqueenPlus) is intended for Maqueen V1. The hardware or firmware of Maqueen V2 may behave differently, especially in how it interprets motor commands via I2C.

userHeadPic lia.ifat
d0m3n wrote:

I tried to do the same thing with make code, with the V2 library and it does the same thing. Does this happen with every maqueen? Or did I just get 2 that are broken?

 

2024-12-09 04:56:32
1 Replies
2024-12-07 06:08:29

Link to video: https://www.youtube com/watch?v=PZLqVYgBFj8

userHeadPic d0m3n