ADC2_VREF routed to a gpio pin lowers voltage 10mv under a ~800K Ohm load
Posted: Mon Sep 07, 2020 3:08 am
I want to use ADC2 VREF as the voltage source for a divider circuit that I will then read with ADC1. I use the following to accomplish the routing of the vref to the gpio.
When this pin is floating the voltmeter reads it at 1.112 but reads at 1.102 when I attach two voltage divider circuits that are about 1.56M OHMS each so about 800K Ohms from gpio25 ==> Ground . I have a unity gain op amp to make sure that reading by the ADC should not impact the circuit. Is it inadvisable to apply any load to this pin when the adc2_vref is routed to it? Should I just add another op amp at the output of gpio25?
Code: Select all
esp_err_t status = adc2_vref_to_gpio( GPIO_NUM_25);