Questions tagged [rotary-encoder]
40 questions
7
votes
3 answers
Can I use a motor as a rotary encoder?
Let me preface this by saying that I'm not an expert, nor do I conclusively understand how op-amps work, but I have a strong suspicion that this should be possible, at least crudely.
I have this idea that by using op-amps to measure the voltage…

Isaac Walters
- 73
- 6
6
votes
2 answers
Inexpensive approach to finding a shaft position with an absolute encoder
I need an absolute rotary encoder to monitor the position of a 2 inch shaft.
I have access to the end of the shaft
Hunting for a starting position may be very difficult, as the machine is very heavy and can't be moved by hand - this may mean I need…

sebastian323
- 463
- 2
- 6
4
votes
2 answers
Is it possible that north and south poles of a disc-shaped magnet change position over time?
[See update at the bottom]
We build brushless DC motors of about 1 kW power at 48 volts. In order to drive the motor, we need to know the rotor position and, to do that, we fit a disc-shaped magnet on the top of the shaft, and read the rotor…

linuxfan says Reinstate Monica
- 1,030
- 8
- 17
3
votes
3 answers
Reducing the filter complexity for rotary encoders
I am using Bourns rotary encoders, specifically the PEC11R-4215F-S0024 part.
In the datasheets, Bourns suggest a filter circuit as follows:
I've used this filter in a previous PCB design, and it works quite well. No lost pulses, no double counts,…

Bram
- 243
- 1
- 9
3
votes
3 answers
Raspberry Pi not reading rotary encoder accurately
I wish to write a program for my Raspberry pi that will print > when a rotary encoder is rotated clockwise and < when its rotated anti-clockwise.
Based on code for Arduino, I wrote the following program:
#include
#include
//…

Doron Behar
- 143
- 5
3
votes
0 answers
Running a 12V motor on 9V battery and arduino and matlab implementation
I have a DC geared motor rated at 12V and 60 rpm . It has a quadrature encoder with 700 PPR. I connected it directly to a 9V battery (almost new) and wished to measure the rpm of that motor. To find the nature of the pulses generated by the encoder,…

Helix xxx
- 71
- 4
2
votes
2 answers
Is there a rotary controller that can detect both X and Y axis of motion?
I'll preface this by saying that I know nothing about electronics and have never held a soldering iron in my entire life.
I am a pathologist by profession. I am trying to design a controller that mimics the X- and Y- adjustment knob of my microscope…

user329958
- 21
- 1
2
votes
3 answers
How to increase STM32 Timer (encoder mode) counter value?
I am developing mobile robot. Hear i required to read quadrature encoder.So i am using stm32F401 using 16bit timer(encoder mode) to read the count.After 65535 count goes to 0. My question is how to make the counter larger.
Thanks

Saravana kannan
- 35
- 2
2
votes
2 answers
Soldering information missing from datasheet - what can I assume?
Background
I tested some Bourns PEC11L encoders before soldering - they were working fine. Once soldered to my PCB at 300C using Sn99.3,Cu0.7 solder, they stopped working. Looking at the datasheet, I see that I did it all wrong...
(In case you're…

OutstandingBill
- 355
- 1
- 10
1
vote
1 answer
BLDC motor for position control for brushed DC motors
I have done s SE survey of BLDC motors and figured out they are essentially stepper motors but aimed for continuous torque. Moreover they differ from brushed DC motors significantly in terms of control.
I am building a linear rail for a camera (so…

user0193
- 416
- 1
- 3
- 9
1
vote
5 answers
Optocoupler Input or Encoder Output Problem?
I have this basic circuit but it's doing my head in with the actual prototype:
When LINK is open (not connected to the optocoupler), Encoder output works OK - it goes 0V and 5V. Also while LINK is open and if I put optocoupler cathode to ground,…

Ariel Narboada
- 413
- 2
- 6
1
vote
2 answers
How is this encoder supposed to be wired?
I have this encoder: https://www.mouser.com/ProductDetail/Bourns/PEC12R-4020F-S0024?qs=sGAEpiMZZMsUJpHmmVieqHTo0n9kjhYO9zCZFTxUfRg%3D&countrycode=US¤cycode=USD
and I am trying to figure out how it is supposed to be wired.
I think the A & B…

RGB Engineer
- 808
- 4
- 19
1
vote
1 answer
BLDC alignment of hall sensors and encoder
I am trying to build a BLDC motor controller using field oriented control.
The motor I am going to use is equipped with hall sensors as well as with an incremental encoder that has 512 steps.
I have implemented a SVPWM and the Clarke and Park…

T. Pluess
- 531
- 3
- 13
1
vote
1 answer
How to tune this PID loop
I have a DC motor that is controlled by an FPGA and a L298N motor driver board. The FPGA generates a PWM signal based on feedback from a dual channel quadrature rotary encoder (1000ppr per channel).
I have the code at the bottom of this post showing…

David777
- 1,548
- 12
- 29
1
vote
3 answers
Need advice with PID loop on hardware
This is my first time using a PID control loop so I have a lot to learn. I will explain what I am trying to do before I ask any questions.
I have an FPGA running a processing core that I made myself, which works fine. I then have a 24Vdc motor…

David777
- 1,548
- 12
- 29