vs1005: use a Stepper motor as rotary encoder / using interrupts

Writing software that controls the system and peripherals such as displays, SD cards, Buttons, LEDs, Serial Ports etc.
Post Reply
321go
User
Posts: 14
Joined: Sun 2018-09-02 7:16

vs1005: use a Stepper motor as rotary encoder / using interrupts

Post by 321go »

Dear experts,

we are coding a VS1005 and want to use a stepper motor as an encoder with force feedback. When you turn the wheel and reach a certain point the motor should react and brake for half a second.
There is a template that does most of the things we want to. It is written in another coding language which might be transformed into VSIDE language. Further more the VS1005 should use the interrupts to remark the signals and react.

Here´s the link to the template: https://www.mikrocontroller.net/topic/341165#new (look at "drehgeber.zip"). In the template they use an old floppy-disk motor. We would prefer a modern cheap stepper like those 4-wired mini-steppers: https://www.ebay.de/itm/5pcs-Miniature- ... 2749.l2649

Is there anybody who could help? Could also become a small freelance-project.

Best regards!
User avatar
Panu
VSDSP Expert
Posts: 2829
Joined: Tue 2010-06-22 13:43

Re: vs1005: use a Stepper motor as rotary encoder / using interrupts

Post by Panu »

Hi!

In the VSOS Root image, see Solutions -> IntDemo, it has asm call stubs for all the interrupts.

-Panu
321go
User
Posts: 14
Joined: Sun 2018-09-02 7:16

Re: vs1005: use a Stepper motor as rotary encoder / using interrupts

Post by 321go »

Thank you Panu!
Post Reply