P.
Size: a a a
P.
DA
DP
P.
DA
DA
DS
adc_voltage = ADC * 3.3 / (1 << 12)
;
А так получаете напряжение на входе делителя:divider_value
= (R1 + R2) / R2;
voltage_full = adc_voltage * divider_value;
DS
DA
adc_voltage = ADC * 3.3 / (1 << 12)
;
А так получаете напряжение на входе делителя:divider_value
= (R1 + R2) / R2;
voltage_full = adc_voltage * divider_value;
DA
u
DA
uint32_t currentCurrentVoltage = analogRead(PA7);
float adcVoltage = (currentCurrentVoltage * 3.3) / 4095.0;
float inputCurrent = (adcVoltage - 2363) / 66;
DA
adcValue = analogRead(currentPin);
adcVoltage = (adcValue / 1024.0) * 5000;
currentValue = ((adcVoltage – offsetVoltage) / sensitivity);
DS
D
DA
DS
uint32_t currentCurrentVoltage = analogRead(PA7);
float adcVoltage = (currentCurrentVoltage * 3.3) / 4095.0;
float inputCurrent = (adcVoltage - 2363) / 66;
D
adcValue = analogRead(currentPin);
adcVoltage = (adcValue / 1024.0) * 5000;
currentValue = ((adcVoltage – offsetVoltage) / sensitivity);
DA
DS