アナログ入力 - ハードウェア

注釈

This section covers analog input hardware. For a software guide to analog inputs, see Analog Inputs - Software.

An analog signal is a signal whose value can lie anywhere in a continuous interval. This lies in stark contrast to a digital signal, which can take only one of several discrete values. The roboRIO's analog input ports allow the measurement of analog signals with values from 0V to 5V.

In practice, there is no way to measure a "true" analog signal with a digital device such as a computer (like the roboRIO). Accordingly, the analog inputs are actually measured as a 12-bit digital signal - however, this is quite a high resolution [1].

Analog inputs are typically (but not always!) used for sensors whose measurements vary continuously over a range, such as ultrasonic rangefinders and potentiometers, as they can communicate by outputting a voltage proportional to their measurements.

Connecting to roboRIO analog input ports

注釈

さらに4つのアナログ入力が「MXP」拡張ポートから利用可能です。 これらを使用するためには、MXPに接続するブレイクアウトボードのようなものが必要です。

警告

センサーの配線を行う前に、必ず使用するセンサーの技術仕様書を参照し、各ピンに正しいワイヤが接続されていることを確認してください。 センサーやRIOが損傷する可能性があります。

警告

Never directly connect the power pin to the ground pin on any port on the roboRIO! This will trigger protection features on the roboRIO and may result in unexpected behavior.

The roboRIO, with the location of the Analog Inputs highlighted.

roboRIOには、上の画像にあるように、4つのアナログ入力ポート (0-3の番号) が内蔵されています。 各ポートには、信号 ("S") 、電源 ("V") 、グランド ("⏚") の3つのピンがあります。 「POWER - 電源」 と「グランド」ピンは、アナログ入力ポートに接続する周辺センサーの電源として使用されます。 「POWER - 電源」 と 「GROUND - グランド」 ピンの間には、一定の5Vの電位差があります [2]. 信号ピンは、実際に信号が測定されるピンです。

センサーを、1つのアナログ入力ポートに接続する場合

注釈

Some sensors (such as potentiometers) may have interchangeable power and ground connections.

Most sensors that connect to analog input ports will have three wires - signal, power, and ground - corresponding precisely to the three pins of the analog input ports. They should be connected accordingly.

Hooking a ADXL193 single axis accelerometer to an analog input on the roboRIO.

複数のアナログ入力ポートにセンサーを接続する

Some sensors may need to connect to multiple analog input ports in order to function. In general, these sensors will only ever require a single power and a single ground pin - only the signal pin of the additional port(s) will be needed. The image below is shows an analog accelerometer that requires three analog input ports, but similar wiring can be used for analog sensors requiring two analog input ports.

Hooking a triple axis accelerometer to three different analog input channels of the roboRIO.

脚注