Page 1 of 1

Upgrade Arduino IDE from 21 to 22 (and beyond)

Posted: Sun 17 Jun 2012, 03:50
by newbie314
I've been doing Arduino programming on my Puppy Linux computer (4.3) for about 8 Months using the arduino21_wiring27.sfs (Here is the forum topic with the link: http://www.murga-linux.com/puppy/viewto ... a2b00910c6)

I found out for doing some other activities on Ardiuno (like programming an Attiny85), I need the software version 22.

Well I found a site of how to do that from Willy's Blog (http://blog.willygroup.org/puppylinux-m ... e-sfs.html).
Unfortunately it is not in English and the translators only work on the text not on the site link.
I used the translation and tried it today with no issue (besides loss of icons).

Here are the steps I've translated and changed to match what I did. I've also added commands like uncompressing a tgz (couldn't remember and had to find it).

Steps
  • 1. Create a directory called 'sfstemp'
    2. Download the Arduino tgz you want to sfstemp. I choose version 22. Link: http://arduino.googlecode.com/files/arduino-0022.tgz
    3. Uncompress the tgz "tar zxvf arduino-0022.tgz"
    4. Copy or Download "arduino21_wiring27.sfs" to sfstemp
    5. Unsquash the sfs. The site mentions it might need to be installed but I had no problem. Just ran the command with no issues. Type "unsquashfs arduino21_wiring27.sfs"
    6. Next I removed the contents of the ardiuno directory in the unsquashed sfs. Type "cd squashfs-root/usr/arduino/" and then "rm -R *"
    7. Now to move the ardiuno directory from 23 into the unsquashed sfs. Type "cd ../../.." (make sure you're at the 'sfstemp' directory). Now type "cd arduino_0022" and then "cp -R * ../squashfs-root/usr/arduino/"
    8. Come back to the sfstemp directory level. Type "cd .."
    9. Create the new SFS. Type "mksquashfs squashfs-root/ arduino22_wiring27.sfs"
    10. Now move the new sfs where you want to use it. I put mine at '/mnt/home' as the Puppy software looks for that there.
    11. Finally clean up any extra software in 'sfstemp'. Can delete it if you wish.
This works fine for me with no issues. I assume version 23 or 1.0 might work as well. Not too sure on the java or wiring version.

Thanks to sternenstaub, Wally, Bing translation and Owen Kelly of linux.ie (got the command for tgz).

Posted: Sun 17 Jun 2012, 07:35
by kooliepup
Can't get arduino21_wiring27.sfs.
I think they are saying it doesn't exist.
Any other source for this that you know of?

Posted: Sun 17 Jun 2012, 07:44
by aarf
there is also this thread http://www.murga-linux.com/puppy/viewtopic.php?t=58147.

as a matter of interest what do the codes you have been working on perform?

Posted: Sun 17 Jun 2012, 14:50
by newbie314
Kooliepup, you're right. No link. Wonder where I can upload the sfs to.

Aarf, I assume your are referring to the codes I write for the arduino.
One project I used it to measuring a timing event to try and generate random numbers. The arduino would send the data to the puppy computer. The computer then ran monkey server and also did simple scripting to modify the data. Linux is so much easier to access the USB port than windows.

The most recent task is to fix the rolling ball clock by fascinations. Was doing multiple experiments and hacking into the circuit board. Right now the final script gives the motor a 100ms kick start to overcome static friction. The rest of the analog circuitry of the clock takes over after that. The script measures the voltage at a point to determine the switch is closed, kick starts the motor, then tirstates the node, and waits for the arm to finish the cycle before it triggers for the next kick.

The advantage of the puppy computer besides the USB port is the fact I have unlimited access to program as the main computer is used by the family.

Posted: Sun 17 Jun 2012, 18:23
by aarf
host for big files.
http://murga-linux.com/puppy/viewtopic. ... 732&t=3778 if you get it up in the next day or two I'll mirror it at russoodles site. Currently have fast connection to play with.

yes newbie314 it was the arduino codes I was inquiring about. thanks. have fun.

Posted: Sun 17 Jun 2012, 22:28
by newbie314
Uploaded 22 sfs for Puppy Linux
http://d-h.st/yHw

If anybody can fix the icons that would be great.
But then again the 21 version fixed itself after I reconnected to the sfs.

Posted: Sun 17 Jun 2012, 23:21
by aarf
newbie314 wrote:Uploaded 22 sfs for Puppy Linux
http://d-h.st/yHw

If anybody can fix the icons that would be great.
But then again the 21 version fixed itself after I reconnected to the sfs.
ok got it now, ready to upload when I get a little more organised. thanks.

Posted: Mon 18 Jun 2012, 20:54
by aarf

Posted: Tue 19 Jun 2012, 16:14
by aarf
Putting this here so I don't lose it
https://sensormonkey.eeng.nuim.ie/
Sensor to web service with instructions.
http://www.instructables.com/id/Drive-a ... no-Sensor/