This is a johnny-five interface for the awesome robot kit Pi2Go (not Pi2Go-Lite!). With this, you will be able access most of the sensors, motors and leds in the Pi2Go.
I went with all the trouble of figuring out the right pins and johnny-five modules (even had to implement one) to make your Pi2Go a nodebot ready to go!
This lib is becoming more independent and ready to drop on your node.js project. The following features are in the testing phase:
- Store the state of the robot. Ex:
a = pi2go.centerObstacle; // a = false;
- Improved API;
- Listeners. Ex:
pi2go.on('center obstacle', function(val){
// new obstacle!
})
Video demos:
- RGB Leds (front, back, left, right);
- Obstacle sensors (right, left, center);
- Line sensors (left, right);
- Button;
- Light sensors (front/right, front/left, back/right, back/left);
- Motors!
- Front proximity sensor!
git clone https://github.com/tralves/j5-pi2go.git
npm install
sudo node index.js
git clone https://github.com/tralves/j5-pi2go.git
cd j5-pi2go-ui
npm install
npm run dev