How about it? Experiments of the third kind , take 999999. Update opamp and PIC power supply design: part 1
PNP --------------------------- e c--------------------------------------------------------------- + 3.5V +/- 1mV @ 20mA noise free to PIC and EEPROMS. | | b Q1 | | | |
+4 to + 8 V | | | | | | | | | R1 | | | [ ] 40k | | [ ] 100k | | | | | | | | | | + | +2.5V | === 470u | +2.1V c c / |------|--------- | --- |------ b NPN NPN b-----< | | +2.5V | MCP1525 | | | | e Q2 e Q3 \ |------)-------------| |-----| | --- | | 1/4 | | | | | | | \ /-> ------ TCL274| | |
--------- | | --- LED | | | === | === | | green [ ] 1k | [ ] | 1u | --- 470u | | | R2 | | 100k | | |
-------------------------------------------------------------------------------------------------
Transistors: PNP BC557B, NPN BC548B. The 'Tim' capacitor from the opamp output to its - input is missing, even a small one ruins step load recovery. There is LF noise from the the CMOS opamp on its output, looks like audio, but is really just noise in the audio range, and it does not bother me a bit. The rather large output caps maybe help too. The MCP1525 is a Microchip 2.5V precision reference.
Some people here do not like PNP low drop out regulators or so I have read. Reason ? Dunno. I never had stability problems with those. This circuit drops out at about 3.80 V input, it will be fed from 4 alkaline AA batteries in series, those I consider 'flat' at 1V, makes >=4 V input. IF those are 'fresh' and 1.8V we have 7.2V input maximum. I tested up to 15 V input and the output stays within the accuracy of my meters (1mV here)>
And 100 % stable. So this will be used to power the opamp (it is shown here how it is on the regulated supply it is helping to make itself, and the PIC (ADC reference is taken from internal PIC reference). All this should assure some stability. I have not draw the connection to the battery, as there is more in there, like a big IRLZ34N MOSFET switch that automatically switches in the battery when the input voltage from the wallwart AC/ DC adaptor fails (mains failure detector). The load on the opamp is about beta x R2, say 300k, not a big deal heating the opamp, so it should not affect the other 3 amplifiers in the opamp.
The LED is used as 2.1V (or there about) reference for the opamp to work against. That voltage, minus .7V for Vbe, divided by R2 sets the maximum base current in Q1 (about 1.4mA), The circuit is not short circuit proof, and does not need to be, Q1 will fail during a short circuit as it cannot do 350mA and the associated power. Battery will be fused, in case of a short the experiment ends early anyways, no more valid data, but what was collected will be in EEPROM.
A lot of circuit for 3.5V @ 20mA... :-)