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: 3
Joined: Sun 2018-09-02 7:16

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

Post by 321go » Sun 2018-09-02 11:24

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
VLSI Staff
Posts: 2562
Joined: Tue 2010-06-22 13:43

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

Post by Panu » Mon 2018-09-03 8:38

Hi!

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

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

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

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

Post by 321go » Sat 2018-09-08 14:42

Thank you Panu!

Post Reply