Pages: [1]   Go Down
Author Topic: processing.js basics  (Read 1638 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 217
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Confused by the basics..

I want to save data from an Arduino to machine on the net. I guess I'd use processing to do that. Would I use something to write to a MYSQL database?

Next, to read that database and display that data on a web page, I'd need processing.js running on server? Or do I have that wrong?
PHP?

Open to ideas!

Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 601
Posts: 48566
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I want to save data from an Arduino to machine on the net.
Is the Arduino equipped with an Ethernet shield, or is it simply sending data to your PC and expecting the PC to talk to the "machine on the net"?

Quote
I guess I'd use processing to do that.
Not on a web server.

Quote
Would I use something to write to a MYSQL database?
Depends on the kind of data you want to save, and how you want to save it.

Quote
Next, to read that database and display that data on a web page, I'd need processing.js running on server?
Why? There are plenty of options, depending on the OS of the server.

Quote
PHP?
Yes? You have a question about PHP?
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 217
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


I am open to whatever is best way to do this.

Gather data.
Save that data.
Display on the web.

Suggestions?
I'm open to any setup really.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Simplifying Technology For Life
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

php is a easy route to take as it is simple to carry out the plot as there are a lot of libraries out there that does the graphing for free.

here is one post that demonstrates the same .

http://scouris.wordpress.com/2010/09/10/temperature-sensing-with-arduino-php-and-jquery/

hope this helps !

Thanks,
Ram
Logged

Technical Evangelist/Writer,
Tenet Technetronics,
Bangalore, India
 

Offline Offline
Full Member
***
Karma: 0
Posts: 217
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So using PHP I could get data from a database on the server and serve it as a web page, but how do I get from an Arduno in one location to write to a database on a server somewhere else?
Would I connect the Arduino to a local machine running something like processing to get the data and then send it to that server?

Or is there a better way to do this whole thing?


Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Simplifying Technology For Life
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

To have the arduino post data to a central server there are two ways.

Option 1:
As you rightly said hook up the arduino to a PC and run a PC program (processing/python..etc) that can read and post to the web. This solves the purpose but not an elegant solution though but could serve as a good starting point.

Option 2:
Arduino + ethernet shield (needs a wired internet connection) or Arduino + GPRS shield (Uses the cell phone data service)  or Arduino + wifi shield (uses wireless internet connection) which could be a stand alone solution posting data to the server.

Hope these directions help !

Thanks,
Ram
Logged

Technical Evangelist/Writer,
Tenet Technetronics,
Bangalore, India
 

Pages: [1]   Go Up
Jump to: