Shaft Encoder Project

Precision Angular Position Measurement using Gray Code

Higher Institute for Engineering & Technology - Kafr El Sheikh

By: Techno Team | Supervisor: Dr. Osama Tharwat

Project Overview

A shaft encoder, also known as a rotary encoder, is a device that converts the angular position or motion of a shaft into an electrical signal. This project implements an absolute shaft encoder using Gray code to determine the precise angular position of a rotating shaft.

0
0
0

Gray Code Principle

The disk is divided into 8 sectors, each containing three segments that are either hollow (1) or solid (0). This pattern follows a Gray code sequence where only one bit changes between adjacent positions, preventing errors during transitions.

Rotation Speed: 5 RPM

Technical Implementation

Absolute vs. Incremental Encoders

Absolute Encoders provide the exact position of the shaft at any given moment. Each position corresponds to a unique binary code, allowing position determination even after power loss.

Incremental Encoders only provide relative position changes through pulse counts and require a reference point to determine absolute position.

System Components

Arduino Nano

Controller

DC Motor

Rotation source

9V Battery

Power source

IR Sensors

Pattern detection

LCD Display

Output display

Breadboard

Circuit assembly

How It Works

The shaft encoder uses three IR sensors to detect the pattern on the rotating disk. The Arduino reads these values to determine the absolute position, counts full rotations, and calculates rotational speed based on time between detections.

Project Documentation

Download the complete project report including circuit diagrams, code, and implementation details.

Download Full Report (PDF)

Rotation Count

0

Full rotations detected

Rotation Speed

0 RPM

Current shaft speed

Current Position

0

Absolute angular position

Project Team

Techno Team
Engineering Students
Dr. Osama Tharwat
Project Supervisor