Part of the GH site of Jan Tomsa
PiGO enables construction of LEGO® models controlled by an application running on Raspberry Pi.
In PiGO version 1, Raspberry Pi hosts a Node.js web application that enables user to directly control motors that are attached to the connectors of PiGO.
I am planning to add some kind of Scratch-like programming capabilities to the web application.
The PiGO module consists of following components:
Arduino is programmed with Standard Firmata which enables control from the computer via USB.
Raspberry Pi hosts a Node.js web application that uses the Johnny-five library to control Arduino.
Arduino controls motors via a dual H-bridge controlled by two pairs of PWM pins - 5+6 and 10+11 (more in preparation)
The LEGO® Power Functions motors are connected to the output pins of dual H-bridge.
Source code: https://github.com/jan-tomsa/pi_go
In preparation ... programming isnt available at this moment - current version of SW allows direct controlling only.