Arduino not picking up libraries and firmware

Hi. I'm new to Arduino and the OpenEnergyProject, but am pretty familiar with Ubuntu Linux.

I've spent the best part of the day trying to get my newly installed Arduino to read the libraries and firmware.

I'm using Ubuntu 11.04 and have newly installed arduino using apt-get install. I created a /libraries folder and an OpenEnergyMonitor folder in the sketchbook folder created by arduino in my home folder.

I downloaded the files into the appropriate directories using the git clone command, following the Step by Step instructions at: http://openenergymonitor.org/emon/buildingblocks/installing-libraries-an...

I restarted arduino.

When I go to File>Sketchbook, I can see the libraries folder, but the only library present is Arduino-Temperature-Control. I cannot see the OpenEnergyMonitor directory where the firmware has been placed.

I've tried reinstalling arduino twice. I've checked and double checked file pemissions and attritbutes - the missing directories seem identical to the Temperature-Control directory's.

I've tried importing libraries which seems to only do a partial import, for example, Sketch>Import Library>Ethercard brings up the following on the terminal, and nothing else:

#include <net.h>
#include <EtherCard.h>
#include <enc28j60.h>

I've rebooted the computer a few times.

I also tried downloading the firmware as a zip and installing this way, as specified here: http://openenergymonitor.org/emon/modules/emontx/firmware.

All to no avail. I'm running out of ideas ! :-$ Has anybody else had these problems? Any advice would be appreciated. Rob

roblog's picture

Re: Arduino not picking up libraries and firmware

OK have worked out what is going on.

The repositries for Ubuntu 11.04 are old and download arduino v 0022. The OpenEnergyMonitor git hub downloads are intended for arduino v 1.0 or greater. They do not work on older versions becaue they use . ino file extensions for the sketches instead of .pde.

 

I tried changing all the file extensions, which worked to the extent that arduino could see the sketches, but failed upon trying to compile.

I found the answer to my problem here: http://arduino-info.wikispaces.com/Arduino-Libraries

I found good advice on installing arduino v.1.xx on ubuntu11.04 here: http://arduinoexplained.blogspot.co.uk/2012/03/install-arduino-10-on-ubu...

The above link tells you to do the following:

---

First, download two arduino pakages from the debian sid repository

http://packages.debian.org/sid/arduino-core
http://packages.debian.org/sid/arduino

Then,

$ sudo apt-get install binutils-avr gcc-avr avr-libc avrdude
$ sudo dpkg - i arduino-core_1.0+dfsg-9_all.deb
$ sudo apt-get install libjna-java librxtx-java
$ sudo dpkg -i arduino_1.0+dfsg-9_all.deb

---

Actually the current .deb download version is 1.0.1+dfsg-7 so you should enter these instead:

$ sudo apt-get install binutils-avr gcc-avr avr-libc avrdude
$ sudo dpkg - i arduino-core_1.0.1+dfsg-7_all.deb
$ sudo apt-get install lib

$ sudo dpkg -i arduino_1.0.1+dfsg-7_all.deb

Hopefully this will save some time for someone in the future .. R

Robert Wall's picture

Re: Arduino not picking up libraries and firmware

roblog's picture

Re: Arduino not picking up libraries and firmware

Oh yes thanks .. not.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.