Page 1 of 1

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

Posted: Sun 2018-09-02 11:24
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!

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

Posted: Mon 2018-09-03 8:38
by Panu
Hi!

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

-Panu

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

Posted: Sat 2018-09-08 14:42
by 321go
Thank you Panu!