PiGO - module for controlling LEGO® Power functions models/robots with Raspberry Pi

Part of the GH site of Jan Tomsa

PiGO module

Description

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.


Construction

How the module is constructed and programmed

The PiGO module consists of following components:

  • Arduino Pro Mini
  • Dual H-bridge driver(s)
  • LEGO® Power Functions connectors

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.



Programming in PiGO

How to control/program the robots using PiGO

In preparation ... programming isnt available at this moment - current version of SW allows direct controlling only.


Demo projects

IoBDP - Internet of Baby Doll Prams


... back to main page

Main