Map Range Analog: Difference between revisions

From Visuino
Jump to navigation Jump to search
Created page with "Image:TArduinoMapRangeAnalog.png == Summary == Maps an analog input from one range to another output range, including negative ranges and reversed scaling. == Description == The Map Range Analog component scales an input analog signal from a defined input range to a specified output range. You can set any values for both the input and output ranges, including negative numbers. It also supports “reverse” mapping, where the input range is larger than the outp..."
 
(No difference)

Latest revision as of 04:12, 8 September 2025

File:TArduinoMapRangeAnalog.png

Summary

Maps an analog input from one range to another output range, including negative ranges and reversed scaling.

Description

The Map Range Analog component scales an input analog signal from a defined input range to a specified output range. You can set any values for both the input and output ranges, including negative numbers. It also supports “reverse” mapping, where the input range is larger than the output range, or where the output decreases as the input increases. This makes it extremely flexible for adapting sensor values to actuators, normalizing signals, unit conversions, or inverting control responses.

    • Examples:**
  • Input Range: 0 to 1023, Output Range: 0 to 5 → Converts a 10-bit ADC value to voltage.
  • Input Range: -1 to 1, Output Range: 0 to 100 → Maps normalized signal to percentage.
  • Input Range: 0 to 5, Output Range: 5 to 0 → Inverts the input signal.

Diagram:

Properties

  • Enabled – Enables or disables the mapping operation.
  • Input Range – Maximum and minimum expected input values (can be positive or negative).
  • Output Range – Maximum and minimum output values (can be positive or negative, reversed, or scaled).

Pins

Input Pins

  • In (analog) – Analog input signal to be mapped.

Output Pins

  • Out (analog) – Scaled analog output according to the configured input and output ranges.

Categories