Git Product home page Git Product logo

i2cencoder's People

Contributors

atika03 avatar fattoresaimon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

i2cencoder's Issues

Encoder button pushed?

Hi! I just started working with the i2c rotary encoder.
The first question is: How can I determin if the pushbutton is (still) pressed and released?

Thx and kind regards

Interrupt signal stucked pulled low after I2C reading

Hello,

I'm facing to an issue that I cannot success to solve.

I have 5 encoders wired on a Nano Every. I success to init the 5 encoders and
all the 5 encoders work well, when they are read in loop for test.

The Interrupt signal of encoders is wired on input pull up pin of nano every.
an interrupt vector is assigned to this pin.
In my main loop, I have a "state machin" where the state is drove by the interrupt subroutine.

So state machin is in IDLE mode until encoder pull down interrupt signal and then jump to ENCODER_EVENT to read all the 5 encoders register (one after one).
after reading, state machin come back to IDLE mode until next encoder interrupt.

problem :

it happen that interrupt signal from encoder get stuck pulled low at the end of reading. It generaly happen when I turn rapidly encoder, (it happens too with push bouton when I spam it). The consequence is that my state machin go back to IDLE mode but no more interrupt signal from encoder can be detected because interrupt signal is dead stucked low... and than I cannot read anymore encoders status...

I think it come from an interference between gpio interrupt (high priority) and I2C interrupt (low priority)... so maybe something like encoder never receive ACK or something else and stay stucked in transmission mode. but i'm not really sure of it...

maybe do you have an idea ?

Thanks !
BR
Adrien

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.