Inside the ALDI/Ferrex 20/40V battery charger (Patreon)
Content
Most of the work in this charger is done by a dedicated chip that may be a standard microcontroller with custom numbering.
There are some possible identification clues. Pins 1 and 3 are 0V and pin 2 is 5V. The first ten pins of the 20 pin chip may be largely comparator pins, since that side seems to deal with current and voltage monitoring and control, with the power supply's opto feedback possibly coming directly from a comparator.
This was super-frustrating to reverse engineer due to the thick and hard layer of conformal coating on the surface mount components. Very intermittent connections, even with very sharp probes. Extra exciting when probing for voltages with the board live. The lack of data on the chip deterred me from trying to draw a schematic, as it would involve lots of vague resistor and capacitor networks.