2017 © Pedro PelĂĄez
 

library phpduino

This tool helps to send/receive information for an Arduino device or parallels, using usb port(initially of course)

image

phpduino/phpduino

This tool helps to send/receive information for an Arduino device or parallels, using usb port(initially of course)

  • Saturday, July 30, 2016
  • by vinnyfs89
  • Repository
  • 4 Watchers
  • 5 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 200 % Grown

The README.md

PHPDuino

This tool helps to send/receive information for an Arduino device or parallels, using USB port(initially of course)., (*1)

Configuration

Below we have some steps to check and make basic configs to use PHPDuino: - Plug your Arduino Board using your USB port - Check the usb port that are you using. This code may help you to get it: $ ls -la /dev | grep usb - Give permission to read and write in your USB port location. Example: $ sudo chmod 770 /dev/cu.usbmodem1411 - You will need to know the speed of communication with USB port that will be used between the Arduino Board and Application, like 9000 or 16000, for example. - In some cases is necessary to use an capacitor of 10u between Reset PIN and Ground Pin to works well., (*2)

Example 1 - Sending content

$accessPort = "/dev/cu.usbmodem1411";
$objPHPDuino = new \PHPDuino\PHPDuino($accessPort);
$objPHPDuino->sendContentToDevice("Hello");

Example 2 - Getting content

$accessPort = "/dev/cu.usbmodem1421";
$speedPort = 9600;
$objPHPDuino = new \PHPDuino\PHPDuino($accessPort, $speedPort);
var_dump($objPHPDuino->getContentFromDevice());

The Versions

30/07 2016

dev-master

9999999-dev

This tool helps to send/receive information for an Arduino device or parallels, using usb port(initially of course)

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

by VinĂ­cius Feitosa da Silva

php arduino