
At gpio pin I want 2.7VYou need to measure the current. Without 2 of the 3 values, the other cannot be found. Volts (E), Current (I) and resistance (R).
Then R=E/I
Look up Ohms law.
View attachment 329602
Some folk use "V" instead of "E", and "P" in place of "W".
By the way, your voltages in the diagram don't add up. Do you want 3.1V to the port pin?