Because a voltage divider reduces the voltage, the ADC value must be scaled back up in the simulation code. $$V_actual = \fracADC_Value \times V_ref1023 \times \fracR_1 + R_2R_2$$
This guide covers three methods to simulate voltage sensing: using the built-in , using the Arduino approach (common in updated libraries), and creating a Hardware Model .
Because a voltage divider reduces the voltage, the ADC value must be scaled back up in the simulation code. $$V_actual = \fracADC_Value \times V_ref1023 \times \fracR_1 + R_2R_2$$
This guide covers three methods to simulate voltage sensing: using the built-in , using the Arduino approach (common in updated libraries), and creating a Hardware Model .