As promised, some pictures. sorry that it took some time, but I had to dismount the whole thing for this. First, see the hole I mounted on the bottom of the inside housing for the USB connector:
This USB connector is part of the step up converter pcb, so all I had to do is glue that PCB with hot-melt in the right position as shown below: (sorry it can be done much cleaner and I used quite too much hot melt
From this PCB the two power wires are led though the left side to the top, where the battery compartment is mounted:
If you look at the battery compartment you will see the minus connector for the battery in front and the plus wire at the back. These connection points are soldered directly to the PCB using a metal pin.
Since you have to mount a diode from the battery to the PCB to avoid them being (over)charged all the time, I decided to cut the connection pin from the negative battery connection and bend it away because that was the easiest . There I soldered diode D1 between the battery pin and the cat flap PCB. From that same point on the PCB I soldered the other (D2) diode as well, that is connected to the blue minus wire to the step up converter. (see the red circle on the photo above) Notice the diode was fitted in a heat shrink tube to avoid short circuits.
See the schema below: (notice the diode direction. if you decide to cut the plus instead, you should mount diodes in reverse) D1 will protect the batteries from overloading, D2 will protect the batteries from discharging over the step up PCB when no USB power is applied.
When you tune the power to be exactly 6v on the plus and minus on the Catflap PCB, the sensors will work correctly. Tuning is done with the small screw on the step up pcb. tune the pcb to 7v before mounting and fine tune it when mounted.
When the USB power fails, batteries will automatically take over. because of the slight power drop over diode D1, the batteries will power the PCB with just enough to function, but the low battery indicator will be activated. I found that quite useful, when my wife had by accident disconnected the USB charger