Skip to content

tralves/j5-pi2go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

j5-pi2go

Description

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!

Coming soon!

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:

Leds demo Move demo

What's working so far?

  • 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!

Installation

git clone https://github.com/tralves/j5-pi2go.git
npm install
sudo node index.js

Web UI

git clone https://github.com/tralves/j5-pi2go.git
cd j5-pi2go-ui
npm install
npm run dev