Skip to content

ThomasWeinert/carica-chip

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

Carica Chip

Build Status License Total Downloads Latest Stable Version Latest Unstable Version

License: The MIT License

Copyright: 2013-2018 Thomas Weinert thomas@weinert.info

Carica Chip provides abstraction for hardware access. It implements classes for physical devices connected to an Arduino (or compatible microcontroller) running Firmata.

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

Gitter chat

Basics

The repository provides an (hopefully growing) number of classes representing devices like an led, and potentiometer and so on.

It is inspired by the Johnny Five project.

Dependencies

Carica Chip uses Carica Io a non blocking I/O library for PHP. At least PHP 7.1 is needed. Carica Io defines several intefaces for hardware devices (Pin, ShiftOut, I2C). An implementation of these interfaces is required for Carica Chip.

Currently here is only one implementation - Carica Firmata. This is a Firmata client implentation for PHP.

On Windows, Serproxy should be used to map serial ports to tcp.

Installation

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

You can use the skeleton project, too:

$ composer create-project carica/chip-skeleton path --stability=dev

Examples

Examples using Carica Firmata can be found in a separate repository.

About

PHP physical computing

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages