Git Product home page Git Product logo

i2cencoderv2.1's Introduction

I2C Encoder V2.1


OSHW

This repository is for the HW version 2.1!

In the bottom edge it's written the board version. If it's written V2.1 you are in the right palce, if it's writte V2.0 you need to go here.

HW version V2.1

Introduction

The I2C Encoder V2.1 is a small board where you can use a classical mechanical encoder, or an illuminated RGB encoder on I2C bus. The device has also 3 configurable GPIOs with the same footprint of RGB LED. It's possible to connect up to 127 boards in cascade and read all of them with the same I2C bus. The I2C Encoder V2.1 has a series of 8 bit registers where it is possible to configure the parameters and four 32 bit of registers. These 32 bit registers store counter value, value of increment steps, maximum and minimum thresholds. Every time when encoder rotates at least one step, the counter value increases or decreases according to the rotation direction by the value of the increment steps register. When the counter value is outside of the limit set by the thresholds registers, the counter value can be wrapped or can stuck on the threshold value reached. I2C Encoder V2.1 also has an open-drain interrupt pin. It is set to logic low every time an interrupt occurs, the source of interrupt can be customized.

Where you can get this board?

This project is available on our DuPPa store and also in our Tindie store!

Repository Structure

  • Arduino Library: Repository where you can find the Arduino IDE library for the DuPPa boards
  • Raspberry Library: Ready to use library in Python for the Raspberry board with example.
  • Firmware: Project folder of Microchip MPLAB X contain the code running inside of the PIC16F18345
  • Hardware: Folder containing the gerber file, schematic and BOM.
  • Datasheet EncoderI2C V2.1: Datasheet of the board with the description of the registers and some useful information.

The HW project is also available on CircuitMaker

Third-party libraries

Third-party tutorial

Tutorial #226 โ€“ Pyboard โ€“ Illuminated encoder thanks to Carolino Santonastasi

Licensing

Hardware and firmware are licensed under GPL-3 license.

Documentation is licensed under a Creative Commons BY-SA 4.0 international license.

If you want to donate for my work, i would really appreciate it. You can donate here with this link. Thank you!

donate

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.