Questions tagged [rotary-encoder]

An electro-mechanical device for detecting angular position and/or motion.

20 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
2k views

Encoder + Bounce2 Library

I am working towards debouncing my keyes rotary encoder using the Bounce2 library found here ( https://github.com/thomasfredericks/Bounce2 ). I believe the problem lies in my code as there isn't much ...
2
votes
1answer
775 views

Read/write data from 2 Arduinos simultaneously with Python

So for my project I have one Arduino Mega hooked up with a quadrature rotary encoder which is connected to the computer. An Arduino Uno is connected to a circuit I built, which in turn is connected to ...
1
vote
0answers
149 views

read with Arduino SSI encoder signal

I'm stuck in my project, I try to read an absolute encoders angular position with my Arduino. I used and cabled a differential line receiver and driver between Arduino and the encoder, like explained ...
1
vote
0answers
31 views

How can I get the count of pulses of two encoders on the serial monitor?

I have two encoders; I connected them to pin 2 and 3 and I want to count the pulses of them to make two DC motors to work until it reaches a specified number of pulses, than stop working. I have ...
1
vote
0answers
340 views

Rotary Encoder on LoLin NodeMcu increases value when rotating right/left

I have a test program running on my LoLin NodeMcu board, with a Rotary Encoder connected. I use Task.h and RotaryEncoderTask.h from this library: https://github.com/Makuna/Task (though my issue is ...
1
vote
0answers
72 views

Program does not seem to be passing from setup to loop, or printing to SD card

I am trying to write code to test servo motors using an encoder. I create a file in the setup part, and then set 1500 microseconds to 0 for the encoder. However, if I try to print something to the SD ...
0
votes
0answers
211 views

ESP8266 rotary encoder ISR not in IRAM

I am trying to connecting rotary incremental encoder with NodeMCU Lua V3, ESP8266, CH340G. This tutorial is what I want to do https://www.youtube.com/watch?v=Y6BjnfwfzKE but here is the warning ...
0
votes
0answers
42 views

Rotary Encoder gives “wrong” patterns?

I am trying to learn how to use a Rotary Encoder together with an LCD display where I can use the encoder to choose Letters that will be printed in the LCD. This is the kind of result I should be ...
0
votes
0answers
38 views

Best approaches to reading a high-count quadrature encoder?

I have a 24v servo motor coupled to a 2,000 segment optical encoder that runs on 5v. That's 2,000 "ticks" per revolution at it's base resolution. (Full quad reading allows 8,000 ticks per revolution, ...
0
votes
1answer
60 views

Undocumented industrial servo with 8-wire encoder: how to read this encoder?

I have scavenged an industrial servo with its attached ballscrew linear actuator from an old large format scanner, and I am trying to figure out how to make a 'servo drive' aka 'servo driver' aka '...
0
votes
0answers
18 views

Why is my quadrature encoder writing as irregular intervals in serial monitor after working fine?

I'll try to keep this brief and add code/output at the bottom. I am using an Arduino Uno with a Pololu motor shield and two Pololu motors. I am driving speed control using the encoders at the ends of ...
0
votes
0answers
116 views

High speed rotary encoder with Arduino MEGA

I'm trying to develop length measuring system and I'm using a industrial rotary encoder as the sensor. A have decided to use an Arduino external interrupt for connect the encoder. But, Encoder will ...
0
votes
0answers
61 views

More than 3 SPI devices read by a single arduino

I've been working on a project that involves SSI Rotary Encoders from CUI. They are being read through the SPI interface, and I am bit-shifting appropriately to account for the differences between SSI ...
0
votes
0answers
313 views

Encoder code using interrupts design question

I have an Arduino Mega 2560, an Omron Optical encoder with an Index (360 steps), a 60 led NeoPixel ring (no Clk wire) and another Arduino Uno. Here is my question, I have some code written that works ...
0
votes
1answer
163 views

Flashing a specified digit 4x7 segment display and shift register 74HC595N

I have a project that is simply a relay timer. The code is not complete so you will see 'in progress' sections not related to my question in my code. However, my question is... I am creating a timer ...
0
votes
0answers
60 views

Is the ATMega328P powerful enough to deal with a lot of SPI data while reading a rotary encoder?

I need to: Output data to a 128x64 screen with ug8lib (via SPI) Keep track of the position of a high-precision rotary encoder (1024p/r) Send about 2 bytes of data up to 120 times per second via an ...
-1
votes
1answer
31 views

counting revolution of incremental encoder

I'm doing a project which requires me to use an faulhaber encoder,and the one i have is a 2channel 16lines per revolution. I haven't worked with encoders before and based on what i found the lines per ...
-1
votes
3answers
186 views

Communication between IC and microcontroller (Teensy 3.2)

I am trying to use a rotary encoder with an integrated circuit to measure the position of a rotating shaft. I am then taking this data and writing to an SD card. The IC seems to be working correctly ...
-1
votes
1answer
2k views

Incremental encoder code

can somebody tell me what`s wrong with my code, i am using it to calculate rpm using incremental encoder long counter=0; long rpm = 0, z =0; long ini_time = 0; long end_time=0; void setup(){ ...
-1
votes
1answer
2k views

Arduino NOOB - Stepper Motor + Rotary Encoder Control

I have a very basic Arduino setup : Arduino Uno Rotary encoder Nema 17 stepper motor + A4988 driver How can I control the rotation of the motor with the rotary encoder? How can I get it to make one ...