TTL Encoder E02 is an absolute-angle magnetic encoder based on single-wire TTL bus communication. It can be used to read angle and speed feedback, and is suitable for robot arms, dexterous hands, reducer output shafts, timing pulley/gear angle detection, and other robotics applications.
This guide is based on the following examples in the Python SDK:
lyttlsd/read.py
lyttlsd/sync_read.py
lyttlsd/ofscal.py
Note: TTL Encoder E02 reuses part of the SDK interface from the TTL Stepper Driver. Therefore, names such as
TTLSDormotormay appear in example code or comments. For TTL Encoder E02, you can understand this as using only the position reading, speed reading, synchronous reading, and reference calibration functions.
TTL Encoder E02 supports:
• Reading the current position
• Reading the current speed
• Synchronous reading of multiple devices
• Setting the current position as an arbitrary reference position
• Saving calibration results after power-off
• Mixed use with LYgion / Feetech TTL bus devices
Main specifications:
| Item | Specification |
|---|---|
| Communication | Single-wire TTL bus |
| Default baud rate | 1 Mbps |
| Default ID | 1 |
| ID range | 1 ~ 252 |
| Supply voltage | DC 5~28V |
| Angle resolution | Up to 12-bit |
| Single-turn position range | 0~4095 |
| Multi-turn position range | 0~65534 (not saved after power-off) |
| Speed unit | steps/s |
| Connector | HC-1.25-3P |
| Pin definition | - / + / S |
Recommended hardware connection:
PC / Raspberry Pi / Jetson / Mac
│ USB
▼
TTL Adapter (A)
│ 5264-3P
▼
HC-1.25 8P Hub (A)
│ HC-1.25-3P
▼
TTL Encoder E02
Description:
• TTL Adapter (A) converts USB or UART to a single-wire TTL bus
• TTL Adapter (A) has an onboard CH343 chip
• HC-1.25 8P Hub (A) expands one 5264-3P bus connector into eight HC-1.25-3P connectors
• Multiple Hubs can be cascaded to connect more encoders
• The same bus can also connect Feetech STS / SMS / HLS servos or LYgion TTL bus devices
TTL Encoder E02 supports a DC 5~28V supply. In a typical setup, power is supplied to TTL Adapter (A), and then delivered to the encoder through the bus.
Related product links: