fattoresaimon / i2cencoder Goto Github PK
View Code? Open in Web Editor NEWDocumentation, source code and examples about the I2C Encoder project
License: GNU General Public License v3.0
Documentation, source code and examples about the I2C Encoder project
License: GNU General Public License v3.0
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
Hi,
It seems like the drill file is missing in Gerber for EncoderI2Cv1.2. Could you upload it?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.