Dead Zone Scaled Analog(Map)

From Visuino
Jump to navigation Jump to search

File:TArduinoDeadZoneScaledAnalog.png

Summary

Maps an analog input to an output range while ignoring a small “dead zone” around a center value.

Description

The Dead Zone Scaled Analog (Map) component processes an analog input, scaling it to a specified output range while ignoring a small input zone near the center. This dead zone prevents small input fluctuations from affecting the output, which is useful for joystick inputs, sensor noise filtering, or precision control applications.

Diagram:

Properties

  • Enabled – Enables or disables the mapping operation.
  • Input Range – Maximum and minimum expected input values (default Max: 1, Min: 0).
  • Input Zone Center Value (default 0.5) – Center of the dead zone where input is ignored.
  • Input Zone Span (Size) (default 0.1) – Width of the dead zone around the center value.
  • Output Range – Maximum and minimum output values (default Max: 1, Min: 0).

Pins

Input Pins

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

Output Pins

  • Out (analog) – Mapped analog output with dead zone applied.

Examples

  • A joystick input with values from 0–1 can be mapped to a motor output 0–5V, with a dead zone of ±0.05 around 0.5 to prevent jitter near center.
  • A throttle potentiometer input 0–3.3V mapped to 0–100% PWM output, ignoring small variations around mid-position (dead zone 0.1).
  • An analog sensor input 0–1023 mapped to 0–1 normalized output, with ±50 units around 512 ignored to reduce noise.

Categories