Valar-Systems
Valar-Systems copied to clipboard
Stallguard not working as expected
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!
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
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 Please remember these things when using StallGuard. It's actually very sensitive and requires near-perfect settings to get right.
-
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
-
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.
-
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.
Thank you @daniel-frenkel I will test out given points and will provide results here 💯