AVR based device