Documentation for starting the GigaBrain controlling service controlling-0.1.0-RELEASE version
Application is run with Java and takes input either a configuration for Raspberry PI pin or PCA9685 pin.
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
Code: Select all
java -jar /usr/local/gigabrain/standalone/controlling-0.1.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=user --CONTROLLING_PASSWORD=test4433
The configuration parameters for Raspberry PI pins:
CONTROLLING_ENABLE_RPI = Boolean (true or false) Turn on PCA9685 configuration
CONTROLLING_OUTPUT_TAGS = String separated with , List the hashtags that are mapped to pins in the same order as PINS
CONTROLLING_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
Code: Select all
java -jar /usr/local/gigabrain/standalone/controlling-0.1.0-RELEASE.jar --CONTROLLING_ENABLE_RPI=true --CONTROLLING_OUTPUT_TAGS=r1,r2,r3 --CONTROLLING_OUTPUT_PINS=1,24,26 --CONTROLLING_USERNAME=user --CONTROLLING_PASSWORD=test4433
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.
The installation script creates these scripts as default. Javadoc documentation will be released soon.