Skip to the content
PCBKitNew board
2 layers57 × 78 mmCuebit, the printed circuit board in 3D

micro:bitからCue:bitへのコマンド(通信プロトコル:UART 9600bps N81)は以下です。以下の"NNN"は数値(10進数)で与えるコマンドパラメータです。また各コマンドは行末コード(0x0d or…

Size
57 × 78 mm
Copper layers
2
Thickness
1.6 mm
Parts
61
Nets
74
Pads
232
Tracks, vias
666, 74
Pours
2
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
20 Jul 2024
Updated
11 Dec 2025

Overview

Cuebit is an open-source printed circuit board by akita11, from the akita11/Cuebit repository on GitHub, published under the MIT licence. It is a 2-layer board of 57 × 78 mm with 61 parts on 74 nets, routed with 666 tracks and 74 vias.

It is built around the ATMEGA328P-AU, AD116 and ITR8307/S17/TR8(B), with the WS2812B among its other parts. Its parts include 16 resistors, 13 connectors, 9 ICs, 6 capacitors and 4 diodes. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

4

README

README.md

Cue:bit

ライントレースと3色のカラーマーカでの動作制御ができるプログラミング教材ロボットカーです。micro:bitを装着して、micro:bitのカスタムブロックで動作制御することもできます。

使い方・動作の例(YouTube動画)

使い方(ライントレースモード)

電源を入れると、ライントレースを開始します。また途中にカラーマーカーがあると、それに応じた動作をします。なおライン(黒)やカラーマーカを見失って0,5秒程度経過すると、自動的に停止します(本体LEDが黄色点灯)。ラインやマーカのあるところに移動させると、動作を再開します。

カラーマーカーと動作の定義

赤・緑・黄の3色のマーカを3つ連続して配置されたところを通過すると、その色パターンに応じた動作を行います。色マーカは10mm程度の「丸ポチシール」(DAISOなどで売っているもの)や、同等の色を印刷したものを使います。(赤=R/緑=G/黄=Y)

  • 緑-赤-黄 (GRY) : 速度を超ゆっくりに
  • 赤-緑-黄 (RGY) : 速度をゆっくりに
  • 赤-緑-赤 (RGR) : 速度を通常に
  • 黄-緑-赤 (YGR) : 速度を速く
  • 黄-赤-緑 (YRG) : 速度を超速く
  • 黄-赤-黄 (YRY) : 一時停止(3秒程度)
  • 緑-黄-赤 (GYR) : 次の交差点を左に90度曲がる
  • 黄-緑-黄 (YGY) : 次の交差点を直進する
  • 緑-黄-緑 (GYG) : 次の交差点を右に90度曲がる
  • 赤-黄-赤 (RYR) : Uターンする
  • 緑-赤-緑 (GRG) : バックする

使い方(micro:bitモード)

micro:bitのカスタムブロックを使ってCue:bitの動作を制御でききます。 こちらの手順でMakeCode用カスタムブロックを追加し、micro:bitのプログラムを作成してmicro:bitに書き込みます。その後、そのmicro:bitをCue:bitに差し込んでCue:bitの電源をいれると、そのプログラム通りにCue:bitが動作します。

※モータの特性仕様上、左右の回転速度には差があり、以下のコマンドである程度は調整はできますが、完全に直進したり正確に指定距離だけ進む・回転することはできません。ご了承ください。

参考:技術的仕様

micro:bitからCue:bitへのコマンド(通信プロトコル:UART 9600bps N81)は以下です。以下の"NNN"は数値(10進数)で与えるコマンドパラメータです。また各コマンドは行末コード(0x0d or 0x0a)で終端します。なおCue:bitのGroveコネクタと本体後部の6ピンコネクタ用端子(FTDI-Basic用)も、micro:bitの通信端子と並列に接続されています。なお「Groveケーブル-USBシリアル接続ケーブル」を使うと、FTDI-Basicと本体Grove端子とを接続できます。なおソースコードはArduinoIDE等で書き込むことができます。(ターゲットはProMini(ATmega328P, 3.3V/8MHz)。新品ATmega328Pではこれ用のブートローダを書き込む必要あり)

  • $ : micro:bit制御モードに開始
  • # : micro:bit制御モードを終了
  • RNNN : NNN度回転(NNNが正=時計回り、負=反時計回り)(※実際の回転角度はモータ特性のばらつきなどから多少の誤差があります)
  • B : 停止
  • FNNN : NNN[cm]進む(※実際の移動距離はモータ特性のばらつきなどから多少の誤差があります)
  • ZNNN : ジグザグ走行(およそNNN[cm])
  • SNNN : スケート走行(およそNNN[cm])

以下はデバッグ用のコマンド

  • P : パラメータの表示
  • T : ライントレースモードを開始
  • t : ライントレースモードを終了して停止
  • D : デバッグ情報の表示を開始(Dに続けてr/g/y/wを書くと、色センサの値を各色の学習用のCSV形式で出力)
  • d : デバッグ表示の表示を停止
  • kNNN : ライントレース制御のKpパラメータ(float型)
  • KNNN : ライントレース制御のKdパラメータ(float型)
  • vNNN : 通常走行時の速度(float型。モータ駆動のPWM比として与えるため、値の範囲は0.0〜1.0)
  • rNNN : 左右モータの速度調整(PWMデューティー比)(float型)(左モータのPWM比×r=右モータのPWM比として計算するため、v×rが1.0以下となること)
  • fNNN : 1cm進むための時間[単位は10ms](※実際の移動距離はモータ特性のばらつきなどから多少の誤差があります)
  • gNNN : 10度回転するための時間[単位は10ms](※実際の回転角度はモータ特性のばらつきなどから多少の誤差があります)
  • ! : 各種パラメータをEEPROMに保存(起動時に読み込まれる)

Author

Junichi Akita (@akita11) / akita@ifdl.jp

Parts

61
QtyValueFootprintReferences
50.1uCapacitor_SMD:C_0603_1608MetricC1, C2, C4, C5, C7
510kResistor_SMD:R_0603_1608MetricR5, R10, R11, R15, R16
5470Resistor_SMD:R_0603_1608MetricR7, R9, R12, R13, R14
4ITR8307-S17-TR8OptoDevice:Everlight_ITR1201SR10ARU5, U6, U8, U9
24.7kResistor_SMD:R_0603_1608MetricR6, R8
2AD116libLCSC:SOT-23-6_L2.9-W1.6-P0.95-LS2.8-BLU3, U4
2Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ4, J5
2Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical_SMD_Pin1RightJ18, J19
2Conn_01x04Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ10, J11
2Conn_01x06Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ8, J9
2LEDLED_SMD:LED_0603_1608MetricD1, D2
2WS2812BLED_SMD:LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mmD3, D7
1100Resistor_SMD:R_0603_1608MetricR18
110uCapacitor_SMD:C_0603_1608MetricC3
11kResistor_SMD:R_0603_1608MetricR17
12kResistor_SMD:R_0603_1608MetricR1
13kResistor_SMD:R_0603_1608MetricR2
1AP1117-33Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1ATmega328P-APackage_QFP:TQFP-32_7x7mm_P0.8mmU1
1CON_AVRISPConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalCN1
1CON_GROVEakita:CON_GROVE_H_roundPadCN2
1Conn_01x02Connector_JST:JST_PH_B2B-PH-K_1x02_P2.00mm_VerticalJ1
1Conn_01x06Connector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalJ2
1Conn_01x40akita:CON_microbit_cardedge_V_SMDJ3
1Jumper_2_OpenJumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mmJP1
1SENSOR_VEML6040akita:OPLGA-4U7
1SW_SPDTakita:SW_SK-12D11VG3SW1
1TR_NMOS_IRLML6344Package_TO_SOT_SMD:SOT-23Q1

The 51 most common of 61 parts.

Questions

How big is the Cuebit PCB?

It measures 57 × 78 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Cuebit use?

61 parts, built around the ATMEGA328P-AU, AD116, ITR8307/S17/TR8(B) and WS2812B. 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 Cuebit KiCad files?

From the akita11/Cuebit repository on GitHub, at the commit this page was made from: the board is PCB/CueBit.kicad_pcb and its schematic PCB/CueBit.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Cuebit 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).

Similar boards

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

    PT2one

    akita11/PT2

    89 partsMIT
  • 2 layers90 × 86 mmBraille PCB Type-5-Vertical Motors, the printed circuit board in 3D

    Braille PCB Type-5-Vertical Motors

    KilowattSynthesis/Braille-Display-DC-Motors-Vertical

    Braille display POC using 0408 DC motors, vertically inline under each dot, to spin a bolt for each dot. Includes CAD, PCB, and Firmware.

    142 parts1CERN-OHL-P-2.0
  • 2 layers95 × 99 mmBraille Column Rods PCB, the printed circuit board in 3D

    Braille Column Rods PCB

    KilowattSynthesis/Braille-Display-CAD

    Experimental design for a braille display using build123d CAD in Python

    151 partsCERN-OHL-P-2.0
  • 4 layers102 × 100 mmZelvicka, the printed circuit board in 3D

    Zelvicka

    RoboticsBrno/Robutek

    Robůtek je robotická platforma založená na čipu ESP32-S3. Je velice rozšitiřelný, ale ze základu umí jezdit, kreslit fixou, jezdit po čáře, pohybovat se bludištěm. Programování je přes Jaculus.

    214 parts12
  • 2 layers100 × 100 mmHeatTable Base v0.9, the printed circuit board in 3D

    HeatTable Base v0.9

    DerSpatz/PCB-reflow-solder-table

    Table version of the PCB heat plate with advanced features and swappable heat plate

    82 parts14MIT
  • 4 layers56 × 28 mmBx tacho, the printed circuit board in 3D

    Bx tacho

    dazchi/bx-tacho

    Open DIY Beyblade X launcher RPM meter: ESP32-C3 with IR sensors and an OLED, Bluetooth (Battle Pass protocol), and a browser app for shot data and firmware updates. KiCad hardware, ESP-IDF firmware, 3D-printed case.

    51 parts3GPL-3.0
  • 2 layers98.2 × 82.5 mmEX ONE minisumo, the printed circuit board in 3D

    EX ONE minisumo

    KamilWuu/EX_ONE_minisumo

    New dimension of minisumo robots.

    64 parts1
  • 2 layers185 × 83 mmMass Spring Damper SysID Lab, the printed circuit board in 3D

    Mass Spring Damper SysID Lab

    Scalable-Open-Source-Labs/Mass-Spring-Damper-SysID-Lab

    An open source Mass-Spring-Damper to assist with teaching System Identification

    135 parts1MIT