Skip to the content
2 layers26.9 × 24.9 mmEncoder to i2c, the printed circuit board in 3D

Encoder to i2c

prosper00/Encoder-i2c

ch32v003 i2c backpack firmware to convert a rotary encoder to an i2c slave device

Size
26.9 × 24.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
15
Nets
11
Pads
44
Tracks, vias
124, 16
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
26 Apr 2024
Updated
5 Jun 2024

Overview

Encoder to i2c is an open-source printed circuit board by prosper00, from the prosper00/Encoder-i2c repository on GitHub, published under the MIT licence. It is a 2-layer board of 26.9 × 24.9 mm with 15 parts on 11 nets, routed with 124 tracks and 16 vias.

Its parts include 8 resistors, 4 capacitors, 1 IC, 1 connector and 1 switch. It belongs with the RISC-V boards of this library.

README

README.md

simple ch32v003 firmware to read a rotary encoder input device, and convert it to i2c.

Usage / notes

  • configured for a CH32V003 SOP8 package
  • encoder inputs are connected to PA1 and PA2
  • encoder pushbutton is connected to PC4
  • all encoder pins are externally RC debounced and pulled up [ see /hardware for schematic ]
  • device is configured as an i2c slave device on address 0x09.
  • 'read' two bytes: the first byte is the rotation value, and the second byte indicates whether the button has been pressed
  • values are reset to zero after a read
  • no software debounce or acceleration scaling has been implemented
  • i2c writes not currently implemented. TODO: update this firmware for a 20-pin package, and use writes to light LEDs

Parts

15
QtyValueFootprintReferences
3100kΩResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR1, R2, R3
3100nCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC1, C3, C4
310kΩResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR4, R5, R6
2∞Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR7, R8
1100nFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC2
1CH32V003JxMxPackage_SO:SOP-8_3.9x4.9mm_P1.27mmU1
1ConnConnector_JST:JST_XH_B5B-XH-A_1x05_P2.50mm_VerticalJ1
1RotaryEncoder_SwitchRotary_Encoder:RotaryEncoder_Bourns_Vertical_PEC12R-3x17F-SxxxxSW1

More from prosper00/Encoder-i2c

3

Similar boards

  • 2 layers19 × 76 mmSub, the printed circuit board in 3D

    Sub

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    15 parts3kApache-2.0
  • 2 layers26.7 × 62.2 mmDeniseadapter, the printed circuit board in 3D

    Deniseadapter

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    15 parts1kGPL-3.0
  • 2 layers100 × 44 mmVideoslot, the printed circuit board in 3D

    Videoslot

    mntmn/amiga2000-gfxcard

    MNT VA2000, an Open Source Amiga 2/3/4000 Graphics Card (Zorro II/III), written in Verilog

    15 parts1k
  • 2 layers91 × 51 mmBusinessCard, the printed circuit board in 3D

    BusinessCard

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    15 parts915
  • 2 layers24.3 × 57.9 mmFlosspods pro flex, the printed circuit board in 3D

    Flosspods pro flex

    kenp-io/not-for-airpods-repairs

    The content of this repository is licensed under the WTFPL License. Please have a close look at the terms before using this material.

    15 parts609WTFPL
  • 2 layers20.3 × 15.2 mmL0 Load, the printed circuit board in 3D

    L0 Load

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    15 parts546MIT
  • 2 layers68 × 50 mmEleLab v2 PowerFeed, the printed circuit board in 3D

    EleLab v2 PowerFeed

    Chrismettal/EleLab_v2

    Cheap DIY lab system for hobbyists and the tinkering folk

    15 parts531GPL-3.0
  • 2 layers50.8 × 35.6 mmInterface, the printed circuit board in 3D

    Interface

    harbaum/I2C-Tiny-USB

    Cheap and simple I²C to USB interface

    15 parts454

Questions

How big is the Encoder to i2c PCB?

It measures 26.9 × 24.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Encoder to i2c use?

15 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Encoder to i2c KiCad files?

From the prosper00/Encoder-i2c repository on GitHub, at the commit this page was made from: the board is i2c-master/hardware/SOP8/encoder-to-i2c.kicad_pcb and its schematic hardware/TSSOP20/encoder-to-i2c-tssop20.kicad_pro.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Encoder to i2c design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).