入力、出力、現実世界
センサーが世界を読み取り、アクチュエーターが変化を起こす仕組みを学びます
「入力、出力、現実世界」はCoddyKit上の無料Arduino & IoT Academyレッスンです。 これはレッスン3/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはArduino & IoT Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 Arduino & IoT Academyコースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
Two Directions
Every Arduino project is built from two flows: information coming in from the world, and signals going out to change it. 🙂
Inputs Bring Data In
An input is anything that tells your board about its surroundings, like a button being pressed or a room getting warmer.
Sensors Read the World
A sensor is an input device that measures something real, heat, light, or distance, and hands your board a number.
Outputs Push Action Out
An output is how your board changes the world: lighting an LED, spinning a motor, or beeping a buzzer.
Actuators Do the Doing
An actuator is an output that creates physical action, like a motor that moves or a speaker that makes sound.
Pins Carry Both
The same Arduino pins handle both jobs. You simply tell each pin in code whether it should listen or speak.
Setting a Pin's Role
You declare a pin's direction with one command. Here pin 13 is set up as an output so it can drive an LED.
pinMode(13, OUTPUT);Reading an Input
To listen instead, you read a pin's value. This grabs the state of a button wired to pin 2 so your code can react.
int state = digitalRead(2);The Loop That Joins Them
The magic is connecting them: read an input, decide, then drive an output. That tiny chain is the core of every gadget.
A Familiar Example
A motion light reads a sensor for movement, then drives a lamp on. Input in, output out, just like you'll build.
Why It Matters
Master inputs and outputs and you can build almost anything. Every project you'll make is just a clever mix of these two.
Quick Check
Let's sort inputs from outputs.
Recap
Inputs and sensors bring data in; outputs and actuators push action out. Read, decide, act, that loop powers every device. 🔁
よくある質問
「入力、出力、現実世界」レッスンは無料ですか?
はい。「入力、出力、現実世界」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、Arduino & IoT Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 Arduino & IoT Academyコースには全4レッスンが含まれています。
「入力、出力、現実世界」で何を学びますか?
センサーが世界を読み取り、アクチュエーターが変化を起こす仕組みを学びます ブラウザで直接実行するハンズオンコードでArduino & IoT Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
Arduino & IoT Academyを始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのArduino & IoT Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン3/4です。
「入力、出力、現実世界」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このArduino & IoT Academyレッスンでコードを書いて実行できますか?
はい。すべてのArduino & IoT Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。