Skip to content

Voltage Sensor handler #191

@k3ldar

Description

@k3ldar

The handler assumes a 10-bit ADC full-scale of 1024 and defaults vref to 5.0 V. On ESP32 Arduino, analogRead() is typically 12-bit by default and the ADC reference/scale is not 5.0 V, and this repo does not appear to call analogReadResolution()/equivalent. This will produce incorrect voltage calculations unless the ADC resolution and reference are configured elsewhere. Consider making full-scale and reference explicit per platform (or deriving from the configured resolution / using an ESP32 API that returns millivolts).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions