Block:Analog input
Read analog values from a pin.
Applications:
- Ambiant temperature measurement with a TMP36 sensor
- A simple control with a potentiometer
Example with a potentiometer:
- with the 'name': 'pot1'
- connected to 'analog pin' '1' (or any other pin you chose)
Digital values will be returned in the variable 'pot1' and can be used:
- in Block:Rule as a variable in a rule
- for displaying on a Screen
- in Telemetry
Infocard
Analog input for reading ADC values.
Property | Description |
---|---|
Disabled | To disable or enable this block. |
Name | The name of this block. |
Analog pin | Pin number. Specify as: <number>. For example: 5 |
Controller | Specify the controller number to which the input is connected. If unsure or using the default, leave this field blank. |
Comment | To optionally enter a comment. It does not impact the generated firmware. |