Encoder to i2c

prosper00·Encoder-i2c·i2c-master/hardware/SOP8/encoder-to-i2c.kicad_pcb

Encoder to i2c PCB layout, top view — open source RISC-V board by prosper00

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.

QtyPartRefs
1
CH32V003JxMx
U1
1
Conn
J1
1
RotaryEncoder_Switch
SW1
3
100NF
100n
C1, C3, C4
1
100NF
100nF
C2
3
100kΩ
R1, R2, R3
3
10kΩ
R4, R5, R6
2
∞
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