drzaiusx11 / create-oi Goto Github PK
View Code? Open in Web Editor NEWA node.js API for interacting with an iRobot Create/Create2 or Roomba 600 Series. Because robots are fun.
A node.js API for interacting with an iRobot Create/Create2 or Roomba 600 Series. Because robots are fun.
npm has older v0.0.4, publish v0.0.5 version to npm
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 ?
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
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.
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
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)
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.