Page 1 of 1

How to Install Arduino on Lupu-500

Posted: Wed 28 Jul 2010, 05:30
by gronos04
I did this when Lupu first came out so I hope that it still stands. I have downloaded 505 and will run this set up on it when I get some time.

1. Make sure that your petsave is large enough . Don’t want to get half way and find that you have busted the limit. There are some fat boys here

2. Devx goes in.

3.JRE installed (I used the jre-1.6..0.20.1 pet). You can test this simply by punching java into your terminal and if it is OK then you will get a options page.

4. Get and install the following packages in this order from

http://packages.ubuntu.com/

binutils_2.20.1

binutils-avr_2.20

libmpfr1ldbl_2.4.2 (floating point libraries)

libgmp3c2_4.3.2+dfsg (prescision mathematical libraries)

gcc-avr_4.3.4

avr-libc_1.6.7 (must go in AFTER gcc-avr)

avrdude_5.10 *

avrprog_0.2.2 *

* I am not sure that these are required but at that stage anything that had AVR in the name was fair game.

5.Download and unpack the latest from Arduino

http://www.arduino.cc/en/Main/Software

It is static so that it can go where you like. The frugallists could be put both Arduino and Java out in the home directory and link but I would suggest that as another project.

6. Go into the arduino-00xx folder and drag the arduino file to the desktop

Stragely I couldn’t find an icon for the shortcut in the distribution but I googled one up.

7.Set up your comm port in the IDE

8.Hook up your Arduino and test load it.

9. Cheer the benevolent universe

All should be well

I did try to set this up on another Puppy Version and I was downloading and compiling but go to a point where ‘A’ wouldn’t compile without ‘B’ and’ B’ wouldn’t compile without ‘C’ and 'c’ wouldn’t compile without 'A’ at this point I had to go for a long walk.

The adventurous could compile this on another Puppy version or event make a Pet out of it.

It is good to be able to have the huge Ubuntu package world as a resource.

My thanks to Barry K and to the Lupu team.

Some links

http://www.arduino.cc/playground/Learning/Linux

http://www.nongnu.org/avr-libc/user-man ... tools.html

Posted: Wed 28 Jul 2010, 13:13
by Flash
Would you mind adding a short description of what Arduino is, what it's good for? Thanks. :)

Posted: Wed 28 Jul 2010, 18:03
by wooddave
Arduino is an open-source microcontroller and the software development environment that enables you to make it do what you want to. Here's an overview quoted from the website http://www.arduino.cc/

"Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It's intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments.

Arduino can sense the environment by receiving input from a variety of sensors and can affect its surroundings by controlling lights, motors, and other actuators. The microcontroller on the board is programmed using the Arduino programming language (based on Wiring) and the Arduino development environment (based on Processing). Arduino projects can be stand-alone or they can communicate with software on running on a computer (e.g. Flash, Processing, MaxMSP).

The boards can be built by hand or purchased preassembled; the software can be downloaded for free. The hardware reference designs (CAD files) are available under an open-source license, you are free to adapt them to your needs. "

Posted: Thu 29 Jul 2010, 07:48
by GustavoYz
:shock:
Thanks woodave!! :D
Now I gonna be able to control Processing, Cinelerra, Ardour and/or PD (Even at the same time with the OSC protocol). Great information (CTRL+D right now)...

Posted: Fri 30 Jul 2010, 03:36
by wooddave
:D

I was >thoroughly< intimidated by the list of steps, especially at first when some of the items weren't in the package manager, but I'm up and running in one evening! I've made some changes to a simple sketch (Arduino program) and it's running so I can see the whole development chain is in place. V.e.r.y. cool - thanks so much gronos04 !!

Tomorrow and over the weekend hopefully I'll get my new < $10 wireless Arduino links tested so I can run my model trains wirelessly without a majorly expensive commercial controller.

Many cheers to the benevolent universe! :D

Posted: Fri 30 Jul 2010, 05:10
by 2lss
I picked up an arduino a few weeks back and started to make a pet for it. However the avr-tools pet that I was using as a base was extremely outdated and would not work. I was going to build everything and make a nice little sfs with arduino playground, but got distracted. I still plan to do so, maybe next week sometime.

I am pretty amazed with the little thing. It seems a lot more flexible than the basic stamp, is open source, has a huge following, and is relatively inexpensive. Whats not to love about it? :D

Posted: Sun 05 Sep 2010, 18:19
by aarf
Still occasionally trying to locally source an atmega328 IC chip. Pleased that puppy is further along for when i finally get there. Mainly a bookmark for this thread and encouragement for this those doing the groundwork.

Posted: Tue 07 Sep 2010, 12:16
by aarf
aarf wrote:Still occasionally trying to locally source an atmega328 IC chip..
all you have to do is google but why does it take me so long to do that i dont know. anyhows this is where you can find Arduinos in the world. if you are not there you may also be at http://arduino.cc/en/Main/Buy

Posted: Sat 11 Sep 2010, 13:25
by aarf
At arudino-ubuntu-lucid-i386-debs.tar is a tar.gz (17 MB) of the debs from
http://packages.ubuntu.com/lucid/i386/binutils/download
http://packages.ubuntu.com/lucid/i386/b ... r/download
http://packages.ubuntu.com/lucid/i386/l ... l/download
http://packages.ubuntu.com/lucid/i386/l ... 2/download
http://packages.ubuntu.com/lucid/i386/gcc-avr/download
http://packages.ubuntu.com/lucid/all/avr-libc/download
http://packages.ubuntu.com/lucid/i386/avrdude/download
http://packages.ubuntu.com/lucid/i386/avrprog/download.

not necessarily the same version numbers as above but what is given for the current lucid i386 packages from the ubuntu repository.
just click the tar.gz, extract them into individual debs, and then click on each .deb and they will automatically install.
havent tested these packages yet so any tests and problems please advise.
may attempt a sfs later.

java pet at http://puppylinux.org/wikka/JavaRuntimeEnvironment
or http://www.smokey01.com/01micko/lucid/j ... -lucid.pet

java.sfs from http://puppeee.com/files/sfs/java_jre1.6.sfs may also work in lupu
i also assume it is this arduino
http://files.arduino.cc/downloads/arduino-0019.tgz

Posted: Sat 11 Sep 2010, 20:11
by aarf
Is it just python that is needed from the devx? Because there are python pets and bandwidth is limited.

Posted: Tue 21 Sep 2010, 07:43
by aarf

Posted: Mon 03 Oct 2011, 02:48
by aarf
finally got my hot little mits on the hardware. how long has it taken me :roll:
1 mega, 1 duemilovani, 1 328 chip, bag of misc sensors, assorted wire connectors. will take a while to get this sorted.
not much stray puppy testing to be done in the near future. :shock:

Posted: Sun 09 Oct 2011, 08:52
by aarf
more to come soon. In short got a blinking led with luci528.

link to http://arduino.googlecode.com/files/arduino-0022.tgz

this java.sfs http://distro.ibiblio.org/pub/linux/dis ... d-sfs4.sfs can be used instead of the pet.
need to get a new
http://packages.ubuntu.com/lucid/i386/gcc-avr/download because the one in the tar.gz atarudino-ubuntu-lucid-i386-debs.tar wont install. rest of the deb packages were ok.

after installing into puppy see the
new revised manualThe Complete Beginners Guide to the Arduino 8Mb is well written and thorough. you can get started with just that manual if you come across a pdf reader that can copy the code from the pdf please advise

Posted: Tue 18 Oct 2011, 13:58
by aarf
Evince 2.29.92 can copy code out of PDFs, it is in Puppeee4.4rc2. May not need it as many examples are in the Arduino IDE already.

Posted: Sat 29 Oct 2011, 16:04
by aarf

Posted: Sun 30 Oct 2011, 08:05
by nooby
aarf cool. I trust many would love such. One can make fancy
Copters swishing around or whatever. I wish I was young and
with a good brain and I would build myself a Robot that could
be a friendly companion. :)

Posted: Fri 18 Nov 2011, 17:28
by Zaven
Works like a charm, thanks.

Running 528

Posted: Thu 12 Apr 2012, 12:45
by battleshooter
Your Arduino package works well in Saluki too, thanks Aarf :)

Posted: Fri 01 Jun 2012, 10:49
by aarf
if you drop by check and see if linux is ready. http://www.modk.it/download
if it post here. this is what I thought was missing from arduino, a decent gui would make all the difference.
more info at http://www.kickstarter.com/projects/mod ... f=category
edit: they are going to sell kits not exactly cheaply for what it is.

Posted: Tue 25 Sep 2012, 22:28
by muggins
Thought I'd mention this portablelinuxapp arduino for lupu-based pups:

http://sourceforge.net/projects/portabl ... 1/download