He explains pretty thoroughly how each code works, however, none of the tutorials I went through helped me figure out how to get the PHP code to read the arduino Serial.
After downloading a PHP terminal to try and have communication between both parties, I got the arduino to respond saying that it was getting data from the computer but never received it back on the computer.
This one tutorial explained the communication between the Arduino Serial and the computer as a black hole:
"In my previous post I discussed basics of serial communication between Arduino and PHP. Theory behind it is very simple. It all comes down to writing to a file. Simplicity of the serial communication paradoxically might contribute to confusion and surprising results. Serial device is like a black hole when you think about it. You send data inside but there is no feedback. You don’t know has your message arrived or not. You don’t know is your transmission going to be divided into multiple chunks or will arrive at one peace. There is no guarantee no feedback. On top of that there are some differences between operating systems and Arduino peculiarities. All of that combined together can confuse for a few hours or even discourage from the project."
No comments:
Post a Comment