Arduino?


KRH

Member
Joined
May 10, 2008
Messages
108
Age
30
Location
Malaysia
I was just wondering if the Pandora would ever be able to use the Arduino IDE.
Because if it could, then that would be AWESOME.
If it can't would it be a temporary or permanent problem?
 
KRH said:
I was just wondering if the Pandora would ever be able to use the Arduino IDE.
Because if it could, then that would be AWESOME.
If it can't would it be a temporary or permanent problem?

That's quite an interesting question actually... To which I don't know the answer :)
 
Last edited by a moderator:
Last edited by a moderator:
Most of the threads were mine :huh:

I have attempted to port the IDE to the N900, but at the moment I have not had anytime.
I'll see if I can get some help or assistance with porting correctly: X86 -->> ARM.
 
I remember doing a project with Arduino...even though it didn't quite work out like I wanted to, it was pretty cool to do. Carrying a laptop to reprogram the settings for use with the motor shield was really annoying though. It would've been really nice to have a handheld device to do that.
 
If you (or anyone) ever get stuck with a project, I can help with much Arduino work...

I'm going to start work on porting Arduino again, soon. Maybe this weekend and I will update when I can.
 
torpor said:
Just use vim+make+avr-gcc+avr-dude .. no need for a bull-blown IDE.

EXCELLENT!
I'll get onto that..

I might try and build the IDE on N900 SDK (/ScratchBox). The IDE is quite low on hardware resources and ram.
Couldn't do much with N900 except click and type - No USB host.
 
Last edited by a moderator:
As far as I've read Arduino uses a modified AVRDUDE to program over the boot-loader. I've got an Arduino clone i put together that i can program over a normal serial port. I'd like to use my Pandora for minor code tweaks and things like that since i rarely carry my laptop around anymore.

Another issue is that i'm not very experienced programming AVRs outside of the arduino and it's libraries.

Anyone know how could i get support for all the libraries and serial programming over the boot-loader on my Pandora?
 
Arduino IDE on Pandora would be cool, but I thought it was java based? I think there's a java vm in angstrom repos, but I don't know how well it would work since it's not Sun Java. It would probably be preferable to port it though, since Java isn't exactly low on resources.

Controlling the Arduino from the Pandora would be pretty cool too, are the FTDI USB drivers included with the OS or will I have to get my hands dirty to get some Arduino related project up and running once I get my Pandora? :)
 
Been programming my Arduino pro mini board almost every day for the past 2 weeks, so a working environment on the Pandora would be nice. The hardware is great, but the Arduino IDE sucks. It slow and messes with COM ports causing major temporary hangs, especially with serial bluetooth devices. Using just a texteditor, avr-gcc and avrdude works fantastic. This would also make it work on AVR designs in general and not limited to Arduino boards.

Leesam said:
As far as I've read Arduino uses a modified AVRDUDE to program over the boot-loader.
I ran into this a while ago with the pro mini and a FTDI breakout board. Never got the latest avrdude to work, so I ripped the ancient version bundled with the Arduino software (made a short note about it a while back). It has some patches that uses the DTR line to reset the AVR before starting flashing.
 
Last edited by a moderator:
I ended up using this Java install. Seems to have worked but there are a couple of errors to work through...

Update: after "opkg install librxtx-java librxtx-jni" it actually prompts me with an 'Open' dialog box. No idea what file it's looking for though


Code:
Kotoko:/media/FAST16GB/Downloads/arduino-0018$ ./arduino
cannot initialize Look and Feel: com.sun.java.swing.plaf.gtk.GTKLookAndFeel
error: java.lang.ClassNotFoundException: com.sun.java.swing.plaf.gtk.GTKLookAndFeel not found in java.lang.ClassLoader$1{urls=[file:/media/FAST16GB/Downloads/arduino-0018/./,file:/media/FAST16GB/Downloads/arduino-0018/./java/lib/rt.jar,file:/media/FAST16GB/Downloads/arduino-0018/./java/lib/tools.jar,file:/media/FAST16GB/Downloads/arduino-0018/./lib/RXTXcomm.jar,file:/media/FAST16GB/Downloads/arduino-0018/./lib/antlr.jar,file:/media/FAST16GB/Downloads/arduino-0018/./lib/core.jar,file:/media/FAST16GB/Downloads/arduino-0018/./lib/ecj.jar,file:/media/FAST16GB/Downloads/arduino-0018/./lib/jna.jar,file:/media/FAST16GB/Downloads/arduino-0018/./lib/oro.jar,file:/media/FAST16GB/Downloads/arduino-0018/./lib/pde.jar], parent=null}
java.lang.ClassNotFoundException: com.sun.java.swing.plaf.gtk.GTKLookAndFeel not found in java.lang.ClassLoader$1{urls=[file:/media/FAST16GB/Downloads/arduino-0018/./,file:/media/FAST16GB/Downloads/arduino-0018/./java/lib/rt.jar,file:/media/FAST16GB/Downloads/arduino-0018/./java/lib/tools.jar,file:/media/FAST16GB/Downloads/arduino-0018/./lib/RXTXcomm.jar,file:/media/FAST16GB/Downloads/arduino-0018/./lib/antlr.jar,file:/media/FAST16GB/Downloads/arduino-0018/./lib/core.jar,file:/media/FAST16GB/Downloads/arduino-0018/./lib/ecj.jar,file:/media/FAST16GB/Downloads/arduino-0018/./lib/jna.jar,file:/media/FAST16GB/Downloads/arduino-0018/./lib/oro.jar,file:/media/FAST16GB/Downloads/arduino-0018/./lib/pde.jar], parent=null}
   at java.net.URLClassLoader.findClass(URLClassLoader.java:531)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:341)
   at java.lang.ClassLoader$1.loadClass(ClassLoader.java:1112)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:293)
   at java.lang.VMClass.forName(Native Method)
   at java.lang.Class.forName(Class.java:233)
   at javax.swing.UIManager.setLookAndFeel(UIManager.java:943)
   at javax.swing.UIManager.<clinit>(UIManager.java:241)
   at javax.swing.JFileChooser.updateUI(JFileChooser.java:1514)
   at javax.swing.JFileChooser.setup(JFileChooser.java:496)
   at javax.swing.JFileChooser.<init>(JFileChooser.java:408)
   at processing.app.Base.selectFolder(Base.java:1670)
   at processing.app.Base.promptSketchbookLocation(Base.java:1588)
   at processing.app.Base.getDefaultSketchbookFolder(Base.java:1556)
   at processing.app.Base.<init>(Base.java:275)
   at processing.app.Base.main(Base.java:200)
falling back to Metal Look and Feel
Exception during event dispatch:
java.lang.ArithmeticException: / by zero
   at javax.swing.text.PlainView.paint(PlainView.java:298)
   at javax.swing.text.FieldView.paint(FieldView.java:263)
   at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:388)
   at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:1154)
   at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:1105)
   at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:1183)
   at javax.swing.JComponent.paintComponent(JComponent.java:2062)
   at javax.swing.JComponent.paint(JComponent.java:1826)
   at javax.swing.JComponent.paintChildren(JComponent.java:1962)
   at javax.swing.JComponent.paint(JComponent.java:1829)
   at javax.swing.JComponent.paintChildren(JComponent.java:1962)
   at javax.swing.JComponent.paint(JComponent.java:1829)
   at javax.swing.JComponent.paintChildren(JComponent.java:1962)
   at javax.swing.JComponent.paint(JComponent.java:1829)
   at javax.swing.JComponent.paintChildren(JComponent.java:1962)
   at javax.swing.JComponent.paint(JComponent.java:1829)
   at javax.swing.JComponent.paintChildren(JComponent.java:1962)
   at javax.swing.JComponent.paint(JComponent.java:1829)
   at javax.swing.JComponent.paintChildren(JComponent.java:1962)
   at javax.swing.JComponent.paint(JComponent.java:1829)
   at javax.swing.JLayeredPane.paint(JLayeredPane.java:713)
   at javax.swing.JComponent.paintChildren(JComponent.java:1962)
   at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:2348)
   at javax.swing.JComponent.paint(JComponent.java:1786)
   at java.awt.Container$GfxPaintVisitor.visit(Container.java:2205)
   at java.awt.Container.visitChild(Container.java:1927)
   at java.awt.Container.visitChildren(Container.java:1897)
   at java.awt.Container.paint(Container.java:876)
   at gnu.java.awt.peer.gtk.GtkComponentPeer.paintComponent(GtkComponentPeer.java:335)
   at gnu.java.awt.peer.gtk.GtkComponentPeer.handleEvent(GtkComponentPeer.java:286)
   at java.awt.Component.dispatchEventImpl(Component.java:5748)
   at java.awt.Container.dispatchEventImpl(Container.java:1954)
   at java.awt.Window.dispatchEventImpl(Window.java:618)
   at java.awt.Component.dispatchEvent(Component.java:2852)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:624)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:88)
   at java.lang.VMThread.run(VMThread.java:120)
Exception during event dispatch:
java.lang.ArithmeticException: / by zero
   at javax.swing.text.PlainView.paint(PlainView.java:298)
   at javax.swing.text.FieldView.paint(FieldView.java:263)
   at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:388)
   at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:1154)
   at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:1105)
   at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:1183)
   at javax.swing.JComponent.paintComponent(JComponent.java:2062)
   at javax.swing.JComponent.paint(JComponent.java:1826)
   at javax.swing.JComponent.paintChildren(JComponent.java:1962)
   at javax.swing.JComponent.paint(JComponent.java:1829)
   at javax.swing.JComponent.paintChildren(JComponent.java:1962)
   at javax.swing.JComponent.paint(JComponent.java:1829)
   at javax.swing.JComponent.paintChildren(JComponent.java:1962)
   at javax.swing.JComponent.paint(JComponent.java:1829)
   at javax.swing.JComponent.paintChildren(JComponent.java:1962)
   at javax.swing.JComponent.paint(JComponent.java:1829)
   at javax.swing.JComponent.paintChildren(JComponent.java:1962)
   at javax.swing.JComponent.paint(JComponent.java:1829)
   at javax.swing.JComponent.paintChildren(JComponent.java:1962)
   at javax.swing.JComponent.paint(JComponent.java:1829)
   at javax.swing.JLayeredPane.paint(JLayeredPane.java:713)
   at javax.swing.JComponent.paintChildren(JComponent.java:1962)
   at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:2348)
   at javax.swing.JComponent.paint(JComponent.java:1786)
   at java.awt.Container$GfxPaintVisitor.visit(Container.java:2205)
   at java.awt.Container.visitChild(Container.java:1927)
   at java.awt.Container.visitChildren(Container.java:1897)
   at java.awt.Container.paint(Container.java:876)
   at gnu.java.awt.peer.gtk.GtkComponentPeer.paintComponent(GtkComponentPeer.java:335)
   at gnu.java.awt.peer.gtk.GtkComponentPeer.handleEvent(GtkComponentPeer.java:286)
   at java.awt.Component.dispatchEventImpl(Component.java:5748)
   at java.awt.Container.dispatchEventImpl(Container.java:1954)
   at java.awt.Window.dispatchEventImpl(Window.java:618)
   at java.awt.Component.dispatchEvent(Component.java:2852)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:624)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:88)
   at java.lang.VMThread.run(VMThread.java:120)
Exception during event dispatch:
java.lang.ArithmeticException: / by zero
   at javax.swing.text.PlainView.paint(PlainView.java:298)
   at javax.swing.text.FieldView.paint(FieldView.java:263)
   at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:388)
   at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:1154)
   at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:1105)
   at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:1183)
   at javax.swing.JComponent.paintComponent(JComponent.java:2062)
   at javax.swing.JComponent.paint(JComponent.java:1826)
   at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:2343)
   at javax.swing.JComponent.paintImmediately2(JComponent.java:2260)
   at javax.swing.JComponent.paintImmediately(JComponent.java:2098)
   at javax.swing.JComponent.paintImmediately(JComponent.java:2124)
   at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:596)
   at javax.swing.RepaintManager$RepaintWorker.run(RepaintManager.java:171)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:200)
   at javax.swing.RepaintManager$RepaintWorkerEvent.dispatch(RepaintManager.java:115)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:615)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:88)
   at java.lang.VMThread.run(VMThread.java:120)
 
I don't know if it's just me, but the arduino IDE is good cause it's really easy to install/use on a PC, if it's not the case on the pandora I'dd directly go to an other text editor/ide + avr-gcc + avr-dude
and the ardino library is also rather limitated...not using it seems to be a good idea...
 
is there anything like notepad++ available? I guess all i really want is something to make the code colored and formatted right. The libraries i could probably use outside of the IDE since they're all available as Blah.h files and AVRDUDE should compile.
 
Leesam said:
is there anything like notepad++ available? I guess all i really want is something to make the code colored and formatted right. The libraries i could probably use outside of the IDE since they're all available as Blah.h files and AVRDUDE should compile.
I want to see the day when avrdude compiles something xD........ oh you meant that avrdude is compileable, yeah most propably. (I really wrote that first, then thought "duh")
I'd throw SciTE here, I might package it up someday, but it was a simple compile with everything i had on my SD... mostly needs stuff done to work in a pnd. A version hardcoded to have /mnt/utmp/scite/ as prefix and HOME in appdata might be relatively painless to do.
 
Last edited by a moderator:
Back
Top