Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Rotary Encoder Knob

For general discussion related FlowStone

Rotary Encoder Knob

Postby DaveyBoy » Sat Nov 26, 2016 7:04 pm

Hi Guys
First post here. Been getting to grips with Flowstone for a few months now... loving it :D

Thanks to Tulamide's excellent and very informative post about circular mouse checks here:
http://www.dsprobotics.com/support/viewtopic.php?f=3&t=3837&hilit=circular+mouse,
I've managed to make this rotary encoder knob in Ruby, It sort of works, does what I want it to do, but has a little anomaly.

Image

https://drive.google.com/open?id=0B0wtLOlFOjqbb3Y5ZmEySERibXM

The knob is rotated by winding it round and round and I'm using the angular position of the knob to calculate the direction it is moving and then calculate an output value.
However when the knob passes through zero degrees the direction becomes momentarily falsely reported.

is there a way to count up past 359 degrees (360..361.. etc)? and vice versa (360..259..etc)

Any help, suggestions or advice would be greatly appreciated

Thanks in advance
Dave
User avatar
DaveyBoy
 
Posts: 131
Joined: Wed May 11, 2016 9:18 pm
Location: Leeds UK

Return to General

Who is online

Users browsing this forum: No registered users and 87 guests