10000 QEI Module by celetts · Pull Request #7 · elua/elua · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

QEI Module #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

QEI Module #7

wants to merge 3 commits into from

Conversation

celetts
Copy link
@celetts celetts commented Jan 13, 2012

Hi,
celetts/elua has the quadrature encoding interface generic module with support for lm3s, specifically lm3s8962.

Module allows use of quadrature encoders, returning raw velocity readings, rpm, and position from each encoder.
Cheers,
Campbell

@jsnyder
Copy link
Member
jsnyder commented Jan 31, 2012

Sorry for the delay on getting this integrated. The main reason I've been holding off is two-fold:

  1. I haven't had a convenient test rig around to test and verify the support
  2. There are a number of data products that LM3S QEI conveniently gives you that quadrature encoder support doesn't provide to you simply on other platforms like STM32, which basically gives you some configuration options for configuring the interpretation of input and access to the counter that keeps track of movement. To provide things like RPM and velocity on these platforms we'd have to use other timer resources or basically implement support in software.

So, I think what might be easiest would be to keep this a platform-specific module, which I can translate this into if you're not familiar with the process. The other option would be to go with something a little closer to the lowest common denominator for the other platforms that add support or to support some of the in-between functionality in software for them, and then perhaps put any remaining nice hardware features as accessible from a platform-specific module.

Let me know what you might like to do.

@celetts
Copy link
Author
celetts commented Jan 31, 2012

James,

Thanks for letting me know.

The lm3s does provide a good set of functions for implementing the QEs,
more so than any other platform I've come across. You're right in saying
the stm32 would require a second timer to do any measurement of dynamic
information, which is unfortunate. It does make creating a general module
more difficult to implement and it is heavier on the timer resources.

I agree it would probably be best at this stage to make it a platform
specific module. I will have to ask you to do it, please, as I admit, I'm
not familiar with the process.

Many thanks for your time,
Cheers,
Campbell

On Wed, Feb 1, 2012 at 7:52 AM, James Snyder <
reply@reply.github.com

wrote:

Sorry for the delay on getting this integrated. The main reason I've been
holding off is two-fold:

  1. I haven't had a convenient test rig around to test and verify the
    support
  2. There are a number of data products that LM3S QEI conveniently gives
    you that quadrature encoder support doesn't provide to you simply on other
    platforms like STM32, which basically gives you some configuration options
    for configuring the interpretation of input and access to the counter that
    keeps track of movement. To provide things like RPM and velocity on these
    platforms we'd have to use other timer resources or basically implement
    support in software.

So, I think what might be easiest would be to keep this a
platform-specific module, which I can translate this into if you're not
familiar with the process. The other option would be to go with something
a little closer to the lowest common denominator for the other platforms
that add support or to support some of the in-between functionality in
software for them, and then perhaps put any remaining nice hardware
features as accessible from a platform-specific module.

Let me know what you might like to do.


Reply to this email directly or view it on GitHub:
#7 (comment)

Campbell Letts

Ph. 027 340 9882
Postal: 24 Newbridge Place
Ilam
Christchurch 8041

@jsnyder
Copy link
Member
jsnyder commented Feb 5, 2012

I've started the modifications over here: https://github.com/jsnyder/elua/tree/lm3s_qei

As of when I'm writing this comment I had gotten it to compile, but haven't checked that the module works correctly or adjusted the docs. I'll try at least checking that I translated the general -> platform specific module code this weekend and maybe try the module with some hardware after that.

The module should show up on lm3s.qei at the moment.

@dadosutter dadosutter closed this Feb 6, 2013
@jsnyder jsnyder reopened this Apr 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0