danjperron wrote:It would be nice to have your github url.
https://github.com/oh7bf/RaspiPwr12V/bl ... pwr12V.pdf
The bipolar transistor is turned on from PIC GP5 for the voltage measurement. After the voltage measurement the GP5 is set to zero to reduce the power consumption. Otherwise there would be a current of 2 - 3 mA flowing permanently via R3 to ground. The transistor base current is much smaller about 10 uA. This circuit will not work correctly close to zero input voltage. You can simulate it in Spice to see the response. It is simple and cheap but then nobody can say that the circuit is over-engineered.
I want to experiment also with a low clock frequecy I2C bus to see how far it can reach. Have tried only few meters so far.
I have some PIC12F1840 too, but have not found yet time for them. It has some interesting features and about 400 pages of datasheet
