An electro-mechanical device for detecting angular position and/or motion.
0
votes
0answers
11 views
communication with hctl 2021 a00 decoder
I am trying to use a rotary encoder with the HCTL-2021-A00 from avago. I am using it with a teensy 3.2 I am getting data output from the IC, but only one of the two bytes which it should be providing. ...
0
votes
0answers
9 views
Can't read high byte on hctl 2021 decoder
I am trying to use a rotary encoder with the HCTL-2021-A00 from avago. I am getting data output from the IC, but only one of the two bytes which it should be providing. When I move the encoder ...
-1
votes
3answers
55 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 ...
7
votes
1answer
107 views
How to design and debug a custom I2C master-slave system?
How to proceed, when in need of a custom I2C master-slave system?
What are the design criteria to apply?
What are the debugging tools one can use to troubleshoot problems?
0
votes
1answer
65 views
Rotary Encoder problem with LCD Display
Program reads rotary encoder correctly without bouncing in this code:
int val = 0;
byte clkPin = 3;
byte dtPin = 2;
bool lastClk;
bool lastDt;
void setup() {
pinMode(clkPin,INPUT);
...
1
vote
1answer
47 views
Shaft Encoder Accuracy
So, first of all I just want to point out this code is from: Reading Rotary Encoders and is not mine.
I have a magnetic shaft encoder mounted on a regular DC motor, my problem is that I cannot ...
0
votes
0answers
42 views
Arduino AEAT - 601B - F06 coding. how to start?
i would like to write a program, and i have limited basics on Arduino.
What i wanted to code is for an Encoder AEAT - 601B - F06
the signal pulse is in the picture below
...
0
votes
2answers
2k views
Reading from a KY-040 rotary encoder with Digispark
I have a rotary encoder KY-040 connected to a Digispark like this:
CLK go to p0 and and DT go to p2, SW is disconnected for now (it's just a button).
I did everything like the instructions here: ...
1
vote
1answer
51 views
Sampling rate issue
I have an Arduino code which runs decently.
// Read in 10-bits Magnetic Encoder AEAT-6010-A06 into Arduino Uno
// Sampling
// Declarate
const int CSn = 4; // Chip select
const int CLK = 7; // ...
0
votes
3answers
233 views
counting pulses from encoder on interrupt 0 pin every 50 ms
I want to calculate the number of pulses coming from motor1 encoder pin2 (Int0) as input , and motor 2 encoder pin3 (Int1), I am working now for the first motor (just for the first motor ) so I set ...
-1
votes
1answer
101 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
vote
2answers
239 views
Reading quadrature encoder
I am using an encoder motor for one of my projects and i was reading encoder values manually through Arduino. It was working fine when i turned it slowly, but whenever i would rotate it at some higher ...
0
votes
0answers
17 views
How to read data from a rotary encoder with ATmega328 [duplicate]
I'm using a home made "bare bones" Arduino, made with the ATmega328, and I need to read angle data from a geared DC drill motor, turning at speeds between 0 and 450 RPM. This is so I can use it as ...
0
votes
4answers
2k views
How to read data from a rotary encoder with ATmega328
I'm using a home made "bare bones" Arduino, made with the ATmega328, and I need to read angle data from a geared DC drill motor, turning at speeds between 0 and 450 RPM. This is so I can use it as ...
1
vote
1answer
399 views
Is it possible to use two encoders with Arduino Uno?
I would like to control 2 motors with the Arduino Uno board, which provides only two interrupt pins on digital 2 and 3.
I've set one encoder using these pins, and it works. What do you think about ...
3
votes
4answers
547 views
Rotary encoder on Uno and interrupts issue
This question is regarding a project using an Arduino Uno.
I have one of these quadrature rotary encoders.
I'm using a slightly modified version of the code from the article, Quadrature Encoder too ...
1
vote
1answer
936 views
bitRead() gives wrong answer Arduino UNO R3
I am trying to read from a quadrature rotary encoder using an Arduino UNO R3. This is done by connecting the encoder's channel A pin to the Arduino interrupt 0 pin (digital IO pin 2). Inside the ...
1
vote
2answers
128 views
If statement behaves erratically
I connected the output from an encoder motor to int0. this is used to increment a counter at every pulse. in the loop(), I check this counter and stops the motor if it is above certain value. But this ...
1
vote
1answer
919 views
Turning a DC motor a set number of Rotations using an encoder
I'm using an arduino UNO, and i want to turn a motor a set number of revolutions, i'm trying to read the clicks of the encoder which has a resolution of 360 clicks/ revolution, my logic is that i ...
12
votes
2answers
8k views
How precise can I get Arduino using rotary encoders?
Stepper motors are often pricey for a large motor. However, with a powerful, standard DC motor and a rotary encoder, you can "simulate" a stepper motor. How accurate are rotary encoders with Arduino ...