Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Need help with Rotary Encoder COM-11102

COM-11102 Rotary Encoder Quadrature OutOfMemory

  • Please log in to reply
1 reply to this topic

#1 Nakul Solanki

Nakul Solanki

    New Member

  • Members
  • Pip
  • 3 posts

Posted 07 July 2014 - 05:00 PM

I recently bought https://www.sparkfun.../products/11102 from Sparkfun. i used the code from netduino wiki http://wiki.netduino...oder-Input.ashx to get values from this encoder and when i rotate the shaft of the encoder everything works fine, i get the position and direction. 

 

However when i coupled it with a stepper motor and try to run it, i get the position and direction values for sometime and then it starts throwing out of memory exception.

 

I noticed that if i rotate the shaft of the encoder quickly i get the same exception (even without the stepper motor).

 

Has anyone faced a similar problem?

 

 



#2 Spiked

Spiked

    Advanced Member

  • Members
  • PipPipPip
  • 129 posts

Posted 02 August 2014 - 03:44 AM

Just tried it myself.  

First there is a bug in the code; I believe the line 

 

if (pinB != Pins.GPIO_NONE)

 

should have been

 

if (pinButton != Pins.GPIO_NONE)

 

but I don't see that causing the error you encountered (but maybe).

 

In my case I can rotate an encoded motor 90 degrees, and get no counts. After that, it seems to be fine, I will do some more testing.







Also tagged with one or more of these keywords: COM-11102, Rotary Encoder, Quadrature, OutOfMemory

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.