Another module for the Arduino UNO is a bipolar stepper motor with a DRV8825 driver so that the movement can be controlled by step / direction signals. The blue arrow visualizes the movement of the motor shaft:
On top of the motor shaft I have glued a magnet:
The position of the magnet and so the motor shaft is detected via an AS6500 Encoder:
The sensor outputs the degree of rotation by a pulse-width signal. With a low pass filter the pulse-width signal is transformed into an analog voltage between 0 an +5V. With that, the shaft position can be used by an analogRead() statement in your code.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.