Difference between revisions of "Custom RBOT Board"
m (Daniel moved page Custom Board to Custom RBOT Board without leaving a redirect) |
|||
Line 1: | Line 1: | ||
Sometimes you will not find an Arduino board that fits the needs of your projects and you might want to use a different Atmel microcontroller. In this section we will explain how to integrate your custom board into the Arduino IDE so that you can use it to program it. | Sometimes you will not find an Arduino board that fits the needs of your projects and you might want to use a different Atmel microcontroller. In this section we will explain how to integrate your custom board into the Arduino IDE so that you can use it to program it. | ||
+ | |||
+ | |||
+ | Add this text to the end of the board.txt file found at the ''arduino_installation_directory/hardware/arduino/avr'' directory: | ||
+ | <pre> | ||
+ | ############################################################## | ||
+ | |||
+ | rbot.name=RBOT | ||
+ | |||
+ | rbot.upload.tool=avrdude | ||
+ | rbot.upload.protocol=arduino | ||
+ | |||
+ | rbot.bootloader.tool=avrdude | ||
+ | rbot.bootloader.unlock_bits=0x3F | ||
+ | rbot.bootloader.lock_bits=0x0F | ||
+ | |||
+ | rbot.build.board=AVR_PRO | ||
+ | rbot.build.core=arduino | ||
+ | rbot.build.variant=special | ||
+ | |||
+ | ## Arduino Pro or Pro Mini (3V, 1 MHz) w/ ATmega328 | ||
+ | ## ------------------------------------------------- | ||
+ | rbot.menu.cpu.1MHzatmega328=ATmega328 (3V, 1 MHz) | ||
+ | |||
+ | rbot.menu.cpu.1MHzatmega328.upload.maximum_size=30720 | ||
+ | rbot.menu.cpu.1MHzatmega328.upload.maximum_data_size=2048 | ||
+ | rbot.menu.cpu.1MHzatmega328.upload.speed=57600 | ||
+ | |||
+ | rbot.menu.cpu.1MHzatmega328.bootloader.low_fuses=0x62 | ||
+ | rbot.menu.cpu.1MHzatmega328.bootloader.high_fuses=0xD9 | ||
+ | rbot.menu.cpu.1MHzatmega328.bootloader.extended_fuses=0x07 | ||
+ | rbot.menu.cpu.1MHzatmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex | ||
+ | |||
+ | rbot.menu.cpu.1MHzatmega328.build.mcu=atmega328 | ||
+ | rbot.menu.cpu.1MHzatmega328.build.f_cpu=1000000L | ||
+ | |||
+ | ## Arduino Pro or Pro Mini (3V, 8 MHz) w/ ATmega328 | ||
+ | ## ------------------------------------------------- | ||
+ | rbot.menu.cpu.8MHzatmega328=ATmega328 (3V, 8 MHz) | ||
+ | |||
+ | rbot.menu.cpu.8MHzatmega328.upload.maximum_size=30720 | ||
+ | rbot.menu.cpu.8MHzatmega328.upload.maximum_data_size=2048 | ||
+ | rbot.menu.cpu.8MHzatmega328.upload.speed=57600 | ||
+ | |||
+ | rbot.menu.cpu.8MHzatmega328.bootloader.low_fuses=0xE2 | ||
+ | rbot.menu.cpu.8MHzatmega328.bootloader.high_fuses=0xD9 | ||
+ | rbot.menu.cpu.8MHzatmega328.bootloader.extended_fuses=0x07 | ||
+ | rbot.menu.cpu.8MHzatmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex | ||
+ | |||
+ | rbot.menu.cpu.8MHzatmega328.build.mcu=atmega328 | ||
+ | rbot.menu.cpu.8MHzatmega328.build.f_cpu=8000000L | ||
+ | </pre> |
Revision as of 17:49, 13 April 2016
Sometimes you will not find an Arduino board that fits the needs of your projects and you might want to use a different Atmel microcontroller. In this section we will explain how to integrate your custom board into the Arduino IDE so that you can use it to program it.
Add this text to the end of the board.txt file found at the arduino_installation_directory/hardware/arduino/avr directory:
############################################################## rbot.name=RBOT rbot.upload.tool=avrdude rbot.upload.protocol=arduino rbot.bootloader.tool=avrdude rbot.bootloader.unlock_bits=0x3F rbot.bootloader.lock_bits=0x0F rbot.build.board=AVR_PRO rbot.build.core=arduino rbot.build.variant=special ## Arduino Pro or Pro Mini (3V, 1 MHz) w/ ATmega328 ## ------------------------------------------------- rbot.menu.cpu.1MHzatmega328=ATmega328 (3V, 1 MHz) rbot.menu.cpu.1MHzatmega328.upload.maximum_size=30720 rbot.menu.cpu.1MHzatmega328.upload.maximum_data_size=2048 rbot.menu.cpu.1MHzatmega328.upload.speed=57600 rbot.menu.cpu.1MHzatmega328.bootloader.low_fuses=0x62 rbot.menu.cpu.1MHzatmega328.bootloader.high_fuses=0xD9 rbot.menu.cpu.1MHzatmega328.bootloader.extended_fuses=0x07 rbot.menu.cpu.1MHzatmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex rbot.menu.cpu.1MHzatmega328.build.mcu=atmega328 rbot.menu.cpu.1MHzatmega328.build.f_cpu=1000000L ## Arduino Pro or Pro Mini (3V, 8 MHz) w/ ATmega328 ## ------------------------------------------------- rbot.menu.cpu.8MHzatmega328=ATmega328 (3V, 8 MHz) rbot.menu.cpu.8MHzatmega328.upload.maximum_size=30720 rbot.menu.cpu.8MHzatmega328.upload.maximum_data_size=2048 rbot.menu.cpu.8MHzatmega328.upload.speed=57600 rbot.menu.cpu.8MHzatmega328.bootloader.low_fuses=0xE2 rbot.menu.cpu.8MHzatmega328.bootloader.high_fuses=0xD9 rbot.menu.cpu.8MHzatmega328.bootloader.extended_fuses=0x07 rbot.menu.cpu.8MHzatmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex rbot.menu.cpu.8MHzatmega328.build.mcu=atmega328 rbot.menu.cpu.8MHzatmega328.build.f_cpu=8000000L