To follow up on the cloud project here its a summary of the excercise and how Kenny Liz and I made the Hello world happen:
YOU WILL NEED:
- Arduino
- LEDs, wires and resistors
- processing
- PHP
Our first attempt to communicate with Arduino was using a SUPER-complicated PHP script, which can be found at the following address:
http://a.parsons.edu/~rorak586/
this code works, but just in the the localhost, when trying to access de code from the internet it doesnot work, and we have a strong feeling is the USB port (how are we getting access to the arduino from the internet).
The second code that we used can be found here. this code works it is still not very efficient since we were using the serial library and both arduino and processing had to be open and running.
Finallly we worked with this code that uses firmatta to connect to arduino and parses the data from the PHP in a more efficient way.
WHAT WE LEARNED
- There are multiple ways to make this Hello world (from the cloud) happen
- You should devide your ideas, it works best to connect processing to the php and the worry about talking to Arduino.
- The easiest and more efficient way to talk to Arduino from processing is with Firmatta.
Please contact Liz, Kenny or Alvaro if you have more questions with this project.
Comments
You can follow this conversation by subscribing to the comment feed for this post.