Coder Social home page Coder Social logo

create-oi's People

Contributors

dijs avatar drzaiusx11 avatar edob avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

create-oi's Issues

Read sensors work, but motors control don't.

Hi, i a trying to control a roomba create 2 through serial port, the connexion and reading sensors work, but motors control don't.

var robot = require("create-oi");
 
robot.init({ serialport: "/dev/ttyUSB0", version: 2 });

robot.on('ready', function() {
        console.log('Ready');
	this.rotate(100); // This don't
});
 
robot.on('bump', function(bumpEvent) {
    console.log(bumpEvent); // This work
});

Any clue how to make it move ?

Few suggestions

Hi, I got iCreate2 recently, I pulled down your respository (very good work) and I noticed that the BAUD RATE is hardcoded to 57600 whereas the iRobot create2 default baud is 115200

        serial = new SerialPort(settings.serialport, { baudrate: 57600, bufferSize: 5 });

to 

     serial = new SerialPort(settings.serialport, {
            baudrate: (typeof settings.baudrate === 'undefined') ? 57600 : settings.baudrate,
            bufferSize: 5
        });  

Can you use the init settings to pass it as parameter rather than hardcoding it? I modified locally and it works, if you are okay I can contribute to your project

I am planning provide functions to program songs etc, I can add it if you make me a contributor

Regards
GOPI

Configurable wait time

Currently the wait time during init steps is hard-coded to 100ms - would be nice if this were an optional argument to the init method.

Create is not working

I am consistently getting this as output...

serial port opened successfully
ready
no data received from create... attempting to connect (again)
ready
no data received from create... attempting to connect (again)
ready
no data received from create... attempting to connect (again)
ready
no data received from create... attempting to connect (again)
ready
no data received from create... attempting to connect (again)

Any idea why?

I am using the iRobot Create 2

Unable to make the irobot create2 work

Hello Jeff,
Im using node.js in windows environment. my serial port is COM4. On running the exampl-wander.js file (after editing the seril port).Im getting this message below. And as soon as I stop the program (Cntrl-C in cmd) the create2 goes into spot mode. Any help would be greatly appreciated.

serial port opened successfully
no data received from create... attempting to connect (again)
no data received from create... attempting to connect (again)

Doesn't Work with recent serialport

This library does not work with current versions of serialport. I've found a fix (just use require("serialport") instead of require("serialport").SerialPort) and will shortly be submitting a PR. But then the fix should be propagated up to npm, and to avoid future breaking changes the dependency given in package.json should probably be more restrictive.

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.