Giter Site home page Giter Site logo

carica-firmata's Introduction

Carica Firmata

Build Status HHVM Status License Total Downloads Latest Stable Version Latest Unstable Version

License: The MIT License

Copyright: 2013 Thomas Weinert [email protected]

Carica Firmata is a PHP client library for the Firmata protocol.

It's a learning project not a product. Use it at your own risk.

![Gitter](https://badges.gitter.im/Join Chat.svg)

Basics

The repository provides a library to control an Arduino using the Firmata server sketch.

It was originally based on the Javascript implementation by Julian Gautier.

Dependencies

Carica Firmata uses Carica Io a non blocking I/O library for PHP. At least PHP 5.4 is needed. On Windows, Serproxy should be used to map serial ports to tcp.

Installation

Carica Firmata is available on Packagist. Use Composer to add it as an dependency into your own projects.

Carica\Firmata\Pin

Carica Firmata provides an OOP abstraction for the pins on an Arduino. Values are stored and only send to the board if changed. The values can be changed using different properties.

  • $pin->value is the original, internal value, the maximum value depends on the resolution of the mode.
  • $pin->digital is a boolean value and sets the pin to low/high
  • $pin->analog is a float between 0 and 1, the need value is calculated internally using the resolution of the current mode.

It is suggested to use the digital/analog properties to support different resolutions.

Carica Chip

Carica Chip uses this project and provides device objects like a led or a motor. Take a look at: https://github.com/ThomasWeinert/carica-chip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.