Updated the diagram for the 'on' and 'off' touch button MOSFET added.
formatting link
This MOSFET is in a funny place, between the 2 batteries, this is to get enough drive once it is on. The BLACK button bridges the MOSFET, this starts the boost converter, then the PIC comparator senses if the battery is higher than 2.0V, if so it gives +5V to the MOSFET gate, and the system stays on. If not, releasing the black button disconnects the battery again. The RED button shorts the MOSFET gate against the source, this cuts the power, the boost converter stops, and the +5V drive to the MOSFET becomes 0V, and things stay off.
I added some info on that mysterious current transformer: primary 1 turn (loop through). secondary 11 turns. Load resistor 5 Ohm. No idea what the core material is, but I have a lot of those, for $$$$$$$$$$$$$$$$$$$++ a piece I am willing to part from these, but I could tell you where I got those from for much less. To put an end to speculations about waveforms that I do not understand, here is the voltage over the 5 Ohm load resistor of the current transformer versus the MOSFET drain voltage, externally triggered from the gate drive:
formatting link
So the trace timing shown is the real timing.
You can see that when the MOSFET is ON, so the rectangular waveform low, the current in the drain *sorry in the inductor* almost linearly rises with time, until it reaches the PIC comparator's reference voltage causing the gate drive to reverse, and the MOSFET goes off, and its drain voltage goes high.
The little spikes on the triangular wave are mostly scope probe pick up as it was sitting against the 33 uH inductor.
It is altogether a nice clean switch with just a little bit of RF on the start of the ON waveform, considering also the rather 'free' layout, then this is REALLY good:
formatting link
The PIC is in the programmer in this picture, just with 3 extention pins, to tap the RS232. The software turned out to be correct, no changes from the last release,
formatting link
Battery and output voltage display correctly via RS232.
formatting link
The '491' is debug output, comment out line 1599 to 1609 to disable it. PWM max is fixed, but can be set via RS232 with PnnnENTER PWM is always the same as PWMmax after soft start ends.
This is it folks, hope it is of use to you. Those who want to prove it does not work, I am sure I will hear about it :-)