Skip to content

A small PCB for denoising a rotary encoder with LED illuminated shaft

License

Notifications You must be signed in to change notification settings

nvladimus/ArduinoRotaryEncoderPCB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Printed circuit board for rotary encoder control

The purpose of this PCB is to simplify connection of a rotary encoder to Arduino. The PCB contains a circuit for denoising (debouncing) of a rotary encoder (Sparkfun 10982 or Bourns PEL12T, with RGB illuminated shaft), and also contains load resistors for it's three LEDs. All you need is connect the PCB leads to Arduino digital pins. pcb photo

Pins:

  • "+" power supply (3.3-5V)
  • "-" ground
  • 1 and 2 - readout of the quadrature signals
  • S - pushbutton readout
  • R,G,B - control pins for red, green and blue LEDs built in the encoder shaft.

Functions:

  • Denoising the encoder quadrature signals (resistors R1-R4 and capacitors C1,C2)
  • Denoising the pushbutton action of the encoder shaft (capacitor C3)
  • a pull-up resistor for the pushbutton (resistor R4).
  • resistors for R,G,B LEDs of the encoder shaft (resistors R5, R6, R7).

Usage

Connect power (+) and ground (-) pins to Arduino 5V and ground, quadrature pins 1,2 to Arduino digital pins with interrupt:

  • Arduino Uno: digital pins 2,3
  • Arduino Mega: any pair of digital pins 2, 3, 18, 19, 20, 21

Code examples include rotary encoder readout, shaft push-button action, and turning LEDs on/off by the push-button action. Counts are printed out via Serial Monitor, 4 counts per click. Code requires Encoder library: download and unzip it into your ../Ardunio/libraries/ folder and restart Arduino IDE to install.

Number of PCB layers: 2

Dimensions: 30x50 mm (normal version), 30x35mm (SMD version)

File format: everything is in Fritzing file format to keep it friendly for non-professionals :-)

Ordering from AISLER:

30x50 mm (normal version)

30x35mm (SMD version)

More info in my BLOG.

pcb normal size Schematics

About

A small PCB for denoising a rotary encoder with LED illuminated shaft

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published