I'm not an experienced tech guy but I have some knowledge about electronics and I come to you trying to get some help on fixing a nail polish machine that my wife managed to fried it by plug in the DC adaptor (12v) into the pedal socket. I tried to get some help from the manufacturer (or seller) but without success so I have tried to do some "reverse-engineering" by drawing the schematic of the circuit (attached). In fact, the circuit is controlling the speed and direction of a brushed DC motor (with a speed of up to 30k rpm).
I have identified then most of the parts with the exception of the 14pins IC which I think is the controller. There is nothing written on it but based on pin connections it looks like a tinyavr.
Can anybody help me with a solution to fix this?
Thank you very much,