We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
online using arduino? (Read 3121 times)
online using arduino?
Mar 14th, 2008, 12:21pm
 
I was wondering; you've got these wifi usb sticks.

Would it be possible to connect an arduino board, programmed with processing, to one of those sticks, and connect it to the internet? So the program you made using processing could connect to the internet without a computer?

And if possible; is it hard to do this?
Re: online using arduino?
Reply #1 - Mar 14th, 2008, 5:57pm
 
Heedless,

The way you've described this, it's not possible for two reasons:

1) arduino, as far as I know, is not capable of functioning as a USB host.

2) processing doesn't run on the arduino, it runs on a PC and can communicate with the arduino via serial (or any other compatible protocol).

I know that some people have created ethernet capable ardiuno boards, but I don't think they were wireless.  I also think they were just using UDP, not TCP/IP.  You'd have to do some googling, or try the arduino forums for more detailed hardware stuff.  Perhaps someone out there has created a wifi module that can interface with arduino easily...

-Ben
Re: online using arduino?
Reply #2 - Mar 14th, 2008, 7:22pm
 
From the Arduino website:

Quote:
Arduino projects can be stand-alone or they can communicate with software on running on a computer (e.g. Flash, Processing, MaxMSP).


Stand-alone OR communicate with (...) processing. Does that mean you can't program them with processing and run that script without a computer? (like you said at your 2nd point)

I'll look more into the wired internet connection then, thanks
Re: online using arduino?
Reply #3 - Mar 14th, 2008, 9:11pm
 
Yes, that's what it means.  The arduino can communicate with a PC but isn't capable of running applications like processing, flash, or Max.

To write programs that run on the arduino, you need to use the arduino development tool (which looks similar to processing):

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

With that you write C code that gets compiled into a format that the little microprocessor can understand.  So, for example when you want to have processing and arduino work together, you actually have to create TWO separate programs that talk to each other.  One runs on the PC, and one on the arduino.
Re: online using arduino?
Reply #4 - Mar 14th, 2008, 9:49pm
 
That's too bad then... I was planning on buying a Arduino board. But if you need a pc/mac to be able to use processing with it, that limits the possibilities. But I still think it would be nice Smiley

What I wanted to do if it would be possible to programm an Arduino and get it online, is making a Physical Gmail Notifier, with a light for instance, so that you don't have to turn on the computer to see if you've got mail; the light would show it.

Thanks anyway
Re: online using arduino?
Reply #5 - Mar 15th, 2008, 3:10pm
 
hi,

arduino is run by an atmel microcontroller. this means 8 / 16 Mhz of clock speed, and some kB of memory. Should be obvious that this doesn't run java Wink You program the Arduino in C, through its IDE. The Arduino IDE looks similar to the Processing IDE, also the 'simplified C' used in Arduino is quite similar to the simplified Java used in processing. The Arduino can run indipendent from a computer.

It is however possible to connect Microcontrollers to the web, but you'll need some additional hardware, like some serial2ethernet modules. A mature part of Tom Igoe's "Making Things Talk" is just about this topic.
You'll most probably not be able to use the wifi sticks you already have.

For the application you mentioned, you'll probably need a setup like this:

Arduino (has a Led to show 'got mail')
 - communicates to
Lantronix Embedded Device Server (or XPort, or WiMicro)
 - calls the a php script
PHP script on a webserver (checks for new mail)
 - answers back to the Lantronix if we have new mail (true/false)
Re: online using arduino?
Reply #6 - Mar 15th, 2008, 5:26pm
 
I don't know anything about microcontrollers, but I want to learn using them, just as an experiment.

extrapixel wrote on Mar 15th, 2008, 3:10pm:
A mature part of Tom Igoe's "Making Things Talk" is just about this topic.

I just ordered that, like an hour ago Smiley
Re: online using arduino?
Reply #7 - Jun 15th, 2008, 5:40am
 
Yes, it's possible to have your arduino access the internet:

http://www.ladyada.net/make/eshield/

if you want to do it wirelessly, that's more tricky, try doing it over xbee (note that you will probably use the xbee to connect wirelessly to another computer that has internet - as far as i know, there is no xbee -> internet direct interface, but i don't know much about xbee anyways =[):
http://www.arduino.cc/en/Main/ArduinoXbeeShield

if you want small and real wifi, you can try:
http://www.gumstix.com/
but that's a whole 'nother story


for your purposes, i'd try the ladyada's ethernet shield - looks very promising and i'll probably try it myself sometime - i seem to remember that you can access your gmail really easily by using the RSS feed at:

http://mail.google.com/mail/feed/atom

I think you can authenticate in the form:

http://USER:PASSWORD@mail.google.com/mail/feed/atom

with that ":" between the USER and PASSWORD - someone correct me if i'm wrong

(oh, and you might want to use https:// because i think the one i just posted sends your request in cleartext (disclaimer - the https:// might send your request in cleartext anyways, but iono))
Re: online using arduino?
Reply #8 - Nov 14th, 2008, 5:31pm
 
yes it is possible with the http://www.pachube.com.. Thou m still under experimentation of this site.
Page Index Toggle Pages: 1