Skip to the content
2 layers96 × 92.5 mmPanelize, the printed circuit board in 3D

Tiny microcontroller board with Arduino framework

Size
96 × 92.5 mm
Copper layers
2
Thickness
1.4 mm
Parts
600
Nets
240
Pads
1,020
Tracks, vias
1,560, 160
Pours
20
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
16 Jul 2024
Updated
13 Oct 2025

Overview

Panelize is an open-source printed circuit board by s51517765, from the s51517765/Tibicon repository on GitHub, published under the MIT licence. It is a 2-layer board of 96 × 92.5 mm with 600 parts on 240 nets, routed with 1,560 tracks and 160 vias.

It is built around the ATTINY202-SSN and RB160M-30. Its parts include 60 diodes, 40 resistors, 40 connectors and 20 ICs. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

2

README

README.md

Tibicon

概要 (Overview)

ATtiny202 を使ったマイコンボードで、コンセプトとしては小サイズ・低コストで、サイズは 19.0mm x 14.0mm となっています(バリを除く)。2024 年現在、市販されている Arduino 互換機の中で最小です(作者調べ)。

PCB 基板のほかに必要な部品コストは 170 円ほどです(秋月電子価格、送料を除く)。

ピンアサイン

※書き込み用の UPDI_TX、UPDI_RX と Serial 通信用の TX(GPIO0)、RX(GPIO1)があります。

動作要件 (Requirements)

Arduino IDE
  Arduino IDE 1 系/2 系で動作確認済み
ただし、ライブラリによっては動作しないものもあります。
RAM が小さいので大規模なプログラムには向きません。

書き込みや Serial Print を使用するには USB シリアル変換モジュールが必要です。

部品リスト(Parts list)

部品種類秋月コード数量
本 PCB-※21
AVR マイコン ATtiny202ATTINY202-SSNR1157311
ショットキーバリアダイオードRB160M-30TR1013981
1608 抵抗1kΩ111790 ※12
1608 抵抗470Ω106471 ※11
1608LEDGreen1118781
1608LEDRed1118791
ピンヘッダオスまたはメス105779 または 1001675x2

※1 ただし、抵抗は Amazon などでセットになったものを入手するほうが安いです
※2 BOOTH(https://toriten51517765.booth.pm/items/5967775)で入手できます。

回路図(Schematics)

組み立て方 (Build guide)

LED とショットキーバリアダイオードは極性があります。
抵抗は極性はありません。
マイコン(ATtiny202)は 1 番ピンの向きに注意してください。

ピンヘッダは好みに応じて、メスピン・オスピン、上向き・下向きが選択可能です。
ピンヘッダをはんだ付けするときは基板に対して垂直になるように気をつけてください。ピン 1 本だけ仮ではんだ付けをして正しく接触していることを確認するとよいです。

書き込み方法 (Writing method)

ATtiny202 を使用した本マイコンボードは、シリアル UPDI または jtag2updi で書き込みが可能ですが、本プロジェクトではシリアル UPDI を前提として設計しており、こちらを推奨します。
※jtag2updi でも使用可能ですが、外付けの抵抗が必要です。
 以下はシリアル UPDI での書き込み方法です。

書き込み時の接続

本マイコンボードシリアル USB
UPDI_TXTX ※
UPDI_RXRX ※
VCCVCC
GNDGND

書き込み手順

1.  Arduino IDE のメニュー「ファイル ¥ 環境設定」より追加のボードマネージャに URL に「http://drazzy.com/package_drazzy.com_index.json」 を追加します。

2. 「ツール ¥ ボードマネージャ」より、「megaTinyCore」を追加します。

3. 「ツール」より、ボード情報を

  • ボード:ATtiny412/402/212/202
  • Chip:ATtiny202
  • 書き込み装置:SerialUPDI - SLOW:57600 baud
    のように変更します。

4. メニューの「スケッチ ¥ 書き込み装置を使って書き込む」でスケッチを書き込みます。

Arduino IDE の 1 系ではいつもと同じようにスケッチを書き込みボタンを押下でも書き込むことが可能です。

使い方 (How to cording)

L チカ

基本は Arduino と同様に使用できます。
Builtin_LED(基板上の赤 LED)はピン番号 1 で使用できます。
※緑 LED は電源ランプで、通電時に点灯します。

text
void setup() {
  pinMode(1, OUTPUT);
}

void loop() {
  digitalWrite(1, LOW);
  delay(1000);
  digitalWrite(1, HIGH);
  delay(1000);
}

ピン番号(GPIO)は 0 ~ 4 が使用可能です。

PWM

本基板では GPIO0 ~ GPIO4 で PWM が使用できます。
GPIO1 ~ GPIO04では通常の Arduino と同じ使い方で使用できますが、GPIO0 では以下のようにコーディングします。

text
void setup() {
  //GPIO0のセットアップ
  pinMode(0, OUTPUT);
  TCB0.CTRLA = TCB_ENABLE_bm | TCB_CLKSEL_CLKDIV1_gc; //start the timer, set the prescaler to 1
  TCB0.CTRLB = TCB_CCMPEN_bm | TCB_CNTMODE_PWM8_gc; //enable WO0, select the 8 bits PWM mode
  TCB0.CCMPL = 255; //set the PWM resolution to 8 bits
  TCB0.CCMPH = 0; //set the duty cycle
  //GPIO3のセットアップ
  pinMode(3, OUTPUT);
}

void loop()
{
  for (int i = 0; i < 256; i++)
  {
    //GPIO0のPWM
    TCB0.CCMPH = i;
    //GPIO3のPWM
    analogWrite(3,i);
    delay(10);
  }
}

ADC(Analog Read)

本基板では GPIO1 ~ GPIO4 で ADC が使用できます。
通常の Arduino と同じ使い方で使用できます。

text
void setup() {
  pinMode(1, OUTPUT);
  pinMode(4, INPUT);
}

void loop() {
  //ADC は1,2,3,4が使用可能
  int adc = analogRead(4);
  analogWrite(1, adc);
}

Serial print の使い方

USB シリアル変換は内蔵していませんので、外部の USB シリアル変換を使います。

USB シリアル使用時の接続
本マイコンボードシリアル USB
TX(GPIO0)RX
RX(GPIO1)TX
※図は基板電源をUSBシリアルから給電する場合

Teraterm などで読み取ることができます。Arduino IDE でも読み取ることはできますが、書き込み時と接続が異なりますので USB シリアルの繋ぎ変えが必要になります。
※D1 ピン(Builtin LED)と D2 ピンを共有しているため Serial と同時に使うことはできません。

サンプルコード(Sample Code)

sample フォルダを参照ください。

フラッシュメモリ不足となる場合(When flash memory is insufficient)

ピン互換のATtiny402を使うとフラッシュメモリ容量が2倍になります。
この場合、書きみ手順でChipをATtiny402を選択します。

ブートローダーの書き込み (How to write bootloader)

マイコンがおかしくなった時やブートローダーが書き込まれていないマイコンを購入した場合は書き込みが必要になります。Arduino IDE で書き込むことが出来ます。
通常は必要ありません。

動作確認済みサンプルコードリスト(List of sample codes that works)

Arduino IDEのライブラリとして導入可能なサンプルコードのうち動作確認できたものを追加していきます。

LibraryNameATtiny402ATtiny202
Tiny4kOLEDBitmap〇×
Tiny4kOLEDScrollingExample〇×
Adafruit NeoPixelsimple〇×

ライセンス (License)

This software is released under the MIT License, see LICENSE.

Parts

600
QtyValueFootprintReferences
420NPTHNPTHKiKit_MB_10_3, KiKit_MB_10_4, KiKit_MB_10_5, KiKit_MB_10_6, KiKit_MB_10_7, KiKit_MB_11_3, KiKit_MB_11_4, KiKit_MB_11_5, KiKit_MB_11_6, KiKit_MB_11_7, KiKit_MB_12_3, KiKit_MB_12_4, KiKit_MB_12_5, KiKit_MB_12_6, KiKit_MB_12_7, KiKit_MB_13_3 +404
401kResistor_SMD:R_0603_1608MetricR1, R1, R1, R1, R1, R1, R1, R1, R1, R1, R1, R1, R1, R1, R1, R1 +24
40Conn_01x05_PinConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ1, J1, J1, J1, J1, J1, J1, J1, J1, J1, J1, J1, J1, J1, J1, J1 +24
20ATtiny202-SSPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU1, U1, U1, U1, U1, U1, U1, U1, U1, U1, U1, U1, U1, U1, U1, U1 +4
20LED_GDiode_SMD:D_0603_1608MetricLED1, LED1, LED1, LED1, LED1, LED1, LED1, LED1, LED1, LED1, LED1, LED1, LED1, LED1, LED1, LED1 +4
20LED_RDiode_SMD:D_0603_1608MetricLED2, LED2, LED2, LED2, LED2, LED2, LED2, LED2, LED2, LED2, LED2, LED2, LED2, LED2, LED2, LED2 +4
20R3Resistor_SMD:R_0603_1608Metric470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470 +4
20RB160M-30Diode_SMD:D_1206_3216MetricD3, D3, D3, D3, D3, D3, D3, D3, D3, D3, D3, D3, D3, D3, D3, D3 +4

More from s51517765/Tibicon

1
  • 2 layers19 × 14.1 mmTinypico, the printed circuit board in 3D

    Tinypico

    s51517765/Tibicon

    Tiny microcontroller board with Arduino framework

    9 parts1MIT

Similar boards

  • 2 layers100 × 100 mmFreeDSP Catamaran, the printed circuit board in 3D

    FreeDSP Catamaran

    freeDSP/FreeDSP_Catamaran_AB

    A mono contruction Differntial 1 Input 4 output ADAU1701 DSP board, 96kHz TDM8 interlink is available.

    257 parts12CC0-1.0
  • 4 layers102.4 × 27.5 mmGLARE, the printed circuit board in 3D

    GLARE

    RR-CREATOR/GLARE

    Glasses Linked Augmented Reality Engine

    102 parts10MIT
  • 2 layers134 × 109.5 mmFreeDSP SMD AB plus, the printed circuit board in 3D

    FreeDSP SMD AB plus

    CyberPit/FreeDSP_Classic_SMD_AB_plus-II

    An extended version of FreeDSP Classic SMD A/B

    233 parts6
  • 2 layers100 × 100 mmFreeDSP SMD AB, the printed circuit board in 3D

    FreeDSP SMD AB

    CyberPit/FreeDSP-FreeDSP_SMD_AB

    2in4out ADAU1701 Board with selectable 2 EEPROMs, SMD resisitors, ThtoughHole Ele-Caps.

    196 parts6CC-BY-SA-4.0
  • 2 layers41.9 × 54.1 mmRam card-256k, the printed circuit board in 3D

    Ram card-256k

    cazacov/PocketComputers

    My experiments with programmable calculators and pocket computers

    12 parts4MIT
  • 4 layers85 × 9 mmOSSG v0p4, the printed circuit board in 3D

    OSSG v0p4

    aezrapour/RINSIGHT

    This version was an attempt to use a 2S battery pack. The main issue is that as of 2022-09-15, there are not many 2S battery charging IC's nor a nice i2C fuel gauge IC, so at the moment, this is a dead end design.

    82 partsMIT
  • 2 layers60.3 × 49.5 mmXing Signals XIAO, the printed circuit board in 3D

    Xing Signals XIAO

    buelowp/rrcrossing

    RP2040 RR Crossing signal controller

    51 parts
  • 2 layers92 × 122 mmCalc, the printed circuit board in 3D

    Calc

    JeffreyWangDev/Sum-Intro-Number-thing

    115 partsMIT

Questions

How big is the Panelize PCB?

It measures 96 × 92.5 mm and has 2 copper layers, 1.4 mm thick.

What parts does the Panelize use?

600 parts, built around the ATTINY202-SSN and RB160M-30. 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.

Where can I download the Panelize KiCad files?

From the s51517765/Tibicon repository on GitHub, at the commit this page was made from: the board is pcb/panelize/panelize.kicad_pcb and its schematic pcb/panelize/panelize.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Panelize design in my own project?

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).