AI

The **ENC1D-C24-R00064L** is a precision optical rotary encoder manufactured by **Bourns**. It is designed to convert the angular position or motion of a shaft into digital electrical signals.
---
## Technical Specifications
| Parameter | Specification |
| :--- | :--- |
| **Part Series** | ENC (Optical Encoder) |
| **Resolution** | 64 Pulses Per Revolution (PPR) |
| **Output Type** | 2-bit Quadrature (Channel A & B) |
| **Supply Voltage ($V_{cc}$)** | 5.0 VDC ± 5% |
| **Supply Current** | 26 mA Maximum |
| **Mounting Type** | Panel Mount (Threaded Bushing) |
| **Termination** | Axial PC Pins (Rear Exit) |
| **Rotational Life** | Up to 10,000,000 cycles |
| **Operating Temperature** | -40°C to +70°C |
---
## Electronic Functionality
### 1. Optical Sensing Technology
Unlike mechanical encoders that use metal brushes, the ENC1D uses an **Infrared (IR) LED** and a **Photodetector** array. A slotted disk rotates between them, breaking the light beam to create pulses.
* **Benefit:** No contact bounce (chatter) and significantly higher durability/longevity.
### 2. Quadrature Output (2-bit)
The device outputs two square wave signals, typically labeled **Channel A** and **Channel B**.
* These signals are **90 degrees out of phase**.
* **Direction Sensing:** If Channel A leads Channel B, the shaft is turning clockwise. If Channel B leads Channel A, it is turning counter-clockwise.
* **Resolution:** With 64 PPR, a microcontroller can achieve 256 states per revolution by counting every rising and falling edge of both channels.
### 3. Open Collector Output
The outputs are typically **TTL compatible**. Because they are open collector, they usually require external **pull-up resistors** (typically 2.2kΩ to 10kΩ) to interface correctly with a microcontroller's GPIO pins.
---
## Pin Configuration (Typical)
| Pin Number | Function | Description |
| :--- | :--- | :--- |
| **1** | **$V_{cc}$** | +5V Power Supply |
| **2** | **Channel A** | Quadrature Output A |
| **3** | **GND** | Common Ground |
| **4** | **Channel B** | Quadrature Output B |
---
## Example Interfacing Code (Arduino/C++)
To read the position from this encoder, you can use an interrupt-based approach:
```cpp
const int pinA = 2; // Channel A
const int pinB = 3; // Channel B
volatile long position = 0;
void setup() {
pinMode(pinA, INPUT_PULLUP);
pinMode(pinB, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(pinA), updateEncoder, RISING);
}
void updateEncoder() {
if (digitalRead(pinB) == LOW) {
position++;
} else {
position--;
}
}
```
- ⤷
What is the difference between this optical encoder and a standard mechanical encoder like the PEC11R?
- ⤷ How do I calculate the angular resolution in degrees for this specific 64 PPR model?
- ⤷ What are the recommended pull-up resistor values for a 3.3V logic system?