Friday, 17 November 2017

DIY: Measuring Wheel/Surveyor’s Wheel Using Arduino & Rotary Encoder

DIY: Measuring Wheel/Surveyor’s Wheel Using Arduino & Rotary Encoder A surveyor’s wheel may also be known by other names like: clickwheel, hodometer, waywiser, trundle wheel, measuring wheel or a perambulator. All these devices serve a single purpose, which is, measuring distance. The origin of surveyor’s Wheel is from an odometer. Odometer simply counts the number of rotations of the wheel. The distance travelled by the wheel is directly proportional to the radius of wheel. In the digital Surveyor’s Wheel a rotary encoder is attached to the wheel. This rotary encoder precisely counts the number of rotations. It also counts the rotation angle, and hence the digital system is much more precise then mechanical system. An Arduino Nano is used as the controlling unit. It reads the pulses coming from the rotary encoder and calculates the traveled distance and prints on LCD (Liquid Crystal Display). Components Working When the Rotary encoder rotates, it sends the pulses to Arduino. Output pins of the rotary encoder are connected to pin D2 and pin D3 of Arduino. Arduino identifies the rotation and direction (clockwise or anticlockwise) of the wheel. Arduino counts the pulses and converts them in distance by using some basic mathematical operations, called calibration. Now calculated distance is shown on the LCD.   Rotary encoder In the rotary encoder spaced conductors are placed on a disc and connected to common pin. Encoder have two output pins (OUT1 and OUT2), When encoder rotates, output pins gives ZERO and ONE. The pattern of ZERO and ONE in OUT1 and OUT2 helps in determination of direction and rotation. Arduino Arduino is the brain of the whole project which counts the rotation. Arduino converts the rotation into distance using calibration and displays the information on LCD. LCD LCD (Liquid Crystal Display) is the output device; it shows the measured distance in Centimeter. In this project, we are using 16×2 LCD (16 Columns and 2 Rows). The LCD has 16 pins, some pins are power pins, and 6 pins are connected to Arduino and two pins are used for backlight. A preset is also connected to 3rd pin of LCD which is used for contrast control of the LCD. Circuit In the circuit Arduino, LCD and Rotary Encoder are the main components. Rotary encoder has three pins. One pin is connected to GND and two pins are connected to D2 and D3 pins of Arduino. LCD is connected to Arduino through pins D0 to D5. Vin pin of Arduino is powered by a 9-volt battery through a switch.   In this project a PCB is designed using EAGLE CAD software. If you are good in PCB Etching, you can use the figure provided below to DIY.   You can also make the circuit on breadboard or Zero PCB using the image below. Video Calibration In this DIY project, the rotary encoder measures the number of the rotation but we have to convert the rotation into travelled distance. Travelled distance depends on the diameter of the wheel. Rotary encoder moves 22 steps in one complete rotation (360 degree). Steps per rotation depends on the rotary encoder which can be changed from 8 to 48, but in our case it is 22. Suppose N is the steps per rotation and R is the radius of wheel. Travelled distance in one Rotation is = 2xπxR Travelled distance in one Step is     = 2xπxR/N In our case N = 22 R = 7 By solving Travelled distance in one Step is     = 2R Code In the beginning of code “LiquidCrystal.h” header file is used for the LCD...
read more

The post DIY: Measuring Wheel/Surveyor’s Wheel Using Arduino & Rotary Encoder appeared first on Electronic Circuits and Diagram-Electronics Projects and Design.

No comments:

Post a Comment

Scientists produce high-power attosecond X-ray pulses at megahertz repetition rates

A research team has achieved a major advance in X-ray science by generating unprecedented high-power attosecond hard X-ray pulses at megaher...