arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.26k stars 4.81k forks source link

Stepper Driver Counter for Position #9439

Closed canis-ferrin closed 4 years ago

canis-ferrin commented 4 years ago

Have you looked for this feature in other issues and in the docs?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

(Please, remember to close the issue when the problem has been addressed)
It schould be very useful to have a position counter reading for A4988 stepper driver, which shows the actual step between 0 and -1, I use it in FHEM, but PERL is not fast enough to count steps correctly by a subroutine. Ithink, a wemos, an Electrodragon or a Sonoff cpuld handle this.

stefanbode commented 4 years ago

You can do this electrically. Define counter1 on a gpio and connect the gpio to the pwm. Now you get your counts. Maybe you take a look at the shutter function for stepper motors.

ascillato2 commented 4 years ago

Closing this issue as it has been answered.


Support Information

See Docs for more information. See Chat for more user experience. See Community for forum. See Code of Conduct