Tuesday, August 30, 2011

ARDUINO IN UBUNTU

Arduino Board

Arduino is a single-board microcontroller designed to make the process of using electronics in embedded projects more accessible. The hardware consists of a simple open hardware design for the Arduino board with an Atmel AVR processor and on-board serial port or usb I/O support.The software consists of a standard programming language compiler similar to C++ with some simplification and standard built-in functions.

For Linux users arduino IDE is here - <32-bit> <64-bit>

First install a dependancy library file avr-libc. For installation type in terminal
$ sudo apt-get install avr-libc

Then download and extract the arduino-0022.tgz file to the Desktop
Arduino IDE

open the terminal window and type

cd /home/<user name>/Desktop/arduino-0022/
(replace <user name> with the current user name)

./arduino

Then you will get the arduino IDE
Before going into the program you must select the board type and serial port from the tools tab
If your board type is not in the listed in the IDE , do the following steps
1)Go to the developers home page
2)find the code
3)add to the arduino-0022/hardware/arduino/boards.txt file

for example
for the maxuino usb users add the following code to arduino-0022/hardware/arduino/boards.txt file

##############################################################
probots.name=Maxuino USB w/ ATmega8
probots.upload.protocol=stk500
probots.upload.maximum_size=7168
probots.upload.speed=19200
probots.bootloader.low_fuses=0xDF
probots.bootloader.high_fuses=0xCA
probots.bootloader.path=atmega8
probots.bootloader.file=ATmegaBOOT.hex
probots.bootloader.unlock_bits=0x3F
probots.bootloader.lock_bits=0x0F
probots.build.mcu=atmega8
probots.build.f_cpu=16000000L
probots.build.core=arduino
##############################################################

see arduino homepage

No comments:

Post a Comment