Lesson Pack Details
- This is a lesson pack of 4 lessons in total. When you send the request for the first lesson, points for all 4 lessons will be deducted at once.
- Once the tutor confirms the first request, “100% OFF coupons” that can be used for the remaining 3 requests will be issued automatically.
- You can use these coupons to send requests for the remaining lessons.
- The validity period for this lesson pack is 60 days starting from the scheduled date and time of the first confirmed lesson.
Even if the first scheduled lesson is canceled, the already set validity period will not change.
You can check the lesson pack’s validity period on the Request > Lesson Pack page.
Description
【こちらは4回セットになったレッスンパックです】
レッスンの内容
このレッスンでは命令セットを極限まで削ぎ落としたミニCPUを作り、マイコン上で動作させることでコンピュータがなぜ動くのか?どうやって動いているかについて学びます。
「ミニCPUを作る」というとびっくりされる方もいるかもしれませんが、このレッスンで作るCPUは Python で実装する仮想CPUです。
作る命令は8個だけ、コードにして100行ちょっとです。
これだけでCPUが作れてしまうというのは驚きではありませんか?
レッスンではCPUを作るだけでなくそれをRaspberry Pi Pico2 というマイコンに載せて基板上で動かします。
自分で作ったCPUが基板の上で動いてボタンに反応する様子などを観察することで、CPUは魔法ではなくて技術なんだということを体験していただきます。
なんで8個の命令でいいのか、など動作原理についての解説も盛り沢山です。
一緒に工作しながらコンピュータの動作原理を学びましょう。
作成例

レッスンの流れ
- CPUってなんだろう ... まずは座学です。CPUとは何をするものなのかを原理からしっかり学びましょう
- Brainf*ck言語とチューリング機械 ... 作成するミニCPUの命令セットとしてBrainf*ck言語を採用します。Brainf*ck言語について学びましょう
- Brainf*ck言語の実装 ... まずはPC上で動くBrainf*ck言語を作ります
- Raspberry Pi Pico 2の準備 ... マイコンボードのセットアップを行います
- Raspberry Pi Pico 2の使い方 ... マイコンボードの基本的な使い方を学びましょう
- Raspberry Pi Pico 2へのBF機械の実装 ... 開発したミニCPUをマイコンボード上で動かしましょう
レッスンキーワード
- 計算, 計算機
- チューリング機械
- CPU, アセンブラ
- Brainf*ck
- 仮想マシン
- Fetch-Decode-Execute
- シングルボードマイコン
- Raspberry Pi Pico 2
- MicroPython
前提知識
Pythonを学んだことがあること(変数, if文, for文, リスト, 関数の定義)
教材
資料はレッスンのときにお渡しします。
Raspberry Pi Pico 2およびその他必要なパーツ類は別途ご購入をお願いします。
※必要なパーツの具体的なリストや推奨購入先は、お申し込み後に事前準備資料(0章)をお渡しします。
その他
- 単発レッスンもご用意しております。
- 初めての方は「はじめましてレッスン」のご受講をお願いいたします。
This tutor's cancellation policy
Cancellation of pack lessons
(2) A lesson pack with at least one confirmed request. (By confirming the date and time for the first lesson in the pack the tutor confirms the pack as a whole and coupons are automatically issued)
Cancelling individual requests in a pack
Before request is confirmed (fixed)
- Cancellation possible at any time without charge.
After request is confirmed (fixed)
- Less than 24hours before lesson start time.→ 100% of price charged.
- No-Show→ 100% of price charged.