# Magnetic Rotary Encoder - 128 P/R (Quadrature) w/ Switch

**Type:** Product page · **SKU:** COM-27884 · **Brand:** [Sparkfun](https://core-electronics.com.au/brands/sparkfun-australia)
**Page:** https://core-electronics.com.au/sparkfun-magnetic-rotary-encoder-128-ppr-quadrature-switch.html ([markdown](https://core-electronics.com.au/sparkfun-magnetic-rotary-encoder-128-ppr-quadrature-switch.html.md))

The CS19D128B is a high quality magnetic rotary encoder from Cooka. This is a low friction 'smooth' rotary encoder with 128 pulses per revolution and no...

## Pricing

- **Price:** $50.90 (inc GST) — $46.27 AUD, exc GST
- **Quantity discounts:** 5+ $44.88 (exc GST) · 25+ $43.96 (exc GST) · 100+ $42.11 (exc GST)

## Availability & dispatch

- Available with a lead time — expect dispatch between Aug 17 and Aug 24.

## Description

The CS19D128B is a high quality magnetic rotary encoder from Cooka. This is a low friction 'smooth' rotary encoder with 128 pulses per revolution and no indentations. Pressing in on the encoder closes the built-in switch. Unlike mechanical variants, the internal mechanism is magnetic based allowing the encoder to withstand a tremendous number of rotations before the encoder begins to experience slips. The SparkFun version of this encoder is unique in that it can be powered from 5V or 3.3V. The shaft is 6mm and is not recommended for use with 1/4" knobs. Reading 2-bit quadrature output (A/B square waves) from the encoder is commonplace for most microcontrollers and an example sketch is available to get you started.

### Documentation

- [CS19D128B Datasheet](https://core-electronics.com.au/attachments/localcontent/CS19D128B_Datasheet_48689543121.pdf)
- [Example Sketch](https://core-electronics.com.au/attachments/localcontent/SparkFun_Rotary_Encoder_with_Switch_Example_1411547358.zip)

## Images

- [Product image 1](https://core-electronics.com.au/media/catalog/product/C/O/COM-27884-1.jpg)
