
Type d
google/mozc-devices
Circuit diagrams and firmware source code for Gboard DIY keyboards

Second robot from Bobot series of robots. A huge amount of things in this robot address problems of previous Bobot.
Bobot 2 Amethyst is an open-source printed circuit board by dark-neonus, from the dark-neonus/Bobot_2_Amethyst repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 123.5 × 60 mm with 14 parts on 79 nets.
It belongs with the ESP32 boards of this library.
Second robot from Bobot series of robots. A huge amount of things in this robot address problems of previous Bobot.
On the top there is the handle which is hidden in base. It rotates out on bearings. Rotation is locked by mechanism on top of base.
On the back there are 9 buttons to interact with bobot. They are with 3d printed tops with symbols representing purpose.
Buttons:
_________________________________
| Back | Up | UI |
|____________|______|_____________|
| Left | OK | Right |
|____________|______|_____________|
| Settings | Down | Debug |
|____________|______|_____________|At the bottom of left side of bobot(looking at their face) there is power switch, which is connect batteries to power regulation module.
At the left side of bobot there is case with screwdriver which can unscrew all screws in bobot. It is based on push latch mechanism, to be held inside of bobot.
At the right side there is panel on 2 screws which give access to main microcontroller esp32 dev kit board. When this panel taken apart, esp32 can be fully removed from socket and access to micro sd is revealed.
| Component | Quantity | Description | Datasheet | Store |
|---|---|---|---|---|
| ESP32 unnamed DevKit board | 1 | Microcontroller | - | - |
| BQ25895 | 1 | power managment ic | datasheet | store |
| MCP23017 | 1 | 16-Bit I/O Expander with Serial Interface(16 parallel pins to I2C) | datasheet | store |
| MPR121QR2 | 1 | 12 touch buttons driver with I2C interface | datasheet | store |
| TL2285OA | 9 | Push latch button without fixation | datasheet | store |
| MAX98357A | 2 | Chip for audio output: DAC + amplifier in one chip | datasheet | store |
| BMI160 | 1 | Sensor gyroscope + accelerometer 6DOF | - | store |
| Component | Quantity | Store |
|---|---|---|
| Resistor 150Ω | 1 | store |
| Resistor 4.7kΩ | 6 | store |
| Resistor 5.1kΩ | 1 | store |
| Resistor 10kΩ | 18 | store |
| Resistor 33kΩ | 1 | store |
| Resistor 75kΩ | 1 | store |
| Capacitor 47nF | 1 | store |
| Capacitor 100nF | 2 | store |
| Capacitor 1uF | 10 | store |
| Capacitor 4.7uF | 1 | store |
| Capacitor 10uF | 4 | store |
| Inductor 2.2uH | 1 | store |
| Thermistor B3435 MF52D 10K | 1 | store |
Main microcontroller will be unnamed clone of esp32 wroom dev kit with 30 pins.
It will be placed in sockets on pcb on right side of bobot.
There is 2.42 inch OLED display in front side of bobot.
Esp32 communicate with display using i2c protocol on
esp32 dedicated i2c pins. This display use SSD1309 driver.
| Pin / Signal | Source / Connection | GPIO / Net | Description |
|---|---|---|---|
| SDA | ESP32 | GPIO21 | I²C data line (main I²C bus) |
| SCL | ESP32 | GPIO22 | I²C clock line (main I²C bus) |
Bobot uses two MAX98357A modules for stereo audio output. Each module integrates a DAC and Class D amplifier. One module is strapped for left channel, the other for right channel. The modules communicate with ESP32 via shared I2S bus.
Hardware:
Software:
| Pin / Signal | Connection | Net / GPIO | Description |
|---|---|---|---|
| LRC (LRCLK) | ESP32 | GPIO27 | I²S word select (left/right clock); shared between both modules. |
| BCLK | ESP32 | GPIO26 | I²S bit clock; shared between both modules. |
| DIN | ESP32 | GPIO25 | I²S serial data input; shared between both modules. |
| GAIN | Configured per module | — | Gain setting pin; sets output gain. |
| SD_MODE | Configured per module | — | Channel select: left or right. |
| VDD | 3.3V | 3.3V | Power supply (2.5-5.5V); 1 µF decoupling to GND. |
| GND | Ground | GND | Ground. |
There are two parallely connecteed li-po battery in bobot, which in total give 6000mAh battery capacity.
Bobot have power management module, which will consist of:
BQ25895 I2C Controlled Single Cell 5-A Fast Charger with MaxChargeTM for High Input
Voltage and Adjustable Voltage 3.1-A Boost OperationAnd will do:
Hardware:
Software:
| Pin / Signal | Connection | Net / GPIO | Description |
|---|---|---|---|
| SDA | ESP32 | GPIO21 | I²C data line for charger configuration/monitoring. |
| SCL | ESP32 | GPIO22 | I²C clock line for charger configuration/monitoring. |
| INT | ESP32 | GPIO (TBD) | Open-drain interrupt (active-low) for charge/fault events; 10 kΩ pull-up to 3.3 V. |
| VBUS | USB Type-C port | VBUS | Charger input supply (3.9–14 V). Decouple close to pin. |
| D+ | USB only | Connect only to USB connector | Used internally for BC1.2/MaxCharge detection. |
| D− | USB only | Connect only to USB connector | Same as D+. |
| STAT | Status LED | — | Open-drain charge status output; LED + resistor to 3.3 V. |
| TS | NTC divider | NTC | Battery temperature sense via NTC near battery; safety-critical. |
| BAT | Battery pack | BAT+ | Battery positive terminal (1S Li-ion/Li-poly). |
| SYS | System rail | SYS | Managed system supply; feeds 3.3 V regulator for ESP32. |
| PGND | Power ground | GND | High-current ground return for charger, battery, SYS, PMID caps. |
| CE | GND | — | Charge enable (active-low); tied to GND for always-enabled charging. |
| ILIM | Resistor → GND | R_ILIM | Hardware input-current limit set to ~3 A (protects USB source). |
| SW | Inductor | SW | Switching node to inductor (keep short, noisy). |
| BTST | Bootstrap cap | BTST | Bootstrap capacitor to SW for high-side gate drive. |
| REGN | Decoupling cap | REGN | Internal LDO output; bias rail (decouple to GND). |
| EPAD (PowerPAD) | PCB copper | PGND | Thermal + electrical ground; must be soldered to PGND with vias. |
| OTG | Disabled | Tie to GND | Prevents boost (OTG) mode activation. |
| PMID | Not exported | Local ceramic caps to PGND only (≥8.2 µF) | Do not power loads; keep short return. |
| QON | Unused | Leave unconnected | Internal pull-up keeps default behavior. |
| DSEL | Unused | Leave unconnected | Not needed without external USB data switch. |
The MCP23017 is a 16-bit I/O expander used to interface with the 9 back panel buttons. It communicates with the ESP32 via I2C at address I2C_ADDRESS_TBD. The device provides interrupt-on-change functionality through its INTA and INTB pins, allowing the ESP32 to detect button presses efficiently without constant polling.
Buttons:
_________________________________
| Back | Up | UI |
|____________|______|_____________|
| Left | OK | Right |
|____________|______|_____________|
| Settings | Down | Debug |
|____________|______|_____________|Hardware:
Software:
| Pin / Signal | Connection | Net / GPIO | Description |
|---|---|---|---|
| SDA | ESP32 | GPIO21 | I²C data line (shared with display and BMS). |
| SCL | ESP32 | GPIO22 | I²C clock line (shared with display and BMS). |
| INTA | ESP32 | GPIO (TBD) | Interrupt output for Port A changes; 4.7 kΩ pull-up to 3.3V. |
| INTB | ESP32 | GPIO (TBD) | Interrupt output for Port B changes; 4.7 kΩ pull-up to 3.3V. |
| RESET | 3.3V | — | Active-low reset; tied to 3.3V to keep device enabled. |
| A0 | TBD | — | I²C address bit 0. |
| A1 | TBD | — | I²C address bit 1. |
| A2 | TBD | — | I²C address bit 2. |
| GPA0 | BTN_BACK | — | Back button input (filtered, active-low). |
| GPA1 | BTN_TOP | — | Up button input (filtered, active-low). |
| GPA2 | BTN_UI | — | UI button input (filtered, active-low). |
| GPA3 | BTN_LEFT | — | Left button input (filtered, active-low). |
| GPA4 | BTN_OK | — | OK button input (filtered, active-low). |
| GPA5 | BTN_RIGHT | — | Right button input (filtered, active-low). |
| GPA6 | BTN_SETTINGS | — | Settings button input (filtered, active-low). |
| GPA7 | BTN_DOWN | — | Down button input (filtered, active-low). |
| GPB0 | BTN_DBG | — | Debug button input (filtered, active-low). |
| GPB1-GPB7 | Unused | — | Available for future expansion. |
| VSS | GND | GND | Ground. |
| VDD | 3.3V | 3.3V | Power supply (1.8-5.5V). |
The MPR121QR2 is a 12-channel capacitive touch sensor controller used to implement a touch-sensitive electrode matrix. It communicates with the ESP32 via I2C at address I2C_ADDRESS_TBD. The device provides interrupt functionality through its NOT IRQ pin, allowing the ESP32 to detect touch events efficiently.
The electrode matrix follows the design from NXP Application Note AN4600, where touch detection is achieved by the intersection of X and Y electrodes:
Touch coordinates are determined by the intersection of active XN and YM electrodes.
Hardware:
Software:
| Pin / Signal | Connection | Net / GPIO | Description |
|---|---|---|---|
| SDA | ESP32 | GPIO21 | I²C data line (shared with display, BMS, and button board). |
| SCL | ESP32 | GPIO22 | I²C clock line (shared with display, BMS, and button board). |
| IRQ | ESP32 | GPIO (TBD) | Active-low interrupt output for touch events; 4.7 kΩ pull-up to 3.3V. |
| ADD | TBD | — | I²C address selection pin. |
| ELE0 | Touch electrode | X0 | Electrode column 0. |
| ELE1 | Touch electrode | X1 | Electrode column 1. |
| ELE2 | Touch electrode | X2 | Electrode column 2. |
| ELE3 | Touch electrode | X3 | Electrode column 3. |
| ELE4 | Touch electrode | X4 | Electrode column 4. |
| ELE5 | Touch electrode | X5 | Electrode column 5. |
| ELE6 | Touch electrode | X6 | Electrode column 6. |
| ELE7 | Touch electrode | Y0 | Electrode row 0. |
| ELE8 | Touch electrode | Y1 | Electrode row 1. |
| ELE9 | Touch electrode | Y2 | Electrode row 2. |
| ELE10 | Touch electrode | Y3 | Electrode row 3. |
| ELE11 | Touch electrode | Y4 | Electrode row 4. |
| REXT | 75 kΩ → GND | — | External resistor for charge current setting. |
| VREG | 0.1 µF cap → GND | — | Internal regulator output; decoupled to GND. |
| VSS | GND | GND | Ground. |
| VDD | 3.3V | 3.3V | Power supply (1.71-3.6V); 0.1 µF decoupling to GND. |
Application Note AN4600 - MPR121 Proximity Sensing
There will be 4 main face assets libraries(profiles) where each of them can be set as source library, single library with faces not connected to any library and few non-main libraries which may be added in future for Bobot:
Expression - elementary unit of Bobot expressions graphic. It is directory with graphic assets of expression nd file with expression description and metadata. Expression can be set as temporally Bobot face in mode with manual expression selection.
Expression strucutre:
Expression
├── Description.ini
├── Frames
│ ├── Frame_00.bin
│ ├── Frame_01.bin
│ ├──...
│ ├── Frame_N.binFrame binary format: Each frame file is binary file with monochrome bitmap data optimized for u8g2 library. Frame dimensions are stored in Description.ini to reduce file size and improve loading speed. Format structure: monochrome bitmap data where each byte represents 8 vertical pixels organized in column-major order. During runtime dimensions are read once from Description.ini, then frames are read from SD card and passed directly to u8g2 display functions.
Expression Description.ini:
; Description for Expression_Name expression
[Loop]
; Supported Loop types:
;
; 1. IdleBlink(default) - Display first frame for random time in range
; [IdleTimeMinMS, IdleTimeMaxMS] ms and after that
; run animation with AnimationFPS fps.
; After that switch frame to first and repeat.
;
; 2. Loop - Repeat animation from first frame to last with AnimationFPS fps.
; IdleTimeMinMS and IdleTimeMaxMS are unnecessary and wiil be ignored
; if presented
;
; 3. Image - Display only first frame. All fields except type are unnecessary
; and wiil be ignored if presented
; Type field must be first
Type = IdleBlink ; default = IdleBlink
AnimationFPS = 20 ; default = 20
IdleTimeMinMS = 1000 ; default = 1000
IdleTimeMaxMS = 1000 ; default = 1000
[Dimensions]Library - list of expressions. Some libraries can be sourced to be used as Bobot faces for corresponding events. Library consist of file with library description, information and metadata, directory with expressions and file with behaviour and mapping(if needed) expressions in expressions directory to Bobots events. If there is no behaviour and mapping file, library cant be sourced.
Library
├── Description.ini
├── Behaviour.csv
├── Expressions
│ ├── Expression_A
│ ├── Expression_B
│ ├──...
│ ├── Expression_ZScript is placed in devtools directory under project root. It consists of two files: generate_graphics_structure.py with main logic and generate_graphics.sh shell wrapper for convenient execution. Script can be run with ./devtools/generate_graphics.sh from project root.
Script reads assets/graphics/Description.ini and processes all libraries marked as true. For each enabled library it creates directory structure in assets/graphics/libraries/LibraryName if not exists. Then it iterates over all directories inside library which are expressions. For each expression it generates default Description.ini if not present.
For expressions containing .aseprite or .ase files script uses aseprite in batch mode to export animation frames as PNG sequence into temporary directory. Then it converts each PNG frame to u8g2-compatible binary format and saves as Frame_XX.bin files in expression Frames subdirectory. After conversion all temporary PNG files are deleted. If Frames directory exists from previous run it is completely cleared before generating new frames to avoid stale data.
Aseprite is built from source during Docker container setup and available at /usr/local/bin/aseprite. Script automatically finds aseprite executable and falls back gracefully if not available.
WARNING: Currently this feature is broken and dont work properly
ESP32 can enter asset upload mode when requested, hosting a simple HTTP server on WiFi. In main microcontroller loop it checks for button combination or serial command to activate upload mode. When activated, ESP32:
Upload process:
/start - ESP32 deletes entire /assets directory (preserving other files/directories)/file - Upload individual files with path in request/complete - Finalize upload and return to normal modeThe /assets directory is completely cleared at start of upload, but other directories and files on SD card remain untouched. Upload mode cannot be interrupted except by system-level events.
Host PC connects to ESP32 via WiFi to upload assets. In devtools directory there are flash_micro_sd.sh and flash_micro_sd.py scripts:
Shell script (flash_micro_sd.sh):
./devtools/flash_micro_sd.shPython script (flash_micro_sd.py):
/start command and waits for confirmationassets directory via HTTP POST (excludes .aseprite files)/complete command when doneUsage:
# From project root
./devtools/flash_micro_sd.sh
# Or with custom IP
./devtools/flash_micro_sd.sh --ip 192.168.1.100The upload is reliable (checksums verified), fast (WiFi bandwidth), and doesn't interfere with USB console/debugging.
Bobot uses PCA9685 16-channel PWM driver (default I2C address 0x40) to control servo motors for legs. Driver supports up to 16 servos with angle control from 0 to 180 degrees. On startup all servos are initialized to 90 degrees center position.
A servo control UI mode is available for testing and calibration. Mode is accessed by cycling through UI modes with UI button. In servo mode:
Class which will hold two integer values x and y and whcih will be used for working with position values. This class will have implementation of basic operaions: addition, substraction, multiplicating, their with assignment analogues(e.g. plus equal) and negative sign. Also it will have functions which will return string that represents vector data. This class will be used to hold values like positions, offset, speed, etc.
Simple class which will hold only bitmap value of frame in format which will be place-and-go for u8g2 function to draw bitmap on screen and frame size. Class will have function to build object from raw file data, received from storage through DMA.
Class which will hold sequence of frames, current frame index, fps and data about correct playback way of animation. This class will have functions to draw current frame on given display with given offset, increment frame index, set frame index, update function which will handle correct index incrementation depended on animation loop type. Also there will be function to create animation object(which will do subcalls of constructing frames from files) from given directory
For now this code is just to test code on development setup to understand that prom not in code, when test will be runned on manufactured pcb's. They wont be implemented right now for time saving and simplisity. Future functional may include, but not limited to:
Expression Library class which will handle mapping events/states to storage directories and will handle dynamic load of expression on event/state switch(to not hold full expressions library in memory). Also this class can handle graphic profiles switch.
Upgrading Expression class functions to work correct in energy efficient code, including handling fps using timer interrupts, to set esp32 to sleep mode for as long as possible.
Profile class which will be placeholder for data about each library possibilities, storage path and names.
Classes for text, side menu, burger menu, navigation system visualizations, regular bitmaps drawings, and possibly more.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 1 | BL | SW_DPDT_XLX:SW_DPDT_XLX | BtnBL1 |
| 1 | BM | SW_DPDT_XLX:SW_DPDT_XLX | BtnBM1 |
| 1 | BR | SW_DPDT_XLX:SW_DPDT_XLX | BtnBR1 |
| 1 | BtnBusIn | Connector_JST:JST_XH_B10B-XH-A_1x10_P2.50mm_Vertical | BtnBusIn1 |
| 1 | BtnBusOut | Connector_JST:JST_XH_B10B-XH-A_1x10_P2.50mm_Vertical | BtnBusOut1 |
| 1 | Conn_01x02_Socket | Connector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_Vertical | BatteryIn1 |
| 1 | Conn_01x04_Socket | Connector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_Vertical | Display_connector1 |
| 1 | ESP32_DevKit_V1_DOIT | ESP32_DevKit_V1_DOIT:esp32_devkit_v1_doit | U1 |
| 1 | ML | SW_DPDT_XLX:SW_DPDT_XLX | BtnML1 |
| 1 | MM | SW_DPDT_XLX:SW_DPDT_XLX | BtnMM1 |
| 1 | MR | SW_DPDT_XLX:SW_DPDT_XLX | BtnMR1 |
| 1 | TL | SW_DPDT_XLX:SW_DPDT_XLX | BtnTL1 |
| 1 | TM | SW_DPDT_XLX:SW_DPDT_XLX | BtnTM1 |
| 1 | TR | SW_DPDT_XLX:SW_DPDT_XLX | BtnTR1 |

google/mozc-devices
Circuit diagrams and firmware source code for Gboard DIY keyboards


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



Twotoz/C5VRX
Ultra-minimal, zero-CPU 5.8 GHz analog FPV video receiver using ESP32-C5 Wi-Fi 6 PHY MODEM_DIAG, BitScrambler WBFM demodulation & resistor DAC CVBS


It measures 123.5 × 60 mm and has 2 copper layers, 1.6 mm thick.
14 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.
From the dark-neonus/Bobot_2_Amethyst repository on GitHub, at the commit this page was made from: the board is pcb/Bobot_2_Amethyst/Bobot_2_Amethyst.kicad_pcb and its schematic pcb/Bobot_2_Amethyst/BMSBoard.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).