Rapiro
Repository| Issues
What is Rapiro?
RAPIRO is a cute and affordable robot kit designed to work with a Raspberry Pi. It comes with a Arduino-compatible servo controller.
Where can I get a Rapiro or find more info about it?
To find out more, go to the Rapiro web site.
How to Install
Install the module with:
$ npm install cylon cylon-rapiro
How to Use
Here is an example of a simple program that makes the Rapiro walk:
var Cylon = require('cylon'); // Initialize the robot Cylon.robot({ connections: { rapiro: { adaptor: 'rapiro', port: '/dev/ttyUSB0' } }, devices: { rapiro: { driver: 'rapiro' } }, work: function(my) { my['doneWalking'] = false ; console.log("forward"); every(1..second(), function() { if (my['doneWalking'] == false) { my.rapiro.forward(); } }); after(10..seconds(), function() { console.log("halt"); my.rapiro.stop(); my['doneWalking'] = true; }); } }).start();
How to Connect
If you are connected from a Raspberry Pi to the Rapiro board, it will appear as serial port /dev/ttyACM0
.
You can find out by running Gort's gort scan serial
command.
Drivers
There is only one driver for the Rapiro.