All Projects → nebrius → Raspi

nebrius / Raspi

Licence: mit
Base functionality for working with a Raspberry Pi from Node.js

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to Raspi

Brachiograph
BrachioGraph is an ultra-cheap (total cost of materials: €14) plotter that can be built with minimal skills.
Stars: ✭ 498 (+166.31%)
Mutual labels:  robotics, raspberry-pi
Mabel
MABEL is a feature-packed, open-source, legged balancing robot based off of the Boston Dynamics Handle robot.
Stars: ✭ 72 (-61.5%)
Mutual labels:  robotics, raspberry-pi
Raspi Io
An IO plugin for Johnny-Five that provides support for the Raspberry Pi
Stars: ✭ 517 (+176.47%)
Mutual labels:  robotics, raspberry-pi
Skiffos
SkiffOS: lightweight & robust cross-compiled Linux distribution optimized for hosting containers.
Stars: ✭ 151 (-19.25%)
Mutual labels:  robotics, raspberry-pi
Poppy Ergo Jr
🤖 Poppy Ergo Jr is an open-source robotic arm based on modular 3D printed conception and low-cost XL-320 motors.
Stars: ✭ 133 (-28.88%)
Mutual labels:  robotics, raspberry-pi
Cylon
JavaScript framework for robotics, drones, and the Internet of Things (IoT)
Stars: ✭ 3,862 (+1965.24%)
Mutual labels:  robotics, raspberry-pi
Pendulum
ROS, ROS2, real-time, control, pendulum
Stars: ✭ 37 (-80.21%)
Mutual labels:  robotics, raspberry-pi
Gopigo
The GoPiGo Robot for Raspberry Pi
Stars: ✭ 329 (+75.94%)
Mutual labels:  robotics, raspberry-pi
Jagcs
Just another ground control station
Stars: ✭ 99 (-47.06%)
Mutual labels:  robotics, raspberry-pi
Ev3dev Lang Java
A project to learn Java and create software for Mindstorms Robots using hardware supported by EV3Dev & the LeJOS way.
Stars: ✭ 79 (-57.75%)
Mutual labels:  robotics, raspberry-pi
Martypi
DEPRECATED - See new ROS integration. 2017 Marty RaspberryPi API by Robotical Ltd.
Stars: ✭ 11 (-94.12%)
Mutual labels:  robotics, raspberry-pi
Robot
Simple library for controlling a raspberry pi based robot
Stars: ✭ 156 (-16.58%)
Mutual labels:  robotics, raspberry-pi
Gopigo3
The GoPiGo3 is a Raspberry Pi Robot!
Stars: ✭ 74 (-60.43%)
Mutual labels:  robotics, raspberry-pi
Raspberryturk
The Raspberry Turk is a robot that can play chess—it's entirely open source, based on Raspberry Pi, and inspired by the 18th century chess playing machine, the Mechanical Turk.
Stars: ✭ 140 (-25.13%)
Mutual labels:  robotics, raspberry-pi
Johnny Five
JavaScript Robotics and IoT programming framework, developed at Bocoup.
Stars: ✭ 12,498 (+6583.42%)
Mutual labels:  robotics, raspberry-pi
Robot Gui
A three.js based 3D robot interface.
Stars: ✭ 181 (-3.21%)
Mutual labels:  robotics
Robopy
Robopy is a python port for Robotics Toolbox in Matlab created by Peter Corke
Stars: ✭ 186 (-0.53%)
Mutual labels:  robotics
Wirehome.core
Wirehome.Core is a home automation system written in C# targeting .NET Core. It runs on Linux, Windows and macOS.
Stars: ✭ 180 (-3.74%)
Mutual labels:  raspberry-pi
Ros Control Center
A web-based control center for ROS robots.
Stars: ✭ 180 (-3.74%)
Mutual labels:  robotics
Ros2 rust
Rust bindings for ROS2
Stars: ✭ 187 (+0%)
Mutual labels:  robotics

Raspi.js

Gitter

Raspi.js provides initialization and base support for the Raspberry Pi. This module, along with Raspi Board and Raspi Peripheral, provide support for various peripherals on the Raspberry Pi. These libraries form the basis for Raspi IO, an IO plugin that adds support for the Raspberry Pi to Johnny-Five.

Check out the following peripheral API modules:

If you have a bug report, feature request, or wish to contribute code, please be sure to check out the Raspi IO Contributing Guide.

System Requirements

Detailed instructions for getting a Raspberry Pi ready for NodeBots, including how to install Node.js, can be found in the wiki

Warning: when using this module, it MUST be installed with user-level permissions, but run with root permissions (e.g. sudo node index.js).

Installation

Install with npm:

npm install raspi

Note: this project is written in TypeScript and includes type definitions in the package.json file. This means that if you want to use it from TypeScript, you don't need to install a separate @types module.

Example Usage

In TypeScript/ES6:

import { init } from 'raspi';
import { DigitalInput, DigitalOutput } from 'raspi-gpio';

init(() => {
  const input = new DigitalInput('P1-3');
  const output = new DigitalOutput('P1-5');
  output.write(input.read());
});

in JavaScript:

const raspi = require('raspi');
const gpio = require('raspi-gpio');

raspi.init(() => {
  const input = new gpio.DigitalInput('P1-3');
  const output = new gpio.DigitalOutput('P1-5');
  output.write(input.read());
});

API

Module Constants

Constant Description
module An easily consumable object for indirectly passing this module around. Intended specifically for use by Core IO (details coming soon)
Property Type Description
init Alias of the init method

init(cb)

The init method initializes the library suite. This method MUST be called before using any peripherals.

Arguments:

Argument Type Description
cb Function Callback to be called once the board has been initialized. Takes no arguments
Takes no arguments

Returns: None

License

The MIT License (MIT)

Copyright (c) 2014-2017 Bryan Hughes [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].