I had an issue using an Arduino Nano to investigate simple RC circuits. The capacitor would not fully charge to the supply voltage. I assumed it was something to do with the digital pin circuit on the Arduino so I set up the RC circuit with a 1.5V battery. Same issue.
Here's what I found. Caps are ceramic non-polarised.
100 ohm + 10nf = charged to 1.2 Volts
100 ohm + 100nf = charged to 1.2 Volts
110K ohm + 100nf = charged to 900 mV
1M ohm + 100nf = charged to 650 mV (this was the original circuit analysed with a 1-second pulse from the Arduino) 650 mV charge after 400ms, which is about right for the time period.
I am using a standard breadboard and a 6022 Hantek PC oscilloscope. My voltmeter confirms the same charged voltage results.
Why does the capacitor not charge to supply voltage with high resistance values? Any clues?