GigaBrain Standalone controller

gigabrain.io

Install Instructions

GigaBrain Install

GigaBrain Standalone version is run with Java and takes input either a configuration for Raspberry PI pin or PCA9685 pin.

Currently tested versions Raspberry PI 3 B V1.2 model. Raspbian 4.9 Please test with your Raspberry device and send feedback.

How to install manually ?

Access GigaBrain

How to connect with PCA9685 board ?

Connect the PCA9685 board to Raspberry Pi with these instructions.

Adafruit Raspberry Pi PCA9685 instructions

Enable the I2C to connect with the PCA9685 board

Enable I2C on Raspberry Pi
The configuration parameters for PCA9685:
CONTROLLING_ENABLE_PCA9685 = Boolean (true or false) Turn on PCA9685 configuration
CONTROLLING_PCA9685_OUTPUT_TAGS = String separated with , List the hashtags that are mapped to pins in the same order as PINS
CONTROLLING_PCA9685_OUTPUT_PINS = Integer List the pin numbers that are mapped to output GPIO ports in the same order as TAGS
CONTROLLING_USERNAME = String User interface username
CONTROLLING_PASSWORD = String User interface password
CONTROLLING_STOPTIME = After the movement cycle how long to wait before the movement stop signal is sent, default 500 ms 
CONTROLLING_DELAYTIME = How much delay there is between single movements, default 10 ms
CONTROLLING_SHUTDOWNTIME = How long the controller is on from the last control movement, default 300000ms 5min

java -jar ~/gigabrain/controlling-1.0.0-RELEASE.jar --CONTROLLING_ENABLE_PCA9685=true --CONTROLLING_PCA9685_OUTPUT_TAGS=r1,r2,r3,r4,r5,r6,r7,r8,l1,l2,l3,l4,l5,l6,l7,l8 --CONTROLLING_PCA9685_OUTPUT_PINS=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 --CONTROLLING_USERNAME=john --CONTROLLING_PASSWORD='{bcrypt}$2a$10$AkKVjmFjr.eTCxiUK5XGr.iD/lFSfs64gU7LhcNz2NbOVAKh0Zp6i' > /home/pi/gigabrain/logs/standalone.log 2>&1 &  

How to connect with PiBlaster ?

Install the PiBlaster from

https://github.com/sarfata/pi-blaster
PiBlaster by default has 9 output GPIO pins 4,17,18,27,21,22,23,24,25 and the default output is 100Hz verified by testing with an oscilloscope

If you are running with Pi Blaster make sure that you do not use any GPIO pins for input devices.
The reserved GPIO pins for output are 4,17,18,27,21,22,23,24,25

The configuration parameters for PiBlaster pins:
CONTROLLING_ENABLE_PIBLASTER = Boolean (true or false) Turn on Raspberry Pi PiBlaster configuration
CONTROLLING_PIBLASTER_OUTPUT_TAGS = String separated with , List the hashtags that are mapped to pins in the same order as PINS
CONTROLLING_PIBLASTER_OUTPUT_PINS = String separated with , List the pin numbers that are mapped to output GPIO ports in the same order as TAGS
CONTROLLING_USERNAME = String User username
CONTROLLING_PASSWORD = String User BCrypted password 
CONTROLLING_STOPTIME = After the movement cycle how long to wait before the movement stop signal is sent, default 500 ms 
CONTROLLING_DELAYTIME = How much delay there is between single movements, default 10 ms
CONTROLLING_SHUTDOWNTIME = How long the controller is on from the last control movement, default 300000ms 5min

Run command:
java -jar ~/gigabrain/controlling-1.0.0-RELEASE.jar --CONTROLLING_ENABLE_PIBLASTER=true --CONTROLLING_PIBLASTER_OUTPUT_TAGS=r1,r2,r4,r5,l1,l2,l4,l5 --CONTROLLING_PIBLASTER_OUTPUT_PINS=4,17,18,27,21,22,23,24 --CONTROLLING_USERNAME=john --CONTROLLING_PASSWORD='{bcrypt}$2a$10$AkKVjmFjr.eTCxiUK5XGr.iD/lFSfs64gU7LhcNz2NbOVAKh0Zp6i' > /home/pi/gigabrain/logs/standalone.log 2>&1 &

The maximum number of pins to control for PCA9685 in this version is 16, one board in 0x40 bus is configured automatically. The user interface has 18 controls so you have to choose which 2 will be left out from configuration. In default configuration r9 and l9 are left out.

How to install with a script ?

Access GigaBrain

How to use GigaBrain ?

Make sure that you have Raspbian 4.9 installed on your SD card Install the newest Raspbian official installation

Share the Wifi hotspot with iPhone or iPad, Android phone or tablet, PC with a touch screen and after that connect your Raspberry Pi to the same Wifi with your mobile phone

You can also connect your touch screen and Raspberry Pi with the same Wifi hotspot device, as long as the devices see each others IP addresses.

One option also is to create a Wifi hotspot with your Raspberry Pi and connect your mobile device to that Wifi. This is an advanced option

Find the IP address of your Raspberry Pi with Command line command: host raspberrypi

Install GigaBrain to your Raspberry Pi and setup the device. If you are running with Pi Blaster make sure that you do not use any GPIO pins for input devices. The reserved GPIO pins for output are 4,17,18,27,21,22,23,24,25

Open up the browser from your mobile phone and type the address for example: http://192.0.1.23:5800 Make sure that the port number :5800 is added after the IP address of your Raspberry Pi

Log in with the same username and password that you installed GigaBrain with and start your show!

Questions or comments ?

gigabrain@tuta.io