Jump to content


Photo

Arduino


  • Please log in to reply
57 replies to this topic

#1 OFFLINE   WorldTripping

WorldTripping

    Advanced Member

  • Members
  • PipPipPip
  • 120 posts
  • Local time: 11:20 PM
  • LocationBrighton, UK.

Posted 05 September 2011 - 10:53 AM

Hi,

Does anyone know if the Arduino IDE has been ported to the Pandora yet?

If not, will it be any time soon?

Cheers.
Nothing travels faster than the speed of light with the possible exception of bad news, which obeys its own special laws.
Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

#2 OFFLINE   cwall

cwall

    Member

  • Members
  • PipPip
  • 14 posts
  • Local time: 07:20 PM
  • LocationDurham, Ontario, CA

Posted 05 September 2011 - 12:29 PM

I have been using the Arduino IDE on a Genesi ARM computer from the Ubuntu depository. So the ARM port has been done, some one would have to package it, so it ran on Pandora.
Cheers
Carl

#3 OFFLINE   Blargont

Blargont

    Advanced Member

  • Members
  • PipPipPip
  • 42 posts
  • Local time: 09:20 AM

Posted 05 September 2011 - 12:56 PM

Awesome I use the arduino frequently and it would be good iff I could use my pandora for coding

#4 OFFLINE   WorldTripping

WorldTripping

    Advanced Member

  • Members
  • PipPipPip
  • 120 posts
  • Local time: 11:20 PM
  • LocationBrighton, UK.

Posted 05 September 2011 - 01:09 PM

I have been using the Arduino IDE on a Genesi ARM computer from the Ubuntu depository. So the ARM port has been done, some one would have to package it, so it ran on Pandora.
Cheers
Carl


That is brilliant news.

I have just bought my first Arduino Uno and would love to be able to use the IDE on a Pandora rather than a laptop.
(When I get my Pandora that is.)

Would it be easy to package as the port has already been done ?
(Actually is there a 'Port Request' thread anywhere?)

I'll have to have a look into that.

Cheers.
Nothing travels faster than the speed of light with the possible exception of bad news, which obeys its own special laws.
Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

#5 OFFLINE   panik

panik

    Advanced Member

  • Members
  • PipPipPip
  • 124 posts
  • Local time: 01:20 AM
  • LocationNetherlands

Posted 05 September 2011 - 02:56 PM

I had the Arduino IDE running on the Pandora in Debian on an SD card, but it will surely work in a Debian extend ("sudo apt-get install arduino").

Semi-related, urjaman made a pnd with an AVR toolchain (AVR-Tools) for when you don't need/want to use the Arduino IDE and bootloader.

#6 OFFLINE   tony.pigram

tony.pigram

    Advanced Member

  • Members
  • PipPipPip
  • 42 posts
  • Local time: 11:20 PM
  • LocationBath, UK

Posted 28 June 2012 - 06:52 PM

did anyone ever get the Arduino IDE packaged for Pandora? If so, can you let me know where I can get hold of it - I'd love to be able to program my Arduino from my Pandora. B)

#7 OFFLINE   Linux-SWAT

Linux-SWAT

    Advanced Member

  • Members
  • PipPipPip
  • 6151 posts
  • Local time: 01:20 AM
  • LocationParis, France

Posted 28 June 2012 - 06:55 PM

I didn't try it yet under Slackware, but i think it should work.

#8 OFFLINE   liveunderwater

liveunderwater

    Advanced Member

  • Members
  • PipPipPip
  • 101 posts
  • Local time: 05:20 PM
  • LocationChicago

Posted 29 June 2012 - 09:34 AM

I also have Arduino and Pandora. Would love to start using them together. Couldn't find any tutorials last time I looked and right now I´m ready for bed.

Alt + 0153


#9 OFFLINE   tony.pigram

tony.pigram

    Advanced Member

  • Members
  • PipPipPip
  • 42 posts
  • Local time: 11:20 PM
  • LocationBath, UK

Posted 08 July 2012 - 01:56 PM

Okay, so whilst the Formula 1 Grand Prix was on the TV, I decided to multi-task and get Arduino & Pandora working together...

My initial findings were that it would not be efficient to try and get the Arduino IDE to run on the Pandora. I googled quite a bit and found that many people have used different front-ends to compile, build and deploy to the Arduino. I decided to strip back to basics for the Pandora and have documented the steps below.


Requirements:
Open Pandora 256Mb 800Mhz Super Zaxxon Final release
avrtools installed (as linked to in earlier post)
Arduino Atmel328p device
USB 1.1 Hub (could not get Open Pandora to detect Arduino directly plugged in, assumed this was due to it using USB 2.0?)

Arduino 1.0.1 IDE (only if want to compile own library file - see next link [and for getting the .h files])
copy /hardware/arduino/cores/arduino/*.* to Open Pandora /mnt/utmp/avrtools/include
copy /hardware/arduino/variants/standard/pins_arduino.h to Open Pandora /mnt/utmp/avrtools/include
libarduino.a (obtained from http://lastyearswish...aa5d80d3d1c6920 )
copy libarduino.a to Open Pandora /mnt/utmp/avrtools/lib

creation of makefile and copy to Open Pandora /mnt/utmp/avrtools (make sure that the commands have TAB and not spaces, otherwise you get errors)
creation of flash_led.c in /home/tony


Steps:
Plug Arduino into USB 1.1 Hub
Plug USB hub into Open Pandora
Open Pandora, Enable USB Host
navigate to /dev/
check for existence of ttyUSB0
This will indicate that the Arduino is accessible (occasionally I had to restart Open Pandora for it to pickup the USB 1.1 Hub)

From menu select, development | avrtools
This starts in Terminal mode
I found that I had to be root user to be able to have permissions to dowload to the Arduino

sudo -s
<password>

make all FILE=flash_led
(this will compile the .c file, output it to .elf, then convert .hex and download to the Arduino using avrdude. The makefile is reading and outputting to /home/tony - you'll have to change this to suit your setup)



flash_led.c
#include "/mnt/utmp/avrtools/include/arduino.h"

int led = 13;

void setup() {
pinMode(led, OUTPUT);
}

void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}

makefile
default:
avr-gcc -B /mnt/utmp/avrtools/lib -Os -mmcu=atmega328p -o /home/tony/${FILE}.elf /home/tony/${FILE}.c -larduino
avr-objcopy -O ihex -R .eeprom /home/tony/${FILE}.elf /home/tony/${FILE}.hex
upload:
avrdude -c arduino -p m328p -b 57600 -P /dev/ttyUSB0 -U flash:w:/home/tony/${FILE}.hex

all: default upload

Here's the uploaded video. I'm very happy that I am now able to use 'mousepad' on my Pandora to write my Arduino code and then run 'make' as detailed above and have the code running on the Arduino!

EDIT: Here's the 2nd uploaded video showing the flashing of a real light :rolleyes:

#10 OFFLINE   Linux-SWAT

Linux-SWAT

    Advanced Member

  • Members
  • PipPipPip
  • 6151 posts
  • Local time: 01:20 AM
  • LocationParis, France

Posted 08 July 2012 - 02:39 PM

Cool work indeed, this will also please Arduino people.
If you're into Arduino forums, please inform them too ;^).

#11 OFFLINE   Farox

Farox

    Advanced Member

  • Members
  • PipPipPip
  • 898 posts
  • Local time: 12:20 AM
  • LocationItaly

Donator

Posted 08 July 2012 - 02:42 PM

Good another great use of Pandora...
Anyway whenewer there are a F1 show on TV i couldn't take off my eyes from it.... :) i love F1 ;)
Read also my Blog http://farox.rbnet.it/

#12 OFFLINE   hdonk

hdonk

    Advanced Member

  • Members
  • PipPipPip
  • 330 posts
  • Local time: 12:20 AM

Donator

Posted 11 July 2012 - 02:23 PM

I've got the Arduino IDE running on my Pandora... Just have to sort the USB serial port access out.
(It supports c++ too B) )
Is there any demand for a fully self contained PND (Including JRE) for this?
Edit:
Except the linker segfaults. Buffer.

#13 OFFLINE   Linux-SWAT

Linux-SWAT

    Advanced Member

  • Members
  • PipPipPip
  • 6151 posts
  • Local time: 01:20 AM
  • LocationParis, France

Posted 11 July 2012 - 05:50 PM

Nice !
Even if there's no express demand here, i think pushing a .pnd is a good idea.

#14 OFFLINE   lgr

lgr

    Member

  • Members
  • PipPip
  • 19 posts
  • Local time: 06:20 PM

Posted 11 July 2012 - 06:14 PM

I've got the Arduino IDE running on my Pandora... Just have to sort the USB serial port access out.
(It supports c++ too B) )
Is there any demand for a fully self contained PND (Including JRE) for this?
Edit:
Except the linker segfaults. Buffer.


I would be quite pleased if there was a pnd for this. When I find some time I was going to try to follow the directions for the previous posts, but would be happy to just be able to drop a PND instead.

Thanks

#15 OFFLINE   tony.pigram

tony.pigram

    Advanced Member

  • Members
  • PipPipPip
  • 42 posts
  • Local time: 11:20 PM
  • LocationBath, UK

Posted 11 July 2012 - 07:03 PM

Hey, I'd opt for a .pnd if there is one available :-)

#16 OFFLINE   >reSPAWNed<

>reSPAWNed<

    Member

  • Members
  • PipPip
  • 18 posts
  • Local time: 01:20 AM
  • LocationDenmark, Vallensbæk

Posted 11 July 2012 - 10:15 PM

I got the Arduino Uno recently and when I get my 1 Giggy Panda (hopefully soon), it would be super sweet to be able to program it from that.

Definitely a PND version would be preferable...

If it is not around when I get my Pandora, then I just might have to look into making PND apps (if it is not too difficult) ;)

#17 OFFLINE   Binky

Binky

    A Nonny Mouse

  • Moderators
  • 5743 posts
  • Local time: 11:20 PM
  • Location31A (CA)

Posted 12 July 2012 - 11:13 AM

Is there any demand for a fully self contained PND (Including JRE) for this?

Yes. Most definitely.
My poking electronic things (including arduini) table is too far away from my computer, being able to do it with my pandora would be awesome!
usei.png

#18 OFFLINE   hdonk

hdonk

    Advanced Member

  • Members
  • PipPipPip
  • 330 posts
  • Local time: 12:20 AM

Donator

Posted 12 July 2012 - 11:16 AM

Well I've got the linker working. Just have to solve the serial port access.

#19 ONLINE   TrashyMG

TrashyMG

    Sarcasm Dispenser

  • Moderators
  • 5436 posts
  • Local time: 06:20 PM
  • LocationVermont, USA

Donator

Posted 12 July 2012 - 11:49 AM

Well I've got the linker working. Just have to solve the serial port access.


Sounds like what I was having issues with my USB development board.. I needed to run the software with sudo/root access, for some reason the USB devices in pretty much every distribution of linux don't give regular users proper permissions to directly access the USB devices.

#20 OFFLINE   sebt3

sebt3

    PowerFreak Troll, leave him alone

  • Members
  • PipPipPip
  • 2049 posts
  • Local time: 06:20 PM

Donator

Posted 12 July 2012 - 12:45 PM

Sounds like what I was having issues with my USB development board.. I needed to run the software with sudo/root access, for some reason the USB devices in pretty much every distribution of linux don't give regular users proper permissions to directly access the USB devices.


Have a look at the end of /etc/udev/rules.d/local.rules ;)

- [ PNDS ] - [ Yactfeau ] -

Spoiler


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users