Strange glitches #17535
Replies: 4 comments 1 reply
-
It may be that automatic gsrbage collect happens. You could try to call gc.collect() manually e.g before the wait loop. |
Beta Was this translation helpful? Give feedback.
-
gc.collect() seems to have fixed the problem. Thanks! |
Beta Was this translation helpful? Give feedback.
-
No, it hasn't. The problem is now well hidden. |
Beta Was this translation helpful? Give feedback.
-
Ah, yes, I forgot that. I didn't see the problem, as I was just running shorts tests. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm making tests to control a bipolar-modified 28BYJ-48 stepper motor with a DC motor driver DRV8833¹, but I get some glitches in the motor, which I can see on the DRV8833 inputs. So, this looks like a Micropython code issue.
Here is my code:
The glitch seems to occur every 350 steps (very rough estimation) ; do you see anything obvious? I'm using Micropython v1.25.0.
Thanks,
¹ the DRV8833 has current limits, so it can drive the stepper in current mode, allowing to use a higher power supply to overcome the L.di/dt and electromotive counter force, so giving muuuch more tork (I can't stall it by hand!).
Beta Was this translation helpful? Give feedback.
All reactions