デジタル信号とアナログ信号
オン・オフと滑らかな値の範囲の違いを学びます
「デジタル信号とアナログ信号」はCoddyKit上の無料Arduino & IoT Academyレッスンです。 これはレッスン1/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはArduino & IoT Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 Arduino & IoT Academyコースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
Two Kinds of Signal
Electronics speak in two languages. A digital signal is simple on or off, while an analog one varies smoothly. Both matter in your projects.
Digital Means On or Off
A digital signal has only two states: HIGH or LOW, like a light switch. There is nothing in between, just yes or no.
Analog Means a Range
An analog signal can be any value across a range, like a dimmer slowly fading a lamp from off to full brightness.
The Real World Is Analog
Temperature, light, and sound never jump between two values. They flow smoothly, so the real world is mostly analog by nature.
Voltage Carries the Value
On an Arduino, an analog reading is really a voltage between 0V and 5V. A higher voltage simply means a higher value.
A Button Is Digital
A push button is the perfect digital input. It is either pressed or not, so you read it as HIGH or LOW with digitalRead.
A Knob Is Analog
A turning potentiometer sends a smoothly changing voltage. Turn it slowly and the value glides, so you read it as analog.
Different Pins for Each
The Uno keeps them separate. Digital pins are labeled D0 to D13, while the analog input pins are labeled A0 to A5.
Two Functions to Read
You match the function to the signal: digitalRead for on or off pins, and analogRead for the smooth analog inputs.
int btn = digitalRead(2);
int knob = analogRead(A0);Analog Gets Digitized
Your chip cannot truly feel a smooth voltage. An ADC converts that analog voltage into a number the code can use.
Why the Difference Matters
Choosing the right type avoids bugs. Read a sensor with analogRead and a switch with digitalRead, and your data stays correct.
Quick Check
Which input belongs to the analog world?
Recap: Digital vs Analog
You learned that digital is on or off while analog is a smooth range. Buttons are digital, knobs are analog. Match the read function to each.
よくある質問
「デジタル信号とアナログ信号」レッスンは無料ですか?
はい。「デジタル信号とアナログ信号」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、Arduino & IoT Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 Arduino & IoT Academyコースには全4レッスンが含まれています。
「デジタル信号とアナログ信号」で何を学びますか?
オン・オフと滑らかな値の範囲の違いを学びます ブラウザで直接実行するハンズオンコードでArduino & IoT Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
Arduino & IoT Academyを始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのArduino & IoT Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン1/4です。
「デジタル信号とアナログ信号」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このArduino & IoT Academyレッスンでコードを書いて実行できますか?
はい。すべてのArduino & IoT Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。