

Cuebit
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
4ATMEGA328P-AU
TQFP-32(7x7)-40℃~+85℃ 1.8V~5.5V 10bit 1KB 20MHz 23 2KB 32KB 8 Bit AVR Built-in FLASH TQFP-32(7x7) Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)AD116
SOT23-6-40℃~+85℃ 1.1A 1.8V~6V 10uA 2.5A Yes SOT23-6 Brushed DC Motor Drivers ROHSIDCHIPBrushed DC Motor DriversITR8307/S17/TR8(B)
SMD-4PSMD-4P Reflective Optical Interrupters ROHSEverlight ElectronicsReflective Optical InterruptersWS2812B
5mm X 5mm Surface Mount RGB LED with Intelligent ControlWorldsemiUncategorised
README
README.mdCue:bit
ライントレースと3色のカラーマーカでの動作制御ができるプログラミング教材ロボットカーです。micro:bitを装着して、micro:bitのカスタムブロックで動作制御することもできます。
使い方(ライントレースモード)
電源を入れると、ライントレースを開始します。また途中にカラーマーカーがあると、それに応じた動作をします。なおライン(黒)やカラーマーカを見失って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| Qty | Value | Footprint | References |
|---|---|---|---|
| 5 | 0.1u | Capacitor_SMD:C_0603_1608Metric | C1, C2, C4, C5, C7 |
| 5 | 10k | Resistor_SMD:R_0603_1608Metric | R5, R10, R11, R15, R16 |
| 5 | 470 | Resistor_SMD:R_0603_1608Metric | R7, R9, R12, R13, R14 |
| 4 | ITR8307-S17-TR8 | OptoDevice:Everlight_ITR1201SR10AR | U5, U6, U8, U9 |
| 2 | 4.7k | Resistor_SMD:R_0603_1608Metric | R6, R8 |
| 2 | AD116 | libLCSC:SOT-23-6_L2.9-W1.6-P0.95-LS2.8-BL | U3, U4 |
| 2 | Conn_01x02 | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J4, J5 |
| 2 | Conn_01x02 | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical_SMD_Pin1Right | J18, J19 |
| 2 | Conn_01x04 | Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_Vertical | J10, J11 |
| 2 | Conn_01x06 | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | J8, J9 |
| 2 | LED | LED_SMD:LED_0603_1608Metric | D1, D2 |
| 2 | WS2812B | LED_SMD:LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mm | D3, D7 |
| 1 | 100 | Resistor_SMD:R_0603_1608Metric | R18 |
| 1 | 10u | Capacitor_SMD:C_0603_1608Metric | C3 |
| 1 | 1k | Resistor_SMD:R_0603_1608Metric | R17 |
| 1 | 2k | Resistor_SMD:R_0603_1608Metric | R1 |
| 1 | 3k | Resistor_SMD:R_0603_1608Metric | R2 |
| 1 | AP1117-33 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U2 |
| 1 | ATmega328P-A | Package_QFP:TQFP-32_7x7mm_P0.8mm | U1 |
| 1 | CON_AVRISP | Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Vertical | CN1 |
| 1 | CON_GROVE | akita:CON_GROVE_H_roundPad | CN2 |
| 1 | Conn_01x02 | Connector_JST:JST_PH_B2B-PH-K_1x02_P2.00mm_Vertical | J1 |
| 1 | Conn_01x06 | Connector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_Vertical | J2 |
| 1 | Conn_01x40 | akita:CON_microbit_cardedge_V_SMD | J3 |
| 1 | Jumper_2_Open | Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm | JP1 |
| 1 | SENSOR_VEML6040 | akita:OPLGA-4 | U7 |
| 1 | SW_SPDT | akita:SW_SK-12D11VG3 | SW1 |
| 1 | TR_NMOS_IRLML6344 | Package_TO_SOT_SMD:SOT-23 | Q1 |
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 mm

- 2 layers90 × 86 mm

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 mm

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 mm

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 mm

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 mm

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 mm

- 2 layers185 × 83 mm

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