Engee documentation

Arduino-analogRead

Reading the analog pin data.

blockType: CFunction

Path in the library:

/Interfaces/Targets/Arduino/Arduino-analogRead

Description

To work with the block, install/update the support package. equipment.

Block Arduino-analogRead It is used to read the analog pin data, converting it to a digital value with bit depth 10 bit (by default).

Ports

Output

# OUT_1 — the digital value of the pin voltage
scalar

Details

The value of the voltage from the transmitted pin, the value from 0 before 1024.

Data types

UInt32

Complex numbers support

No

Parameters

Main group

# Номер канала: — the number of the pin being read

Details

The PIN from which the voltage is read.

Default value

6

Program usage name

m_pin

Tunable

No

Evaluatable

Yes

# Шаг расчёта: — the period from which the block will be called

Details

Specify the interval between the calculation steps as a non-negative number. To inherit the calculation step, set this parameter to −1.

Default value

-1

Program usage name

sample_time

Tunable

No

Evaluatable

Yes