I would like to turn sleep ON/OFF whenever I have to move my motor to reduce current draw, but mostly to reduce heat buildup. My motor is enclosed and it gets quite warm testing it without sleep enabled. I think this is how to do achieve my goal, but my question is, what’s the minimum time between setting SLP HIGH and attempting to move the motor? I’m testing this as soon as my replacement Argon shows up (accidentally plugged my first one into the motor voltage), but would like to know what the specific/recommended minimum time is and if there are any drawbacks to turning off sleep and starting to spin to quickly.
Any help would be appreciated.
You might check the datasheet to see if a figure is listed, but if you can’t find one, 250ms would probably be fine.
Yes, thanks. The datasheet for the chip says it has a 1ms max wakeup time, so I set my code to be 3ms assuming 2ms is how long it might take to charge the motor. I know that the chip may do 1ms, but there will be current getting to the motor time and probably some other electrical characteristics I’m not considering. I was wondering if anyone has any experience on how long the board takes? 250 ms would likely be way more than safe, and it’s also half a second to make a single step (I am doing things 1 step at a time to position and hold a laser). I can do that, my steps are between 5 and 30 seconds apart, but it also means the system has to sit idle for 250 ms which I would like to avoid.
Thanks though, I may try 250 and drop from there to see what works. I just don’t want to miss steps or make a mistake and hurt the board.
Nothing you do should hurt the board, worst case, you lose a step or two.