Go Down

Topic: Xport -> Displaying Analog Values on a Webpage? (Read 1 time) previous topic - next topic

haxor12

Using the Xport (or I suppose you could use the matchport as well), I'd like to display the analog readings of a temperature sensor on a webpage (generated from the arduino).  It wouldn't have to be real time, perhaps update the temperature every 30 seconds or a minute.

I already have the xport/matchport communication code working (thanks to ladyada) and I just need help modifying it to perform the operation listed above.  Thanks in advance!

haxor12

Perhaps using Processing or modifying ladyada's twitter code would work? Please help!  Thank you.

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

ScooterTDI

It all kind of depends on what kind of setup you want.  Are you going to need continuous datalogging?  Will the web server be the device, your computer, or will the webpage be hosted elsewhere?  Which device are you thinking of using?  If I remember correctly, some of the Xport devices can serve web pages and some cannot.

If you don't need continuous data logging, then I think the easiest way is to have a java applet on your webpage make a socket connection to your device.

 


haxor12

Currently, the webpage code is hosted on the atmel 168 itself as seen in ladyada's examples.  At first datalogging won't be necessary, but it would be neat to have that as a future capability.  How much more complex would that be?

Also, for non-datalogging (just displaying the temp every 30 seconds), do you have some sample code for the "java applet" and socket connection?  Could this be accomplished using processing or something?

Thank you!

ScooterTDI

#4
Mar 25, 2009, 08:48 pm Last Edit: Mar 25, 2009, 08:50 pm by ScooterTDI Reason: 1
Hmmm.... I must be missing something.  Are you planning on using an xport, an xport direct, or an xport direct+?  If using the xport, why have a page hosted by the arduino?  Why not have it hosted by the xport?  You've got 384kb of storage for webpages on the xport and that would free up the arduino to do more.

Since it isn't an absolutely necessary requirement, I'd leave it alone for now until you get the rest working.  

I posted a link to the lantronix site in your other thread that gives you sample java code for an applet that will allow you to connect to the xport and send/recieve data.  


edited



Go Up