Go Down

Topic: Internet Control of Arduino (Read 5 times) previous topic - next topic

zoomkat

" Maybe in order to understand mankind, we have to look at the word itself: "Mankind". Basically, it's made up of two separate words - "mank" and "ind". What do these words mean ? It's a mystery, and that's why so is mankind."  - Deep Thoughts by Jack Handy
Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   8)

PaulS

Quote
I am still somewhat confused as to which code goes where? This is the way I think it works, let me know if I am wrong.
PHP or Processing code goes on the Ethernet Shield, this acts like a server and plugs into my router.

You are wrong. The ethernet shield is a hardware extension to the Arduino. The Arduino code controls what the ethernet shield does. The Arduino with ethernet shield plugs into your LAN and acts like a server or client depending on the code installed.

Quote
But if you do not have an ethernet shield I can load the PHP code or Processing code into a program called Apache on my desktop which simulates a server.

More no. Apache is a web server for the PC. It can serve up pages that include PHP scripting.

Quote
What is the differences between Processing and PHP?

What is the difference between a tree and an alligator? They are completely different applications for different purposes.

Quote
To create a webpage with buttons that will work on my blackberry to trigger LED's I need to write HTML code?

Yes.

Quote
Which software do I use to create buttons on a website

Any software that can output an html file.

Quote
can it be done in PHP or processing?

PHP - Yes. Processing - No.

Quote
I see a lot of people using MySQL in there projects, what is that for?

Its a relational database application.

tkbyd

Quote
Which software do I use to create buttons on a website


Probably best to start with a simple text editor, because then you know EXACTLY what is going into the webpage you've made with a button.

Making the webpage isn't the hard part. Making a webpage with a button, and making the computer serving the webpage deal with responding to a user clicking on the button is the hard part.

Do you know how to create a simple webpage that merely displays "Hello World" when someone goes to it? If not, you need to start there.

Details at...

http://www.arunet.co.uk/tkboyd/hh5.htm

That page assumes that you are going to have someone else host your webpage. In the Arduino world, you will eventually have to master everything at the page above, PLUS set up your Arduino so that it is hosting the page you have written. Not impossible... but a bit of a "journey".

If anyone has a "how to set up your Arduino to serve a "Hello World" webpage" guide, I would love to know where that page (the guide) is....


Jonathan Oxer

Quote
If anyone has a "how to set up your Arduino to serve a "Hello World" webpage" guide, I would love to know where that page (the guide) is....


It's not quite a tutorial / guide, but if you install the Ethernet library (required for the official Ethernet shield) there's always:

Arduino IDE -> File -> Examples -> Ethernet -> WebServer

--
Jon
Ethernet shield with Power-over-Ethernet support and proto area: www.freetronics.com/ethernet-shield

tkbyd

Not quite what I was looking for, but if you are on a similar quest, the code at...

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1294035237

... might be of interest. Within that is sort of an "Hello world".

Go Up