I have a board with the ATmega32U4 MCU that comes preprogrammed with ATMEL bootloader and i want it to be Arduino compatible but in a low power mode (board current consumption <1mA @3V).
PS-The board has the 3x2 pins ISP pads (MOSI, MISO, CLK, RESET, VCC, GND) to connect a programmer. I have an AVR mkII programmer and I intend to use it only one time to lower the consumption. Then I want to use a micro USB connector to change the Arduino sketches.
Hardware I have: ATmega32U4 and it’s 0.1uF capacitors and a 16MHz external ressonator (+ 2x 22pF caps).
I’ve been searching and I know I have to change the fuses to prevent the brown-out-reset (BOR) when the battery is lower than a certain voltage. I’d also have to change the CLK bits to divide the 16MHz crystal into a lower frequency mode to consume less energy.
I found this webpage to change the fuses: http://www.engbedded.com/fusecalc?P_PREV=&P=ATmega32U4&O_PARTSEL=Select
I just don’t know how to do this in Arduino or Avrdude and if by doing this bootloader change the board would still be recognized in the Arduino 1.0 program (boards sections - like a Leonardo variant 8MHz for example).
Does anyone know how to burn the ATmega32u4 board with a low power caterina-leonardo version bootloader, keeping the Arduino compatibility?