HOME   |   STORE   |   SCHEMATICS   |   DOWNLOADS   |   CONTACT  

Circuit-Zone.com - Electronic Projects



Rotary Encoders
Posted on Friday, May 20, 2011   •   Category: PIC

Rotary Encoders

Rotary encoders are very versatile input devices for microcontroller projects. They are like potentiometers expect of digital nature and unlike analogue potentiometers they never wear down. Rotary encoders not only provide 360 degrees of rotational freedom they also allow digital positioning information to be gained without the use of analogue to digital converters (ADCs). When using rotational encoders in projects it's possible to use the same encoder to represent a number of different input types, however this requires some form of feedback display to let the user know what information he is inputting and the 'position' of the encoder. The project is based around a 24 position rotary encoder, 16 LEDs arranged in a circle around the encoder, an A6276 16 LED serial driver IC and the PIC182550 microcontroller. A rotary encoder has 3 pins usually called A, B and C. The C pin (which is normally the centre pin) should be grounded and both A and B should be connected to the microcontroller with individual pull-up resistors on each input. In this project I used RB4 and RB5 on the PIC to connect the encoder; this has 2 advantages, firstly you can use the PORTB internal weak pull-up (which means you do not need external resistors) and also the PIC provides an 'interrupt-on-change' which can be used to monitor the encoder.

     PIC18F2550 Project Board
     Basic PIC18F4550 USB Communication Interface
     Digital Barometer with Graphical LCD Display
     PIC PIN / PORT Extender
     USB LCD Controller
     PIC18F2550 Project Board
     PIC16F877 APRS Weather Station
     PICKit 2 CLONE
     Bootloader for 16F87x PIC Microcontrollers
     Generator of exact pulses
Rotary Encoders

 

Build Accurate LC Meter and start making your own coils and inductors. This LC Meter allows to measure incredibly small inductances making it perfect tool for making all types of RF coils. LC Meter can measure inductances starting from 10nH - 1000nH, 1uH - 1000uH, 1mH - 100mH and capacitances from 0.1pF up to 900nF. The circuit includes an auto ranging and reset function to make sure the readings are as accurate as possible ... [more]



Circuit-Zone.com © 2007-2024. All Rights Reserved.

AC / DC Innveters
AM Radio
Amplifiers
Antennas
Arduino
Audio Attenuators
Audio DAC
AVR
Battery Chargers
CNC Milling Devices
Counters / Frequency Meters
Fluorescent Lamps
FM Radio / Receivers
FM Transmitters
Frequency Wave Generators
Headphone Amplifiers
iPOD Hacks
LC Meter
LED
Miscellaneous
Motor Controllers
MP3 Players
Oscillators
Oscilloscopes
PC Circuits
PCB
Phone Circuits
PIC
PLL Circuits
Power Supplies
RC Servo Motors
Remote Control
RF Radio Frequency
Robots
Sensors
Solar Circuits
Stepper Motors
Stereo Encoders
Test and Measurement
Timer Circuits
TV Transmitters
USB Circuts
USB Interface Adapters
USB Soundcards / USB Headphones
Video
Volume Control