TinyGo 0.15 で遊べるマイコンボード一覧

TinyGo 0.15 がリリースされました。

github.com

ということで TinyGo 0.15 で遊べるマイコンボード一覧を作成しました。
オフィシャルの一覧に、マイコンやクロックなどの情報を足しています。
前に作った 0.14 時点のもの から 5 つのボードが増えました。 今回の目玉は ESP32 / ESP8266 サポートが追加されたことです。

TinyGo は最終的に LLVM を用いてビルドするため、本来的には LLVM の upstream に ESP32 等向けの xtensa fork がマージされる必要があるのですが、 TinyGo プロジェクトとしては xtensa 版の変更も含めて TinyGo プロジェクトに取り込む事により ESP32 / ESP8266 サポートを追加することができました。 今後、 LLVM 本流と xtensa fork の乖離が激しくなると面倒なことになるのですが、それはそれ。

tinygo.org

TinyGo については、以下に記載しています。

qiita.com

qiita.com

あるいは、 2020/07/18 の umedago 2020 Online の資料+動画が役に立つかもしれません。
動画では実際にビルドして動かしてみる部分や、デバッグなども少し触れています。
ページ下部の資料置き場に資料および当日の発表動画があります。

umedago.connpass.com

さて。

TinyGo 0.15.0 時点の README.md をベースに作成しています。
値段や技適等の情報はあくまで参考ということで、購入する場合は別途各自で調べてください。

0.15 追加分

Arduino Zero

ATSAMD21G18 Cortex-M0+ / 48MHz / 256KB / 32KB / EDBG
f:id:sago35:20200917221331p:plain
スイッチサイエンスによると Arduino M0 Pro に置き換わった?
$42.90
https://store.arduino.cc/usa/arduino-zero

ESP32, ESP32-WROOM-32

ESP32 / 240Mhz / 4MB / 520KB / WiFi, BLE
f:id:sago35:20200917221533p:plain
モジュール単体としての対応になりますが、 ESP32 が搭載されたボード全般で使用可能のはずです
まだポート+UART+SPI という基本的なサポートのみとなっていますが、すごい勢いで追加されつつあります
↓ の ESPr Developer 32 で動くことは確認しました
712 円 https://www.switch-science.com/catalog/3156/
1,100 円 https://www.switch-science.com/catalog/3170/
2,200 円 https://www.switch-science.com/catalog/3210/ https://www.espressif.com/en/products/socs/esp32

ESP8266

ESP8266 / 160Mhz / ? / ? / WiFi
f:id:sago35:20200917221735p:plain
モジュール単体としての対応になりますが、 ESP8266 が搭載されたボード全般で使用可能のはずです 詳細不明
611 円 https://www.switch-science.com/catalog/2346/
926 円 https://www.switch-science.com/catalog/2347/
1,980 円 https://www.switch-science.com/catalog/2500/
https://www.espressif.com/en/products/socs/esp8266

feather-stm32f405

STM32F405 Cortex-M4F / 168MHz / 1MB / 192KB / LiPo connector, microSD, CAN, Qwiic
f:id:sago35:20200917221825p:plain
まだ I2C と SPI 対応はレビュー中であることに注意
Type-C コネクタなのが何気に嬉しい所
https://www.adafruit.com/product/4382
https://learn.adafruit.com/adafruit-stm32f405-feather-express

Adafruit ItsyBitsy nRF52840 Express

nRF52840 Cortex-M4F / 64MHz / 1MB / 256KB / BLE
f:id:sago35:20200917221807p:plain
BLE 対応の nRF シリーズのボード
feather-nrf52840 の弟分という所
FCC / IC / TELEC certified module ということで国内も OK
$17.95
https://www.adafruit.com/product/4481
https://learn.adafruit.com/adafruit-itsybitsy-nrf52840-express

既存の対応ボード

Adafruit Circuit Playground Bluefruit

nRF52840 Cortex-M4F / 64MHz / 1MB / 256KB / BLE
f:id:sago35:20200423211601p:plain
$24.95
https://www.adafruit.com/product/4333
https://learn.adafruit.com/adafruit-circuit-playground-bluefruit

Adafruit Circuit Playground Express

ATSAMD21G18 Cortex-M0+ / 48MHz / 256KB / 32KB
f:id:sago35:20200423211646p:plain
$24.95
3,839 円 https://www.switch-science.com/catalog/3666/
https://www.adafruit.com/product/3333
https://learn.adafruit.com/adafruit-circuit-playground-express

Adafruit CLUE Alpha

nRF52840 Cortex-M4F / 64MHz / 1MB / 256KB / BLE, 240x240 TFT
f:id:sago35:20200423211710p:plain
BBC micro:bit サイズでディスプレイやセンサー類てんこ盛り
$39.95
https://www.adafruit.com/product/4500
https://learn.adafruit.com/adafruit-clue

Adafruit Feather M0

ATSAMD21G18 Cortex-M0+ / 48MHz / 256KB / 32KB
f:id:sago35:20200423211741p:plain
Feather M0 シリーズは、マイコン単体に近い Basic Proto 以外にも microSD カードスロットを搭載したモデルや BLE 搭載などのバリエーションあり
PH コネクタ、リチウムイオン電池の充電機能あり
$19.95
2,849 円 https://www.switch-science.com/catalog/2750/
https://www.adafruit.com/product/2772
https://learn.adafruit.com/adafruit-feather-m0-basic-proto

Adafruit Feather M4

ATSAMD51J19 Cortex-M4F / 120MHz / 512KB / 192KB
f:id:sago35:20200423211804p:plain
ピン数多めのモデル
Feather M0 のマイコン強化版
PH コネクタ、リチウムイオン電池の充電機能あり
$22.95
3,663 円 https://www.switch-science.com/catalog/5887/
https://www.adafruit.com/product/3857
https://learn.adafruit.com/adafruit-feather-m4-express-atsamd51

Adafruit Feather nRF52840 Express

nRF52840 Cortex-M4F / 64MHz / 1MB / 256KB / BLE
f:id:sago35:20200714215729p:plain
安定の Feather シリーズの nRF52840 版になります
クロック遅めですが、 ROM / RAM は多め、 BLE 付きで安い
安心の技適取得済み
デバッグコネクタ付き
$24.95
3,432 円 https://www.switch-science.com/catalog/5400/
https://www.adafruit.com/product/4062
https://learn.adafruit.com/introducing-the-adafruit-nrf52840-feather

Adafruit ItsyBitsy M0

ATSAMD21G18 Cortex-M0+ / 48MHz / 256KB / 32KB
f:id:sago35:20200423211828p:plain
Feather よりももう少し小さいシリーズ
$11.95
1,837 円 https://www.switch-science.com/catalog/3716/
https://www.adafruit.com/product/3727

Adafruit ItsyBitsy M4

ATSAMD51J19 Cortex-M4F / 120MHz / 512KB / 192KB
f:id:sago35:20200423211849p:plain
Feather よりももう少し小さいシリーズ
$14.95
https://www.adafruit.com/product/3800

Adafruit Metro M4 Express Airlift

ATSAMD51J19 Cortex-M4F / 120MHz / 512KB / 192KB / ESP32
f:id:sago35:20200423211910p:plain
ESP32 搭載 (WiFi + BLE)
$34.95
https://www.adafruit.com/product/4000
https://learn.adafruit.com/adafruit-metro-m4-express-airlift-wifi

Adafruit PyBadge

ATSAMD51J19 Cortex-M4F / 120MHz / 512KB / 192KB / 160x128 TFT
f:id:sago35:20200423211929p:plain
$34.95
5,379 円 https://www.switch-science.com/catalog/6230/
https://www.adafruit.com/product/4200
https://learn.adafruit.com/adafruit-pybadge

Adafruit PyGamer

ATSAMD51J19 Cortex-M4F / 120MHz / 512KB / 192KB / 160x128 TFT
f:id:sago35:20200712180414p:plain
$39.95
https://www.adafruit.com/product/4242
https://learn.adafruit.com/adafruit-pygamer

Adafruit PyPortal

ATSAMD51J20 Cortex-M4F / 120MHz / 1MB / 256KB / 320x240 TFT, ESP32
f:id:sago35:20200423211947p:plain
$54.95
8,767 円 https://www.switch-science.com/catalog/5741/
https://www.adafruit.com/product/4116
https://learn.adafruit.com/adafruit-pyportal

Adafruit Trinket M0

ATSAMD21E18 Cortex-M0+ / 48MHz / 256KB / 32KB
f:id:sago35:20200423212001p:plain
安い、小さい
$8.95
1,474 円 https://www.switch-science.com/catalog/3535/
https://www.adafruit.com/product/3500

Arduino Mega 2560

ATmega2560 AVR / 16MHz / 256KB / 8KB
f:id:sago35:20200423212020p:plain
$40.30
https://store.arduino.cc/arduino-mega-2560-rev3

Arduino Nano

ATmega328 AVR / 16MHz / 32KB / 2KB
f:id:sago35:20200423212035p:plain
$20.70
https://store.arduino.cc/arduino-nano

Arduino Nano33 IoT

SAMD21 Cortex-M0+ / 48MHz / 256KB / 32KB / u-blox NINA-W102
f:id:sago35:20200423212052p:plain
$18.40
https://store.arduino.cc/nano-33-iot

Arduino Uno

ATmega328P AVR / 16MHz / 32KB / 2KB
f:id:sago35:20200423212110p:plain
$23.00
https://store.arduino.cc/arduino-uno-rev3

BBC micro:bit

nRF51822 Cortex-M0 / 16MHz / 256KB / 16KB / BLE
f:id:sago35:20200423212127p:plain
LED x 25 や加速度センサや BLE 等色々搭載
2,200 円 https://www.switch-science.com/catalog/5263/
https://microbit.org/

Digispark

ATTiny85/ 12MHz?/ 8KB/ 512B
f:id:sago35:20200423212146p:plain
$7.95
http://digistump.com/products/1

Game Boy Advance

f:id:sago35:20200423212218p:plain
https://en.wikipedia.org/wiki/Game_Boy_Advance

Makerdiary nRF52840-MDK

nRF52840 Cortex-M4F / 64MHz / 1MB / 256KB / USB Type-C connector, BlueTooth 5, BlueTooth Mesh
f:id:sago35:20200423212234p:plain
Type-C コネクタ
https://wiki.makerdiary.com/nrf52840-mdk/

Nintendo Switch

Nvidia Tegra X1/X2 / ??Mhz / ??
f:id:sago35:20200804180415p:plain
29,980 円 https://www.nintendo.co.jp/hardware/switch/

Nordic Semiconductor PCA10031

nRF51822/nRF51422/nRF51824 Cortex-M0 / 16Mhz / 128-256KB / 16-32KB / BLE
f:id:sago35:20200423212254p:plain
https://www.nordicsemi.com/eng/Products/nRF51-Dongle

Nordic Semiconductor PCA10040

nRF52810/nRF52832 Cortex-M4F / 64Mhz / 192-512KB / 24-64KB / BLE
f:id:sago35:20200423212309p:plain
https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF52-DK

Nordic Semiconductor PCA10056

nRF52840 Cortex-M4F / 64MHz / 1MB / 256KB / BLE
f:id:sago35:20200423212332p:plain
https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52840-DK

Particle Argon

nRF52840 Cortex-M4F / 64MHz / 1MB / 256KB / BlueTooth 5
f:id:sago35:20200423212349p:plain
$27.50 https://www.adafruit.com/product/3997
https://docs.particle.io/datasheets/wi-fi/argon-datasheet/

Particle Boron

nRF52840 Cortex-M4F / 64MHz / 1MB / 256KB / BLE, u-blox SARA (LTE/2G/3G)
f:id:sago35:20200423212404p:plain
u-blox SARA-R410-02B LTE modem 搭載で LTE/2G/3G につながる
技適は不明 (u-blox SARA-R410M 自体は通ってる?)
$55.00 https://www.adafruit.com/product/3998
https://docs.particle.io/datasheets/cellular/boron-datasheet/

Particle Xenon

nRF52840 Cortex-M4F / 64MHz / 1MB / 256KB / BlueTooth 5
f:id:sago35:20200423212418p:plain
$19.95 https://www.adafruit.com/product/3999
https://docs.particle.io/datasheets/discontinued/xenon-datasheet/

Phytec reel board

nRF52840 Cortex-M4F / 64MHz / 1MB / 256KB / BLE
f:id:sago35:20200423212435p:plain
$52.77
https://www.phytec.eu/product-eu/internet-of-things/reelboard/
https://docs.zephyrproject.org/latest/boards/arm/reel_board/doc/index.html

PineTime DevKit

nRF52832 Cortex-M4F / 64MHz / 512KB / 64KB / BlueTooth 5, BLE, 240x240 touch display
f:id:sago35:20200423212453p:plain
腕時計型のデバイス
$24.99
https://www.pine64.org/pinetime/

PJRC Teensy 3.6

MK66FX1M0VMD18 Cortex-M4F / 180Mhz / 1MB / 256KB / CAN, microSD
f:id:sago35:20200712200809p:plain
$29.25
4,766 円 https://www.switch-science.com/catalog/2989/
https://www.pjrc.com/store/teensy36.html

Seeed Wio Terminal

ATSAMD51P19 Cortex-M4F / 120Mhz / 512KB / 192KB / Wifi, BLE, 320x240 TFT, microSD,LIS3DHTR
f:id:sago35:20200712200146p:plain
液晶にボタンに加速度センサにとてんこ盛りのボード
そして安い
背面からピンも多数出ているので拡張性も十分
Type-C コネクタ
技適取得済み
$29.90
3,784 円 https://www.switch-science.com/catalog/6360/
秋月 http://akizukidenshi.com/catalog/g/gM-15275/
マルツ https://www.marutsu.co.jp/pc/i/1633550/
https://www.seeedstudio.com/Wio-Terminal-p-4509.html

Seeed Seeeduino XIAO

ATSAMD21G18 Cortex-M0+ / 48MHz / 256KB / 32KB
f:id:sago35:20200712200511p:plain
とにかく安くて、小さい
その割に IO x 11 と割と多い
リセットするのが面倒なので、半田付けして線だしした方がよい
Type-C コネクタ
$4.9
594 円 https://www.switch-science.com/catalog/6335/
https://www.seeedstudio.com/Seeeduino-XIAO-Arduino-Microcontroller-SAMD21-Cortex-M0+-p-4426.html

Sipeed MAix BiT

Kendryte K210 RISC-V (RV64GC) / 400Mhz / 16MB / 8MB / microSD
f:id:sago35:20200712200652p:plain
$12.90
安くて速い
ADC が搭載されていない?ので注意
Type-C コネクタ
カメラと LCD のセットで 3,520 円は安い
3,520 円 https://www.switch-science.com/catalog/5702/ (カメラ + LCD セット)
https://www.seeedstudio.com/Sipeed-MAix-BiT-for-RISC-V-AI-IoT-p-2872.html

SiFIve HiFive1

FE310-G002 RISC-V / 320MHz / 4MB / 16KB? / WiFi, BLE
f:id:sago35:20200423212518p:plain
6,600 円 http://akizukidenshi.com/catalog/g/gM-15014/
https://www.sifive.com/boards/hifive1

ST Micro "Nucleo F103RB"

STM32F103RBT6 Cortex-M3 / 72MHz / 128KB / 20KB / CAN
f:id:sago35:20200423212531p:plain
$10.99
1,936 円 https://www.switch-science.com/catalog/1618/
https://www.st.com/en/evaluation-tools/nucleo-f103rb.html
https://os.mbed.com/platforms/ST-Nucleo-F103RB/

ST Micro STM32F103XX "Bluepill"

STM32F103C8 Cortex-M3 / 72MHz / 128KB / 20KB / CAN
f:id:sago35:20200423212553p:plain
eBay 等では 200 円ぐらいから
Bluepill よりも改良版?である Blackpill の方が色々と問題が少ないはず
https://stm32duinoforum.com/forum/wiki_subdomain/index_title_Blue_Pill.html

ST Micro STM32F407 "Discovery"

STM32F407VGT6 Cortex-M4F / 168MHz / 1MB / 192KB / CANx2
f:id:sago35:20200423212608p:plain
3,000 http://akizukidenshi.com/catalog/g/gM-05313/
https://www.st.com/en/evaluation-tools/stm32f4discovery.html

X9 Pro smartwatch

nRF52832 Cortex-M4
https://github.com/curtpw/nRF5x-device-reverse-engineering/tree/master/X9-nrf52832-activity-tracker/