Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fast stop #10

Closed
jmaurel87 opened this issue Mar 8, 2022 · 9 comments
Closed

Fast stop #10

jmaurel87 opened this issue Mar 8, 2022 · 9 comments
Assignees
Labels
Grove_I2C_Motor_Driver_v1_3 Label for Grove_I2C_Motor_Driver_v1_3 UAY Unassigned yet

Comments

@jmaurel87
Copy link

Hello,

I have noticed that the motor stop immediately only when it rotates anti-clockwise. When it rotates clockwise it doesn't stop immediately.

Sincerely

@lakshanthad
Copy link

Hello @jmaurel87,

Could you please share the code you are trying to run?

Also, could you please attach 2 videos, one to show motor stop on clockwise rotation and another to show motor stop on anticlockwise rotation?

Thank you.

@jmaurel87
Copy link
Author

Hello,

Ok this is an extract from the code and a video. At the beginning the motor stop immediately (closing) and in the second part (opening) the motor don't stop immediately. I have the same problem with other motors.

Thanks for your attention

`
#include <Grove_I2C_Motor_Driver.h>

#define PIN_SOCKETLED_2 2
#define MOTOR_I2C_ADDR 0x0f

void Fermeture() {
Etat_tempo = false;
while (digitalRead(8) == HIGH && (digitalRead(4) == LOW && digitalRead(6) == HIGH)) {
Motor.speed(MOTOR1, -1*100);
ClignotementLED();
}
Motor.stop(MOTOR1);
}

void Ouverture() {
Etat_tempo = false;
while (digitalRead(3) == LOW && digitalRead(7) == HIGH) {
Motor.speed(MOTOR1, 1*100);
ClignotementLED();
}
Motor.stop(MOTOR1);
}

I2C.motor.driver.mp4

`

@lakshanthad
Copy link

lakshanthad commented Mar 25, 2022

Hello @jmaurel87,

Thank you very much for the detailed information.

Can I know the exact model of the motor you are using in this video?

You said you tried other motors as well. Are those motors also the same model as the one you are using in this video?

Thank you.

@jmaurel87
Copy link
Author

Hello @lakshanthad

The model in the video :
Modelcraft - RB350600-0A101R
Operating voltage : 12V/DC
Speed under load : 9 rpm
Max. gear load : 18kg/cm
Steady gear load : 6 kg/cm

An other motor tried with the same problem :
MFA / COMO DRILLS
12-24 DC
457RE280/1

@lakshanthad
Copy link

lakshanthad commented Mar 28, 2022

Thank you @jmaurel87,

Previously you shared only part of the code. Could you share the complete code, please?

Thank you.

@jmaurel87
Copy link
Author

Hello @lakshanthad

I've tested with the example of the library....and I have the same problem. Maybe it's a problem of the grove module.

#include "Grove_I2C_Motor_Driver.h"

// default I2C address is 0x0f
#define I2C_ADDRESS 0x0f

void setup() {
Motor.begin(I2C_ADDRESS);
}

void loop() {
Motor.speed(MOTOR1, 100);
delay(2000);
Motor.stop(MOTOR1);
delay(2000);
Motor.speed(MOTOR1, -100);
delay(2000);
Motor.stop(MOTOR1);
delay(2000);
}

// End of file

BUT I've found a solution : Run the motor in the opposite direction for 15 ms and then stop the motor.

@s-light
Copy link
Contributor

s-light commented Jun 20, 2024

without checking myself:
i think maybe your problem is not the library -
the backslash in the gears of your motor could cause an after-run

@MatthewJeffson MatthewJeffson added UAY Unassigned yet Grove_I2C_Motor_Driver_v1_3 Label for Grove_I2C_Motor_Driver_v1_3 labels Oct 9, 2024
@Lesords Lesords self-assigned this Oct 14, 2024
@Lesords
Copy link
Contributor

Lesords commented Oct 16, 2024

Hello,

I'm very sorry to have kept you waiting so long.

Do you still have this problem now?

@Lesords
Copy link
Contributor

Lesords commented Oct 30, 2024

Hello,

I'm going to close this issue, feel free to re-open it if you have any other questions.

[Autocommentary]

@Lesords Lesords closed this as completed Oct 30, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Issues and PR Assemble Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Grove_I2C_Motor_Driver_v1_3 Label for Grove_I2C_Motor_Driver_v1_3 UAY Unassigned yet
Projects
Status: Done
Development

No branches or pull requests

5 participants