4 ms·
> On startup, it'll run the carriage into that switch so it knows exactly where it is. With my setup missing that switch, how does it know where the carriage is
by tdeck 6y ago
> On startup, it'll run the carriage into that switch so it knows exactly where it is. With my setup missing that switch, how does it know where the carriage is? Basically by doing the same thing: it'll run the carriage into the end stop for a good while. If the carriage reaches its limit, it'll slip back and stay there. This gives quite some wear-and-tear on the mechanics and isn't the most elegant solution by a long shot, but for a device that isn't used much and with me not having enough GPIOs left to hook up switches, it had to do.
As I understand it, this is basically the same solution the Apple II disk drives used to return the head to track zero. Owners of the Disk ][ will remember the loud repetitive clicking sound it made at startup. That's the sound of the drive controller moving trying to move the head outward 40 times and hitting the end stop most of the time.
- amelius 6y agoWow. Makes me wonder how the head could maintain its precision with so much mechanical hammering.
- londons_explore 6y agoThe endstop can be designed with springyness. Then the process is "move towards the endstop", then "switch off the motor current, if we are pushing against the endstop spring, then we'll be pushed back a step". Repeat this process 40 times.
- amelius 6y agoNice idea. I guess you can also measure from the coil current that the motor is being stopped or pushed back.
- dekhn 6y agoYup, and some modern steppers have this: https://github.com/bdring/Grbl_Esp32/wiki/StallGuard-Setup-and-Tuning https://github.com/bdring/Grbl_Esp32/wiki/StallGuard-Setup-a...