Power supply with voltage and current stabilisation based on AVR microcontroller with some other functionality