Skip to Content

Connecting Arduino to Netwalker(I)

Connecting Arduino to Netwalker(I)
Installing Arduino IDE on Netwalker

This is a step by step tutorial to install Arduino IDE 017 in Sharp Netwalker, in order to edit and load software to Arduino I/O boards
This how-to is mainly based on the tutorial in Japanase from Hatena Diary
We should install some packages from repository, to be able to compile and download the sources
$ sudo apt-get install openjdk-6-jdk avr-libc gcc-avr binutils-avr bison flex subversion

Let's download them

$ wget http://savannah.inetbridge.net/avrdude/avrdude-5.8.tar.gz
$ tar -xzf avrdude-5.8.tar.gz
$ wget http://rxtx.qbang.org/pub/rxtx/rxtx-2.1-7r2.zip
$ unzip rxtx-2.1-7r2.zip
$ svn checkout http://arduino.googlecode.com/svn/tags/0017 arduino-0017

lets start compiling
First we will compile some more updated libraries and drivers that the default Arduino IDE have

AVRDUDE is an open source utility to download/upload/manipulate the ROM and EEPROM contents of AVR microcontrollers using the in-system programming technique (ISP)
$ cd avrdude-5.8/
$ ./configure
$ make
$ cd ..

rxtx  a  native serial lib for java is a little bit trickier to compile
$ cd rxtx-2.1-7r2/
Now you have to edit "configure" "configure.in" files and  replace all "1.5*" by "1.5*|1.6*" with your favorite text editor, then
$ ./configure
$ make
$ cd..

You maybe find some compile errors (like I found) about some not initialized constant UTS_RELEASE, on files src/RS485Imp.c(line 96), src/RawImp.c(line 240), src/I2CImp.c(line 96),

Just edit those files and comment the if block that is just checking something about OS, like the piece of code below

/*      if(strcmp(name.release,UTS_RELEASE)!=0)
        {
                fprintf(stderr, "\n\n\nRXTX WARNING:  This library was compiled to run with OS release %s and you are currently running OS release %s.  In s
                getchar();
        }*/

and you can end the compilation without errors, your miracle may vary
let's compile the Arduino IDE

$ cd arduino-0017/build/linux/
$ ln -s /usr/lib/jvm/java-6-openjdk/ ./work/java
$ ./make.sh

Now will will copy the previous compiled rxtx and avrdude to it's place in the Arduino IDE
$ cp ../avrdude-5.8/avrdude work/hardware/tools/
$ cp ../avrdude-5.8/avrdude.conf work/hardware/tools/
$ cp ../rxtx-2.1-7r2/armv7l-unknown-linux-gnu/.libs/librxtxSerial-2.1-7.so work/lib/librxtxSerial.so

And we are ready to rock :) just
$ ./run.sh

Remember that you have to enter in the arduino-0017/build/linux/ directory to run Arduino IDE so we can have script like this to launch the application
#! /bin/sh
cd ~/arduino-0017/build/linux/
./run.sh

From here you can follow all the tutorials and do fancy things with an Arduino from your Netwalker :) on the video demo is this one

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
12 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.