added initialisation for AVR controller