Hello, thank you for your opinion, only the procesor is heating when 5v applied.
When it's turned on on 36v battery, the lm317 and the big resistor is heating. When it's not connected to battery, just 12v on the output of lm317, then the 5v regulator is heating, and when I connect 5v on the...