Coder Social home page Coder Social logo

rschwabco / ev3-nodejs-bluetooth-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wenchaojiang/ev3-nodejs-bluetooth-api

0.0 0.0 0.0 1016 KB

Control your Ev3 robot without hacking into intelligent brick (over bluetooth).

License: MIT License

ev3-nodejs-bluetooth-api's Introduction

Ev3NodeJsBtAPI

Control your Lego Ev3 robot without hacking into intelligent brick (over bluetooth). A nodejs alternative to monobrick http://www.monobrick.dk/

!!!!!!tested on firmware V1.01H!!!!!!!!!

Change log

Exisiting !!!. Implemented Color sensor. For more details, run and read example.js (3 Mar 2014)

Nice !!!, Color sensor can now work in other 2 different modes (light reflection intensity, ambient light intensity) (3 Mar 2014)

Cool, Touch sensor reading implemented, see example.js for details (4 Mar 2014)

motivation

  1. You may not like graphic programming interface provided by official labview software (you know it is for kids :p).
  2. You may not want to heck into intelligent brick (if you do, check out the alternatives: http://www.lejos.org/).
  3. You are a nodejs fan.

If 1 2 3 are true for you, this module is the one for you. The module provide an node js api for controlling Lego Ev3 robot over bluetooth. You can write your robot control program in nodejs, run it on any bluetooth enabled pc/laptop, control your Ev3 robot remotely.

Usage

  1. go into "module"
  2. run "npm install"
  3. pair your laptop/pc with intelligent brick troubleshoot: http://www.ev-3.net/en/archives/97
  4. run example.js: "node example.js"
  5. see "example.js" for more details

Example.js

./example.js provide an interacive terminal interface for controlling motors.

press a, b, c or d to switch control among motors.

press up or down arrow to control motor output.

a demo available at : http://www.youtube.com/watch?v=HHfj1cx_dlw

press ctrl-C to quit.

Please Help

This module is built by reverse engineering the bluetooch communication between offical android Lego app and Ev3 robot. Currently I only deciphered the control protocol for motors, not sensors. If you have any information on the protocol, please help.

New to nodejs and async world, please feel free to refector my code.

You can help on testing on various Ev3 firmwares.

ev3-nodejs-bluetooth-api's People

Contributors

wenchaojiang avatar

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.