Encoder
Om
Encoder | Om | |
---|---|---|
14 | 2 | |
563 | 166 | |
- | - | |
2.3 | 10.0 | |
7 months ago | over 3 years ago | |
C++ | C++ | |
- | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Encoder
-
Spinner-mouse: Arduino-based USB rotary controller for Arkanoid, Tempest, etc.
This project uses interrupts for the encoder. It uses the "Encoder" library mentioned in another comment.
https://www.pjrc.com/teensy/td_libs_Encoder.html
-
Ask HN: What's your favorite illustration in Computer Science?
I can't really come up with any good illustrations for something complex off the top of my head, so I'll go for a really simple one. In fact, that's part of it's beauty.
When I had to deal with the signals from a rotary encoder the first time (being a programmer with two left hands and zero hardware affinity), I had a look at a couple of C libraries but didn't have the patience to slog through their implementations in order to understand what signals they were decoding.
...until I saw this: https://github.com/PaulStoffregen/Encoder/blob/master/Encode...
I'm not sure if it was this exact library, but that's the comment I saw. Nice and obvious, in contrast to all the obscure attempts to convey what was happening all the other libs made through prose comments.
-
Nidec 24H question
Search for quadrature encoder for Arduino (there is a library for that). Your motor has pin 1 and 2 as encoder output.
-
Let's talk about rotary encoders in a matrix
According to people who are more knowledgeable than I on this, encoders can be ran through 2 interrupt pins for best performance, but also just a single interrupt pin and still get decent performance on the encoder.
- Quadrature decoding question
-
How to code trackball on teensy
connect both X1 and X2 to digital pins and try the encoder library https://www.pjrc.com/teensy/td_libs_Encoder.html
- Arduino Nano based heater control - Issues Compiling
-
Software debounce KY-040 In Arduino Sketch (Very Lost) Will pay $20 for someone to make this nightmare end.
// Using PaulStoffregen/Encoder // https://github.com/PaulStoffregen/Encoder #include Encoder encoder(CLK_PIN, DATA_PIN); void read_encoder() { const int TempIncrement = 10; // Temperature change per encoder increment const int TempMin = 0; const int TempMax = 315; // Get the current position of the encoder, then reset its // position back to 0 const int pos = (int) encoder.readAndReset(); // Calculate the change in temperature const int NewTemp = (pos * TempIncrement) + set_temperature; set_temperature = constrain(NewTemp, TempMin, TempMax); #ifdef __DEBUG__ Serial.println(set_temperature); // print the set temperature value on the serial monitor window #endif // v Unchanged v if ( digitalRead(SW_PIN) == LOW) //If we detect LOW signal, button is pressed { if ( millis() - debounce > 80) { //debounce delay encoder_btn_count++; // Increment the values if (encoder_btn_count > 2) encoder_btn_count = 1; #ifdef __DEBUG__ Serial.println(encoder_btn_count); #endif } debounce = millis(); // update the time variable } }
-
Hey! I'm building a mouse with an optical encoder but I have no idea how to code it. I found out that it works with quadrature modulation but it is way above my head. Is there library (that works with one channel) for that or an example code that someone could point me to?
This might be helpful.
-
Library for quadrature encoder in Arduino
Have you tried: https://www.arduino.cc/reference/en/libraries/encoder/ You could also try: https://www.pjrc.com/teensy/td_libs_Encoder.html
Om
- Ask HN: What's your favorite illustration in Computer Science?
-
Om is a novel, maximally-simple concatenative language
There isn't much activity on Github. The last release was nine years ago and all the code contributions are from a single person.
https://github.com/sparist/Om
What are some alternatives?
esp32-rotary-encoder - ESP32-compatible rotary encoder driver
a-picture-is-worth-a-1000-words - I am trying to describe complex matters in simple doodles!
ESP32Encoder - A Quadrature and half quadrature PCNT peripheral driven encoder library supporting 8 encoders
LinuxTimeline - Linux Distributions Timeline
ai-esp32-rotary-encoder - Easy implement rotary encoder to your application using microcontroler like ESP32
learn-you-a-haskell - “Learn You a Haskell for Great Good!” by Miran Lipovača
rr_configurator
ClickHouse - ClickHouse® is a real-time analytics DBMS
rr_controller
RotaryEncoder - RotaryEncoder Arduino Library