AI

The **EM14C1B-R20-R032S** is a high-precision rotary optical encoder manufactured by Bourns. It is part of the EM14 series, commonly used in professional audio equipment, medical devices, and industrial control panels where long rotational life and high tactile quality are required.
---
### 1. Technical Specifications
The part number follows a specific nomenclature. Below are the primary technical characteristics:
| Feature | Specification |
| :--- | :--- |
| **Encoder Type** | Optical |
| **Resolution** | 32 Pulses Per Revolution (PPR) |
| **Output Type** | 2-bit Quadrature (Channel A & B) |
| **Supply Voltage** | 5V DC |
| **Terminal Style** | Radial PC Pin (Through-hole) |
| **Detents** | 20 Detents (Clicks per 360°) |
| **Push Switch** | Integrated Momentary Push Switch |
| **Rotational Life** | Up to 1,000,000 cycles |
---
### 2. Detailed Pinout and Functionality
The device typically features 5-6 pins depending on the specific mounting configuration.
* **VCC (5V):** Power supply for the internal LED and optical sensor.
* **GND:** Common ground.
* **Channel A & B:** These pins output the quadrature signals. By detecting which channel leads (A before B or B before A), the microcontroller determines the direction of rotation.
* **Switch Pins:** Two pins dedicated to the momentary push button, which closes a circuit when the shaft is pressed down.
---
### 3. Key Advantages
* **Optical vs. Mechanical:** Unlike mechanical encoders, optical encoders do not have internal metal brushes that wear out. This allows for a significantly longer lifespan (1 million cycles vs. ~30k cycles for mechanical).
* **No Contact Bounce:** Optical signals are much cleaner than mechanical ones, reducing the need for heavy software debouncing.
* **Tactile Feel:** The "R20" designation indicates 20 detents, providing physical feedback to the user while maintaining smooth rotation.
---
### 4. Typical Application Circuit
When connecting to a microcontroller (like an Arduino or ESP32), you should use pull-up resistors on the output lines.
```cpp
// Example: Reading Encoder State
int pinA = 2; // Channel A
int pinB = 3; // Channel B
void setup() {
pinMode(pinA, INPUT_PULLUP);
pinMode(pinB, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(pinA), updateEncoder, CHANGE);
}
void updateEncoder() {
int stateA = digitalRead(pinA);
int stateB = digitalRead(pinB);
if (stateA == stateB) {
// Clockwise
} else {
// Counter-Clockwise
}
}
```
- ⤷
What is the difference between an optical and a magnetic encoder?
- ⤷ How do I calculate the degrees per detent for this specific model?
- ⤷ Does this encoder require external pull-up resistors for the A/B channels?