10-29-2024, 05:45 PM
Hello,
Any solution for this issue? I have the same problem with esphome, ADC input of my A16 board (on all channel) shows right voltage up to 3.145V, no more.
It works perfect in range 0 - 3.145V, it shows right value. Above 3.14V it shows still 3.14V.
I used very simple code:
sensor:
- platform: adc
pin: 39
name: "A4 Voltage"
update_interval: 1s
unit_of_measurement: V
attenuation: 11db
I think it depends on attenuation value. With attenuation: 0, it works only up to 1.1V. According to documentation, attenuation can be set to this values: 0db, 2.5db, 6db, 11db, 12db, auto, but nothing works correctly in range 0-5V.
Thanks for any observations.
M.
Any solution for this issue? I have the same problem with esphome, ADC input of my A16 board (on all channel) shows right voltage up to 3.145V, no more.
It works perfect in range 0 - 3.145V, it shows right value. Above 3.14V it shows still 3.14V.
I used very simple code:
sensor:
- platform: adc
pin: 39
name: "A4 Voltage"
update_interval: 1s
unit_of_measurement: V
attenuation: 11db
I think it depends on attenuation value. With attenuation: 0, it works only up to 1.1V. According to documentation, attenuation can be set to this values: 0db, 2.5db, 6db, 11db, 12db, auto, but nothing works correctly in range 0-5V.
Thanks for any observations.
M.