Skip to main content

Questions tagged [rotary-encoder]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
696 views

I'm trying to build an Arduino project that counts pulses sent by an encoder. I've bought an Omron E6B2-CWZ5B-2 2000P/R and face the issue of it sending pulses non-stop, even when I'm not touching it. ...
Do I Care's user avatar
1 vote
1 answer
208 views

I am working on a project using a Rotary Encoder and I am trying to receive the output from the encoder. As it stands I am able to get a count for degrees of change and direction of rotation, however ...
Shai Morrison's user avatar
1 vote
2 answers
1k views

I am trying to understand this rotary encoder I have, but it makes no sense to me. I am using this rotary encoder: https://www.amazon.com/gp/product/B07DM2YMT4/ CYT1100 aka CY110 aka EC11 I am using ...
John's user avatar
  • 123
2 votes
2 answers
413 views

I'm trying to interface an encoder and a 1602 i2c display. My encoder seems to be giving an output between steps. I have tried to make my code as simple as possible and am outputting whether the ...
John Engelman's user avatar
4 votes
0 answers
474 views

I'm trying to change my working rotary encoder code (stolen from here) to an interrupt-based code on my Mega2560. The trouble is that the result behaves very erratically, even though the physical ...
Malibu's user avatar
  • 41
2 votes
1 answer
1k views

I am working on a project that requires a number of I/O pins for various purposes. I chose the ATTiny88 because it has plenty of GPIO pins, and is relatively inexpensive. Here is the updated code per ...
Leslie Rhorer's user avatar
2 votes
0 answers
133 views

I have a rotary encoder (ppr = 600) and I want to write code to achieve the implementation to read current angle and direction. Here is my code. I think it is correct but it donot have any output on ...
Jie's user avatar
  • 29
1 vote
0 answers
396 views

I'm trying to write motor controller for automated blinds using Raspberry Pi Pico with arduino-pico. My problem is that I can't seem to get a consistent result from motor encoders. In my setup ...
Leonti's user avatar
  • 133
10 votes
1 answer
20k views

Have an upcoming project where user input will be based on spinning a large cog and I have several UNOs available Since rotary encoders need two pins, only a Mega would be able to handle the 7-8 ...
Andrew Lazarus's user avatar
-2 votes
1 answer
271 views

I'm using a rotary encoder on my Arduino Micro, that is supposed to do single steps or ten steps at once, depending on which position a switch is in. The Rotary: https://www.reichelt.de/...
Chritzeltopf's user avatar
0 votes
1 answer
146 views

I have been given to understand the ATTiny88 is very similar to the Arduino Uno / ATMega328 MCU. There does not seem to be a tag for the ATTiny88, so that is why I chose the tags I did. I do not ...
Leslie Rhorer's user avatar
2 votes
2 answers
2k views

Suppose a bot with wheels is traveling in a a straight line, and we want to measure this linear distance traversed by it as accurately as possible. One of the ways is to use an optical encoder to ...
karnyrocks's user avatar
1 vote
1 answer
319 views

I am quite a newbie to Arduino and currently stuck with an encoder. I have a BLDC geared motor with encoder, all I want to do is to get values from the encoder. There are 6 wires: out A, out B, out Z, ...
3XBULL's user avatar
  • 13
1 vote
2 answers
2k views

I have a 512 pulses encoder with four wires: +5V, ChannelA, ChannelB, GND and I'm using it as feedback for my motor position (max 80 RPM) on Arduino UNO. Everything works fine, but I need also to ...
Marcus Barnet's user avatar
1 vote
2 answers
561 views

I am using a DC motor with encoder, and I am trying to calculate how many pulses are recorded in every one second interval. (note that the power source is of 12V for the motor) Circuit and code: int ...
satan 29's user avatar
  • 169
0 votes
1 answer
231 views

How do I setup a Due to count rising edges on a pin automatically without having to waste time on an ISR? I have some wheel encoders, the simplist implementation is direction less where you only count ...
FourierFlux's user avatar
0 votes
1 answer
272 views

I built a robotic arm, the problem is I want to rotate the base more than once in order to complete a job, so I figured out I could use multi turn potentiometer. The problem I am facing is the ...
Ritesh Sharma's user avatar
0 votes
1 answer
214 views

I have an Arduino due, I am trying to keep track of ticks on two wheel encoders, polling in an infinite loop results in terrible performance. Have any suggestions? It looks like the due might have an ...
FourierFlux's user avatar
1 vote
1 answer
7k views

I'm trying to interface with version RM08S of this rotary encoder using an Arduino Mega. The sensor supports a "Synchro serial interface (SSI), single ended" interface. I'm unfamiliar with this ...
Cerin's user avatar
  • 1,698
0 votes
2 answers
1k views

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 '...
111936's user avatar
  • 19
2 votes
5 answers
18k views

I'm using an Arduino Uno and two (3-pin) rotary encoders for a project. Since the loop takes a bit long and accuracy is important, I'd like to use interrupts to read the values from the rotary ...
jfkint's user avatar
  • 29
0 votes
1 answer
166 views

I'm working on a project involving stepper motors. It is important for this project to track the position of these motors, so I decided to buy an optical rotary encoder, specifically an HKT30(HKT3005-...
jimmyfinestein's user avatar
1 vote
0 answers
750 views

I have a project in which I control a display using an Arduino Due microcontroller. The user can navigate on the TFT display (RA8875 driver ic) with a rotary enconder/pushbutton. The display shows a ...
Sven Onderbeke's user avatar
1 vote
1 answer
4k views

Yesterday I asked a question about de-bouncing this rotary encoder and Jsotola suggested that I should use a method like This to detect the previous state and then do the counting. using that method ...
ElectronSurf's user avatar
0 votes
3 answers
5k views

I bought some incremental rotary encoders online https://www.bourns.com/docs/Product-Datasheets/PEC12R.pdf The spec sheet for those suggests a filter circuit for the outputs of the encoder that ...
Duncan C's user avatar
  • 5,752
-1 votes
2 answers
173 views

I created a program that measures the pulses set out by the encoder (part of the dc motor with encoder inbuilt), and uses the ppr value (pulses per rotation) to calculate the rotations per minute (rpm)...
satan 29's user avatar
  • 169
1 vote
0 answers
3k views

I have been working on a small switch panel for flight sims, but I wanted to use the CYT1100 Digital Rotary encoders to move instruments in-game. I have the code set up to press a certain joystick ...
Jacob C's user avatar
  • 11
0 votes
1 answer
562 views

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 ...
Ashley Reid's user avatar
0 votes
1 answer
174 views

I have this simple program, where I am implementing a menu structure on an OLED display and a rotary encoder. The code works functionally as intended, however when I add more menu items, then I get ...
Thomas Hirsch's user avatar
1 vote
0 answers
297 views

Title says the majority of it. I'm looking to make a trim wheel for flight sim using a rotary encoder, the Joystick library and an Arduino Leonardo. I wasn't sure if it would be better to make it a ...
Pierce Jennings's user avatar
0 votes
2 answers
950 views

I have a Pololu 4x encoder and am trying to write some code to make it work on my Nano 33 BLE. (Interestingly enough, the issue preventing some pre-existing libraries from working for me is the same ...
GreatHam's user avatar
  • 131
1 vote
1 answer
3k views

This is my first time working with a rotary encoder and interrupts. I am using a Pro Micro which has interrupt pins at pin0 and pin1. The code below works as expected. My question: do I need to use ...
user avatar
1 vote
1 answer
283 views

I am a complete novice at arduino. I just want to know if this is possible before I start investing in components. I need to start and stop a chain drive conveyor {can't slip} powered by a 12 volt ...
Duane G Holstege's user avatar
0 votes
1 answer
2k views

I want to read a quadrature rotary encoders at full resolution with only one interrupt on Arduino Nano (ATmega328). So I found out that we can use XOR to reach a full resolution: Where pin 3 ...
Foad's user avatar
  • 143
0 votes
1 answer
100 views

I've posted to the DFRobot forum, who makes the FIT0186 motors, but no one seems to be replying there. So, excuse the copy pasting. It's probably an issue with the motor/encoder, but perhaps it has ...
djb's user avatar
  • 103
-1 votes
1 answer
213 views

I pieced together a sketch to control a servo that turns an encoder. Eventually I plan to build this up to a DMX input, so I have the input range from 0 - 255. Basically, it's supposed to ask you to ...
MattS's user avatar
  • 1
2 votes
1 answer
1k views

Hello guys I am trying to count the number of the steps of a stepper motor with an encoder (Avago heds). I found an Arduino sketch to count that steps and display them on the console and I found ...
Stefano Zanella's user avatar
2 votes
2 answers
13k views

I am trying to use port manipulation in interrupts to read a rotary encoder. I found code for a Uno, so the port call for pins 2 and 3 are different. I think on the Mega they are PORTH3 and PORTH4 ...
kumquat's user avatar
  • 61
-2 votes
1 answer
837 views

I need to control the position of a lead Screw Stepper motor using EMS22A Absolute Encoder? I've seen James Bruton do this in his video. can anyone help me? James Bruton Video: https://www.youtube....
Julius's user avatar
  • 91
2 votes
0 answers
2k views

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 ...
ian's user avatar
  • 21
2 votes
1 answer
4k views

I am working on an autonomous robot in my summer vacations. I am currently working on running the motors of my robot in a closed loop. In order to do so, I have to interface two Quadrature encoders of ...
Masood Salik's user avatar
3 votes
0 answers
3k views

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 ...
kevinconnectable's user avatar
3 votes
2 answers
13k views

I'm trying to detect the direction of rotation for an incremental rotary encoder. I'm supposed to get +1 for clockwise and -1 for counter-clockwise. However, I receive random values. Any help ...
zalt's user avatar
  • 93
-1 votes
2 answers
2k views

I'm trying to write an interrupt service routine for an Arduino Mega 2560 to decode a quadrature rotary encoder. I've got an ISR (Interrupt Service Routine) that responds to the falling edge of ...
Duncan C's user avatar
  • 5,752
1 vote
2 answers
836 views

I am trying to divide a incoming high frequency signal 600kHz by 4 and output wave at arduino MEGA2560 digital pin. The input to arduino comes from incremental Encoder which is connected to motor that ...
Vishal777's user avatar
-1 votes
1 answer
2k views

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(){ ...
Adnan's user avatar
  • 19
1 vote
0 answers
75 views

I wrote the script below in order to count the number of times that I press the SparkFun Qwiic Twist. But when I press the button, I get series of running numbers on the Serial Monitor and not a ...
user2788464's user avatar
2 votes
1 answer
177 views

I wrote some code that handles rotary encoder using an interrupt, but I would like to get which pin generated the interrupt, so I'll be able to handle many interrupts in a single method. Something ...
user avatar
0 votes
1 answer
795 views

I've been braking my head over this for the past few days and can't make it work.. So, I have a small robot with a rotary encoder on each wheel and i want to track its position (in x and y) on a flat ...
PotatoMan's user avatar
-1 votes
1 answer
725 views

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 ...
masut's user avatar
  • 7