Giter Club home page Giter Club logo

arduinorotaryencoderpcb's Introduction

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

arduinorotaryencoderpcb's People

Contributors

nvladimus avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.