Has anyone had the opportunity to measure the ACS758 current?
- platform: adc
id: "prad_silnikow_trackera"
name: "Prąd Silników trackera ADC0"
update_interval: 250 ms
# unit_of_measurement: "A"
pin: GPIO36
filters:
- median:
window_size: 8
send_every: 2
send_first_at: 2
# attenuation: auto
# accuracy_decimals: 3
I forget that ESP32 measures 0-1V, but I practically see no change in voltage
I found How To Measure Current Using XIAO ESP32 And ACS758 Sensor | A Step By Step Guide - Open Green Energy
and I don’t see any pullup resistor and the voltage is around 0.4V
The question is how to define it
const float VOLTAGE_REFERENCE = 3.3; // Change to 5 if using 5V VCC
const float SENSITIVITY = 0.04; // 40mV/A -Sensitivity of ACS758 (check the datasheet for your ACS758 model)
const float OFFSET_VOLT = VOLTAGE_REFERENCE / 2; // Zero-current output voltage ( Offset Voltage)