Encoder to i2c
prosper00·Encoder-i2c·i2c-master/hardware/SOP8/encoder-to-i2c.kicad_pcb
About the Encoder to i2c PCB
Encoder to i2c is an open source RISC-V PCB design by prosper00, published on GitHub under the MIT license. It is a 2-layer board measuring 26.9 × 24.9 mm, with 15 components from 8 distinct parts.
Its main chip is the CH32V003JxMx, from the RISC-V family. By type, the board carries 8 resistors, 4 capacitors, 1 IC, 1 connector and 1 switch.
From the project
ch32v003 i2c backpack firmware to convert a rotary encoder to an i2c slave device
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…
Main components on the Encoder to i2c
Encoder to i2c bill of materials (BOM)
15 components, 8 distinct parts — part numbers from the project's BOM.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | CH32V003JxMx | SOP-8_3.9x4.9mm_P1.27mm | U1 |
| 1 | Conn | JST_XH_B5B-XH-A_1x05_P2.50mm_Vertical | J1 |
| 1 | RotaryEncoder_Switch | RotaryEncoder_Bourns_Vertical_PEC12R-3x17F-Sxxxx | SW1 |
| 3 | 100NF 100n | C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C1, C3, C4 |
| 1 | 100NF 100nF | C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C2 |
| 3 | 100kΩ | R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R1, R2, R3 |
| 3 | 10kΩ | R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R4, R5, R6 |
| 2 | ∞ | R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R7, R8 |
Encoder to i2c design files
The KiCad project lives in the prosper00/Encoder-i2c repository on GitHub; these links point at the commit this page was built from.
Encoder to i2c: common questions
What microcontroller does the Encoder to i2c use?
The Encoder to i2c is built around the CH32V003JxMx, from the RISC-V family.
How big is the Encoder to i2c PCB?
The Encoder to i2c measures 26.9 × 24.9 mm, has 2 copper layers and is 1.6 mm thick.
How many components are on the Encoder to i2c?
15 components, from 8 distinct parts, with part numbers taken from the project's own BOM. The full bill of materials is listed on this page.
Where can I download the Encoder to i2c design files?
From the prosper00/Encoder-i2c repository on GitHub, which has the KiCad layout, the schematic and the BOM; the links under Design files point to each one.
Can I use the Encoder to i2c design in my own project?
Yes, under the terms of its MIT license, which prosper00 chose for the repository.
Can I test firmware for the Encoder to i2c without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug RISC-V firmware against it before you order a PCB.
More boards in Encoder-i2c
Similar boards
RISC-V
Audio
byrantech
27.8 × 22.3 mm38 parts2LMIT4.3kRISC-V
Keybit
notaroomba
19.1 × 19.1 mm19 parts2LNo license438RISC-V
Workbench-1 Controller
Quchaosheng
160 × 130 mm106 parts8LApache-2.0212RISC-V
Froggyswadge
cnlohr
81.5 × 72.2 mm92 parts2LMIT105RISC-V
Keytartouch
cnlohr
152.5 × 117.5 mm69 parts2LMIT105RISC-V
Ch32v003f4u6 with wsled
cnlohr
40.6 × 44.5 mm26 parts2LMIT105