![]() |
n900 and Arduino
Hi everybody,
I'm starting "working" with arduino for litle electronic projects and I'm surfing old forum messages about the n900 and arduino. Is there a way for use Arduino IDe (or equivalent) and upload a sketch on Arduino connecting it directly to n900 usb? I'd give tension to arduino for separate way so I hope that usb amperage could be not so important. Any resource or link about n900 and this funny little thing? |
Re: n900 and Arduino
You mean you want to write your arduino sketch and upload it to the board over USB directly from the N900? I have never tried this, but i'm assuming you have seen this thread in your research:
Arduino IDE on N900? Because of the Java libraries included with the IDE, it suggests trying Easy Debian to run the IDE (to give the N900 Java support) with USB Host Mode enabled on the N900. Have you already attemped this, or willing to try? It would be interesting to see if you can get it to work :) |
Re: n900 and Arduino
Yes I saw this thread, but it's pretty old. I didn't tried, but I understood that things didn't work so well at the end.
I hoped now Arduino is always more used, someone found something new for maemo. It seems that the easier way is using bluetooth or wifi for serial data communication, and some other machine (desktop or maybe some other mobile platform) for programming and transferring the sketch to the arduino board. :( |
Re: n900 and Arduino
In order to upload code to the Arduino you don't need the full IDE.
the only thing you need is avrdude, a command line application that can be easily compiled on most linux distributions. then you need to find the .hex file generated by arduino and copy it on the n900. |
Re: n900 and Arduino
Quote:
I am pretty newbie about all this. |
Re: n900 and Arduino
how did you go?
did you manage to get it working? |
Re: n900 and Arduino
Perhaps this video will be useful:
http://www.youtube.com/watch?feature...&v=80pHPJeEong It shows an example of a USB connection using the QtDruino library: https://github.com/kirik-ch/QtDruino |
Re: n900 and Arduino
Sorry, I wrote in other place on the forum and didn't here. My n900 died past summer, in a unfortunely wet end. I didn't find another one in my area (well I found one but... 400€!!! And another used one but very bad condition) so at the end I finished without n900 and passed at a cheap htc Desire Z. It's not so bad but it's not n900. Worst thing in android (for me) it's the strange multitasking...
I still play with arduino with some friends at local "hackerspace", one of the latest wip is a simple robot arm. Sometimes still look for n900 but not budget now for another toy, and no one at see at the moment. |
Re: n900 and Arduino
Of course it's up to You, but I would say "sell that **** and buy N900" - in my place, it's around 200$ (used, good condition). Even including shipping costs to Spain (Poland is not so far away), it's still cheaper than what You've found. Again, You do what You feel fancy, but if You need N900, I can help You getting one.
/Estel |
Re: n900 and Arduino
Quote:
I consider myself a strange kind of user, not a real power user, but surely more than a simple normal user... |
Re: n900 and Arduino
As everyone knows, Arduino IDE can not ever run on Maemo due to a dependency on Sun Java.
However I've seen some links (here?) describing how you can host avrdude on Maemo, and compile code for the Arduino. There's a third item of interest I'll point out: Using an N800 to "upload" an Arduino sketch which was previously compiled. (So like if you compiled "blink", and copied it onto a SD card, which you could then upload to the Arduino). Someone's already managed to turn an Arduino in-to an Arduino uploader. (The host Arduino isn't compiling anything, it just acts like a jukebox or selection interface for the target Arduino). Someone did the hard work of figuiring out the bootloader protocol, so it could be adapted to another platform like a Maemo device. That project is called "Boot Drive": http://baldwisdom.com/bootdrive/ (As an example how it is useful, lets say you had 6 or so interesting Arduino sketches. The Arduino only holds one sketch, but you could use the n800 to upload and alternate between each sketch, no laptop required). |
Re: n900 and Arduino
I just managed to install Arduino IDE on easydebian... i don't know if it works properlly because i don't really know how to use it yet. But i'll give a try.
|
Re: n900 and Arduino
Quote:
http://talk.maemo.org/showthread.php?t=86561 Much hilarity ensued (well, okay - not really) when SQLDeveloper launched on my noddy wee phone. |
Re: n900 and Arduino
There is an easy way to use Arduino with n900:
By bluetooth. I've already written a thread how to construct a digital compass with bluetooth and n900. It is very easy. It was my first work with arduino and electronics and it worked immediately. Download the python script "TheScript" to get data from arduino by bluetooth. With bluetooth you are sure that you dont hurt the electronics of the n900. |
Re: n900 and Arduino
i have tried installing arduino IDE on easy debian, but when i try to choose the serial port to upload the sketch the options is greyed out and cant select any port. I guess there is no serial port enabled?. i also tried using the host mode enabler. the arduino light does flashes but the serial port does not get enabled.
i am relly stuck at this point i want to enable serial port on my n900 but not through bluetooth. is there anyway to do that? any help will be greatly appriciated. |
Re: n900 and Arduino
Hi F1R0Z! your post I was very useful for me to install arduino ide in N900 :) thnx! so now i will try to help you with upload code..
i did it just 5 min ago.. via bluetooth :) so after arduino ide i installed bluez in debian chroot (just apt-get install bluetooth..) i paired n900 with the HC-05 module connected with arduino (you can find some tutorial for this ) after that i opened the com port rfcom0 to find the ip adress : hcitool scan sudo rfcomm bind /dev/rfcomm0 xx:xx:xx:xx:xx launch arduino ide and you can find the port frcom0 :) |
All times are GMT. The time now is 01:12. |
vBulletin® Version 3.8.8