How’s the dc motor driven? Straight dc, or a dc drive of some type? Assuming it’s just a brushed dc motor you can install a current sensing device like a shunt resistor and feed it back to an analog input. A stalled dc motor will draw high current. You can use a comparator in Hal to trigger a fault output when the analog input voltage is higher to the setpoint on the other comparator input. Better idea is to use an h-bridge driver that has its own current fault output. Dc motors do a number on relay contacts used for reversing anyway so a simple drive is a better bet.
I didn’t see good documentation on those step drivers on the website but the only one I see with stall detection is the spi model. There are 1 or 2 diagnostic pins, find out how they work. If they output high or low level on a current fault you can use them on a gpio input. Otherwise maybe they do something over spi? If you find out more I could probably help you better. -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/machinekit. To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/e12f06c6-33ba-4f6b-bd02-021a305f6216%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
