Jump to content

Connecting Arduino to PHP


lizziezeemer

Recommended Posts

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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.