I am trying to replace a voltage regulator - the chip has 3-pins (2 on one side, and 1 on the other) and is marked as 15P. It is also marked with NH (or HN) rotated 90 degrees along the short side. I believe it is 3.3 volt output and likely the max input is around 7 volts. Chip measures 1.4 x 2.9 mm.
_________
| 15P |
|_________|
I have a second board that is not broken so I have added two pictures:
The first picture (can see 15P on the chip) shows the top pin connected to the +ve of the battery and the lower two pins connected to a resistor on the other side of the board. The resistor is shown in the second picture.