Jump to content


Photo

Connecting Arduino to PHP


  • Please log in to reply
No replies to this topic

#1 lizziezeemer

lizziezeemer
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 01 December 2016 - 02:31 AM

Hello all! I'm having a hell of a time trying to figure out this problem, because I haven't worked with PHP before (although I'm anxious to learn more) and I figured you all would be the best people to ask.
I'm trying to connect a signal (laser detection) from an arduino board to the computer, where it will go through my website and run a cURL code (the code submits a message to the Slack app, and is currently run using a button on my site). I have my cURL code finished, as well as my arduino IDE code, but I'm having a major disconnect between the two. I know that I have to connect the arduino to the site using a serial port, but I'm pretty out of my league. A colleague gave me a 700-line code called PhpSerial that I was told to include on the code for my site to "open the ports, keep them open and constantly scan for input", but I've had no luck with it at all. I'm increasingly frustrated and could use any advice you could give me! Keep in mind I am completely new at PHP and a lot of what I've researched for the last 2 weeks has gone over my head!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users