
Hub6
yuiseki/exp-dodeca-earth
A dodecahedron globe: twelve round LCDs, each showing the Earth seen from its face

A dodecahedron globe: twelve round LCDs, each showing the Earth seen from its face
Hub6 one is an open-source printed circuit board by yuiseki, from the yuiseki/exp-dodeca-earth repository on GitHub, published under the MIT licence. It is a 2-layer board of 52.7 × 50.1 mm with 12 parts on 22 nets, routed with 889 tracks and 63 vias.
It is built around the 74HC138. Its parts include 8 connectors, 2 capacitors, 1 IC and 1 crystal. It belongs with the lEDs and displays boards of this library.
お椀 1 個ぶん、1.28 インチ丸型 LCD (Waveshare 1.28inch LCD Module、GC9A01、PH2.0 8 ピン) 6 枚を、XIAO ESP32-S3 1 枚と 74HC138 で駆動する基板。2 つのお椀に 1 枚ずつ載せる。
3d/pentagon/v0.0.5/lcd_cup.stl を輪切りにして測った。20 mm なら、壁との隙間 1 mm を取っても辺まで 27.4 mm まで入る)。固定の仕方は未定お椀を底面で立てて、上から見て反時計回りに板 1〜5 (simulate/v0.0.5/magnets.csv と同じ番号)、そして底面。基板は、お椀の軸に中心を合わせ、方位 (上から見て反時計回り、お椀の座標と同じ) をそろえて置く。
| 列 | ディスプレイ | 基板上の方位 | CS のネット | U1 の出力 | アドレス (A2 A1 A0) |
|---|---|---|---|---|---|
| J1 | 板 1 | 198 度 | LCD_CS0 | Y0 (15 番) | 0 (000) |
| J2 | 板 2 | 270 度 | LCD_CS1 | Y1 (14 番) | 1 (001) |
| J3 | 板 3 | 342 度 | LCD_CS2 | Y2 (13 番) | 2 (010) |
| J4 | 板 4 | 54 度 | LCD_CS3 | Y3 (12 番) | 3 (011) |
| J5 | 板 5 | 126 度 | LCD_CS4 | Y5 (10 番) | 5 (101) |
| J6 | 底面 | XIAO の右 (162 度の側) | LCD_CS5 | Y4 (11 番) | 4 (100) |
アドレスの 6 と 7 (Y6、Y7) は使わない。ファームウェアでは、全部の CS を「選んでいない」状態にしたいときはアドレスを 7 にする (Y7 は何にもつながっていない)。
穴の番号は、ディスプレイの PH2.0 の番号と同じ: 1 VCC、2 GND、3 DIN、4 CLK、5 CS、6 DC、7 RST、8 BL (Waveshare の配線表の順。ピン番号の並びは、実機で確かめる)。ケーブルの線 n を、穴 n に入れる。1 番の穴は、シルクの「1」の側。側面の列 (J1〜J5) では、上から見て反時計回りの端。
共有の信号 (6 枚とも同じ) と、XIAO のピン:
| 信号 | XIAO のピン |
|---|---|
| LCD_DIN (SPI MOSI) | D0 |
| LCD_CLK (SPI SCK) | D1 |
| LCD_DC | D3 |
| LCD_RST | D4 |
| LCD_BL | D5 |
| A0、A1、A2 (74HC138 のアドレス) | D7、D8、D9 |
| つないでいない (予備) | D2、D6、D10 |
この並びは、J6 の穴 3、4、6、7、8 が、XIAO の D0、D1、D3、D4、D5 の真横に来るように決めた (D2 の横は J6 の 5 番、CS)。SPI は GPIO マトリクス経由なので、どのピンでも動く。D2 (GPIO3) はストラッピングピン、D6/D7 (GPIO43/44) は UART0。D2、D6、D10 の 3 本が空いているので、2 台の同期は、配線 (予備の 1 本) か、ESP-NOW などの無線のどちらでも取れる。
74HC138 は 3.3V で動かす (HC 系は 2V から 6V)。出力の「高」は電源に近い電圧なので、ディスプレイ側の TXB0108 のしきい値 (3.3V のとき 2.15V) を超える。出力が切り替わる瞬間に、短いひげ (グリッチ) が CS に出ることがあるが、SCK が止まっている間なので、ディスプレイは何も読み込まない。ただし、アドレスは SCK が止まっているとき (転送の合間) にだけ変えること。
ディスプレイの VCC は XIAO の 3V3 に直結し、XIAO の 5V ピンは使わない。理由: ディスプレイは 5V→3.3V の電源 IC と、TXB0108 のレベル変換 IC を載せていて、その信号側の基準電圧は VCC。VCC を 5V にすると、信号の「高」の下限は 0.65 x 5V = 3.25V (TXB0108 のデータシート 5.3) で、XIAO の 3.3V の出力 (ESP32-S3 は下限 2.64V) では読み取りが保証されない。VCC = 3.3V なら下限は 2.15V。
6 枚で約 190 mA (74HC138 は数 uA で、足しても変わらない) (Waveshare の最大値、1 枚 31.2 mA)。XIAO の 3V3 ピンは 700 mA (Seeed の記載) まで取れる。USB 給電の間は、XIAO のレギュレーターが (5 - 3.3)V x 約 0.3A = 約 0.5W の熱を出す。実機で温度を測る。
| 層 | 中身 |
|---|---|
| F.Cu | 信号の短い線 (各列から輪への放射状の線、XIAO から J6 と U1 への線、U1 の出力から via への線、via から側面の列の 5 番までの線)、部品 |
| In1.Cu | GND の面 |
| In2.Cu | 共有の 5 信号の輪 (中心を囲む同心円。半径 17.6、18.4、19.2、20.0、20.8 mm。どの信号がどの輪かは layout.json)。輪の内側 (半径 17.1 mm まで) は、U1 の 6 本の出力の線 (CS) が、ソケットのピンの隙間を縫って走る |
| B.Cu | +3V3 の面 |
スルーホールのパッドは、GND と +3V3 の面に直接つながる。側面の列は内向きに、J6 は外向きに、放射状の線で輪につながる。XIAO は J6 を通して輪につながる。配線は自動配線ではなく、assign.py が探して layout.json に書いた線を make.py が引く (Freerouting は 2 層でも 4 層でも、共有バスと選択線の構造を見つけられずに止まった)。
/usr/bin/python3 make.py # 回路図、部品と配線を置いた基板、ライブラリ (KiCad 10 の pcbnew モジュールを使う)
./check.sh # ERC、DRC (回路図との突き合わせ込み)、test_hub6.py。どれも 0 件で通る
/usr/bin/python3 fab.py # JLCPCB 用: build/fab/ にガーバーとドリルの zip、BOM、部品配置 (CPL)。fab6/ に写す
../../.venv/bin/python assign.py # 配線を探し直して layout.json を書く (shapely が要る。数秒)make.py の先頭にあり、回路図と基板の両方がそこから作られるtest_hub6.py は make.py とは別に、設計表から各パッドの網と、列の位置と向き、XIAO と部品の位置、穴とスロットの大きさを確かめるassign.py: ① 共有 5 信号を、どの輪に載せるか (J6 と側面の列からの放射状の線が、互いにぶつからない順を探す。120 通りのうち 4 通りが通る)。② 74HC138 の出力 6 本を、どの列につなぎ、どこで In2 から F.Cu に上げ、In2 のどこを通すか (ソケットの隙間を通る最短経路を、見通しグラフで探す)。結果が layout.json で、make.py と test_hub6.py はこの結果を前提にする (テストの表は手で写してあるので、layout.json を変えたらテストも直す)fab.py の JLC_ROTATION_OFFSET) を使っているが、この基板では未確認| Qty | Value | Footprint | References |
|---|---|---|---|
| 1 | 100nF | Capacitor_SMD:C_0603_1608Metric | C3 |
| 1 | 10uF | Capacitor_SMD:C_0805_2012Metric | C2 |
| 1 | 74HC138 | Package_SO:SOIC-16_3.9x9.9mm_P1.27mm | U1 |
| 1 | XIAO | dodecahedron-earth:XIAO_ESP32S3_Hanging | X1 |
| 1 | XIAO 5V-D7 | Connector_PinSocket_2.54mm:PinSocket_1x07_P2.54mm_Vertical | J8 |
| 1 | XIAO D0-D6 | Connector_PinSocket_2.54mm:PinSocket_1x07_P2.54mm_Vertical | J7 |
| 1 | base | dodecahedron-earth:Wire_2x04_P2.54 | J6 |
| 1 | plate 1 | dodecahedron-earth:Wire_1x08_P2.80 | J1 |
| 1 | plate 2 | dodecahedron-earth:Wire_1x08_P2.80 | J2 |
| 1 | plate 3 | dodecahedron-earth:Wire_1x08_P2.80 | J3 |
| 1 | plate 4 | dodecahedron-earth:Wire_1x08_P2.80 | J4 |
| 1 | plate 5 | dodecahedron-earth:Wire_1x08_P2.80 | J5 |

yuiseki/exp-dodeca-earth
A dodecahedron globe: twelve round LCDs, each showing the Earth seen from its face

shanteacontrols/OpenDeck
A platform for building interactive control and sensing devices using MIDI and OSC built with Zephyr RTOS.





rjw57/buri
This repository contains my work on designing, building and programming a 6502 microcomputer from scratch. The 6502 was the CPU used in the original Apple 1, BBC Microcomputer, NES console and many other systems from…

artemisamsx/artemisa
Schematics, PCB designs and HDL simulations to build a 8-bits MSX computer

It measures 52.7 × 50.1 mm and has 2 copper layers, 1.6 mm thick.
12 parts, built around the 74HC138. 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 yuiseki/exp-dodeca-earth repository on GitHub, at the commit this page was made from: the board is hardware/hub6_one/hub6_one.kicad_pcb and its schematic hardware/hub6/hub6.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
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).