Valar-Systems icon indicating copy to clipboard operation
Valar-Systems copied to clipboard

Stallguard not working as expected

Open AnshumanFauzdar opened this issue 2 years ago • 4 comments

Hi @daniel-frenkel I am trying stallguard function but not able to stop with hand force. Should I try with physical weight or just tweaks setting?

Thanks!

AnshumanFauzdar avatar Oct 04 '21 05:10 AnshumanFauzdar

Have you figured this out? Sorry for my late reply. Your hand should be enough to stop the motor based on the initial values in the code. If you changed the values, it may be harder to stop

daniel-frenkel avatar Oct 26 '21 22:10 daniel-frenkel

Thanks @daniel-frenkel for your input, I am making a camera slider hence I will test with different configuration. Using stallguard instead of limit switches. Thanks for this awesome code!

AnshumanFauzdar avatar Oct 27 '21 03:10 AnshumanFauzdar

@AnshumanFauzdar Please remember these things when using StallGuard. It's actually very sensitive and requires near-perfect settings to get right.

  1. Check the value of the current sense resistors (See page 49 of the datasheet). Make sure the value of the resistors on the board matches line 17 of the code

  2. Use the minimum current possible to move your camera. Do not use any more than you need. Setting the current too high will cause it to never work. Start at a low current and slowly increase until your camera moves reliably, but do not go higher.

  3. StallGuard does not work very well during acceleration and deceleration. So accelerate to your moving speed as quickly as you can. Do not use a very long acceleration/deceleration phase.

daniel-frenkel avatar Oct 27 '21 04:10 daniel-frenkel

Thank you @daniel-frenkel I will test out given points and will provide results here 💯

AnshumanFauzdar avatar Oct 27 '21 04:10 AnshumanFauzdar