
EEZ PSU consolidated r5B13a
eez-open/psu-hw
EEZ H24005 programmable bench power supply (powered by Arduino Due)

DE10-Nano + FPGAPiano シールド(回路図 rev2)向けの ピンアサイン/極性確認用 Quartus Prime プロジェクトです。 シールド上の各出力(行・列・7セグ・桁・プログレスバー・緑LED)が正しい端子と正しい極性で光るかどうかを、 実機上で目視確認するためのテスト回路 pintesttop を収録しています。
FPGAPiano is an open-source printed circuit board by RyutaroMasuda, from the RyutaroMasuda/WASEDA-PianoTile repository on GitHub, published under the MIT licence. It is a 2-layer board of 100 × 100 mm with 113 parts on 206 nets, routed with 893 tracks and 85 vias.
It is built around the IRLML2246TRPBF. Its parts include 74 resistors, 11 transistors, 7 capacitors, 7 ICs and 7 switches. It belongs with the FPGA and CPLD boards of this library.

DE10-Nano + FPGAPiano シールド(回路図 rev2)向けの ピンアサイン/極性確認用 Quartus Prime プロジェクトです。
シールド上の各出力(行・列・7セグ・桁・プログレスバー・緑LED)が正しい端子と正しい極性で光るかどうかを、
実機上で目視確認するためのテスト回路 pin_test_top を収録しています。
| ファイル/フォルダ | 内容 |
|---|---|
pin_test_top.v | トップモジュール(Verilog)。ピン確認用のスキャン表示ロジック |
pin_test.qpf | Quartus Prime プロジェクトファイル(Revision: pin_test) |
pin_test.sdc | タイミング制約(50MHz クロック、入出力は目視確認用のため false path) |
pin_test.sof | コンパイル済みコンフィギュレーションファイル(FPGA書き込み用) |
pin_test.cdf | JTAG書き込み用チェインファイル |
pin_test.pin | Fitter によるピン配置結果(レポート用) |
pin_test.fit.rpt / pin_test.map.rpt / pin_test.sta.rpt 等 | Fit/Map/タイミング解析レポート |
FPGAPiano_sch_rev2.pdf | FPGAPianoシールドの回路図(rev2) |
FIX_NOTES.md | ピン配置ミスや出力極性の調整履歴(修正ログ) |
db/, incremental_db/ | Quartus Prime のコンパイル中間生成物(自動生成) |
5CSEBA6U23I7pin_test_top の動作概要mode_sw[2:0](タクトスイッチ、押した瞬間だけHigh)で表示モードを切り替えます。
モードは押している間だけでなく、次に別のスイッチが押されるまで保持されます。
| モード | 状態名 | 内容 |
|---|---|---|
mode_sw[0] 立ち上がり | ST_ROWCOL | 行×列(LEDマトリクス)を1本ずつ順にスキャン点灯 |
mode_sw[1] 立ち上がり | ST_DIGSEG | 桁×7セグメントを1本ずつ順にスキャン点灯 |
mode_sw[2] 立ち上がり | ST_BAR | プログレスバー(10本)を1本ずつ順に点灯 |
また、sw_in[0:3] を押している間は、対応する行の位置で緑LED(m_c8g)が点灯します。
通常表示(行×列)とスイッチ表示(緑LED)は、内部で高速に時分割(phase切り替え)されており、
互いに干渉せず同時に見えるようになっています。
module pin_test_top #(
parameter CLK_HZ = 50_000_000,
parameter AL_ROW = 0, // 行の出力極性 (1=Active Low)
parameter AL_COL = 0, // 列の出力極性
parameter AL_SEG = 0, // 7セグの出力極性
parameter AL_DIG = 0, // 桁の出力極性
parameter AL_BAR = 0, // バーの出力極性
parameter STEP_HZ = 5 // 1ステップ(1本点灯)を切り替える速度[Hz]
)(
input wire clk,
input wire rst_n,
input wire [3:0] sw_in, // 緑LED手動点灯用スイッチ
input wire [2:0] mode_sw, // 表示モード切替スイッチ
output wire [3:0] m_r, // 行
output wire [9:0] m_c, // 列
output wire m_c8g, // 緑LED
output wire [6:0] seg, // 7セグメント
output wire [3:0] dig, // 7セグ桁選択
output wire [9:0] p // プログレスバー
);| グループ | 駆動方式 | 極性 | パラメータ |
|---|---|---|---|
行 m_r | PチャネルFET (ハイサイド) | Active Low | AL_ROW = 1 |
列 m_c | DRV777 (シンク) | Active High | AL_COL = 0 |
緑 m_c8g | DRV777 (シンク) | Active High | AL_COL = 0 |
7セグ seg | PチャネルFET | Active Low | AL_SEG = 1 |
桁 dig | (暫定) | Active Low | AL_DIG = 1 |
バー p | (暫定) | Active High | AL_BAR = 0 |
実機で光り方がおかしい場合は、光らないグループの AL_xxx パラメータを反転して再コンパイルしてください
(詳細な調整手順は FIX_NOTES.md を参照)。
Fitter 結果(pin_test.pin)に基づく主要信号のピン配置です。
| 信号 | ピン |
|---|---|
clk | V11 |
rst_n | AH17 |
sw_in[0] | AG15 |
sw_in[1] | AE20 |
sw_in[2] | AE19 |
sw_in[3] | AE17 |
mode_sw[0] | Y15 |
mode_sw[1] | AC24 |
mode_sw[2] | AH19 |
行 (m_r)・列 (m_c)・7セグ (seg)・桁 (dig)・バー (p)・緑LED (m_c8g) の全ピンは
pin_test.pin を参照してください。ハードウェア側の詳細な信号対応は FPGAPiano_sch_rev2.pdf を参照してください。
pin_test.qpf を開くpin_test_top.v の AL_xxx パラメータを調整pin_test.sof を生成pin_test.cdf)で書き込みmode_sw でモードを切り替えながら、各出力が正しい位置・正しい極性で光ることを確認create_clock -period 20.000)過去に発生したピン配置エラーや極性の確定経緯は FIX_NOTES.md にまとめられています。
sw_in[1]/sw_in[3]/rst_n のGPIOテーブル読み取りミスによるFitterエラーの修正m_c8g のビット幅誤り(4bit→1bit、DRV777は1入力のため)の修正KiCad 9.0で作成しています。
DE10-nanoのGPIOだけでドットマトリクス/7セグを駆動するとDE10-nano側が燃えそうだったので、外部電源が必須の仕様となっています。電源電圧は5V想定です。
プログレスバーとスイッチはGPIOに直結のため、外部電源不要で動作可能です。
7セグの配線に間違いがあり、ラベル名と7セグのピン名が入れ替わっている部分がありますが、公開しているverilogのピンアサインで動くように修正してあります(動くはずです)。
このプロジェクトは MIT License の下で公開されています。 改変・再配布・商用利用を含め自由に利用できます(著作権表示とライセンス文の保持のみ必須)。
| Qty | Value | Footprint | References |
|---|---|---|---|
| 28 | 2.2k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R34, R35, R36, R37, R38, R39, R40, R41, R42, R43, R44, R45, R46, R47, R48, R49 +12 |
| 18 | 10k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R2, R4, R6, R8, R10, R12, R14, R16, R18, R20, R22, R73, R75, R77, R79, R81 +2 |
| 17 | 220R | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R23, R24, R25, R26, R27, R28, R29, R30, R31, R33, R72, R74, R76, R78, R80, R82 +1 |
| 11 | IRLML2246TRPBF | Package_TO_SOT_SMD:SOT-23_Handsoldering | Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q11 |
| 10 | 510R | Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_Vertical | R62, R63, R64, R65, R66, R67, R68, R69, R70, R71 |
| 7 | 100n | Capacitor_THT:C_Disc_D4.7mm_W2.5mm_P5.00mm | C1, C2, C3, C4, C5, C6, C7 |
| 4 | DRV777DR | SamacSys_Parts:SOIC127P600X175-16N | IC1, IC2, IC3, IC4 |
| 1 | 300R | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R32 |
| 1 | 5VIN | Connector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_Vertical | J3 |
| 1 | D0 | SamacSys_Parts:DIPS1524W51P254L1255H800Q10N | DS1 |
| 1 | D1 | SamacSys_Parts:DIPS1524W51P254L1255H800Q10N | DS2 |
| 1 | D2 | SamacSys_Parts:DIPS1524W51P254L1255H800Q10N | DS3 |
| 1 | D3 | SamacSys_Parts:DIPS1524W51P254L1255H800Q10N | DS4 |
| 1 | GPIO0 | Connector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_Vertical | J1 |
| 1 | GPIO1 | Connector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_Vertical | J2 |
| 1 | Lower | original:LTP-12188M-08 | U2 |
| 1 | Upper | original:LTP-12188M-08 | U1 |
| 1 | YHC05HRK | original:YHC05HRK | U3 |
| 1 | mode_0 | Button_Switch_THT:SW_Tactile_Straight_KSA0Axx1LFTR | SW5 |
| 1 | mode_1 | Button_Switch_THT:SW_Tactile_Straight_KSA0Axx1LFTR | SW6 |
| 1 | mode_2 | Button_Switch_THT:SW_Tactile_Straight_KSA0Axx1LFTR | SW7 |
| 1 | sw_0 | Button_Switch_THT:SW_PUSH-12mm_Wuerth-430476085716 | SW1 |
| 1 | sw_1 | Button_Switch_THT:SW_PUSH-12mm_Wuerth-430476085716 | SW2 |
| 1 | sw_2 | Button_Switch_THT:SW_PUSH-12mm_Wuerth-430476085716 | SW3 |
| 1 | sw_3 | Button_Switch_THT:SW_PUSH-12mm_Wuerth-430476085716 | SW4 |

eez-open/psu-hw
EEZ H24005 programmable bench power supply (powered by Arduino Due)







It measures 100 × 100 mm and has 2 copper layers, 1.6 mm thick.
113 parts, built around the IRLML2246TRPBF. 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 RyutaroMasuda/WASEDA-PianoTile repository on GitHub, at the commit this page was made from: the board is PCB/FPGAPiano/FPGAPiano.kicad_pcb and its schematic PCB/FPGAPiano/FPGAPiano.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).