/robo4j-rpi-lego-controller

Robo4J Lego Device Controller using RaspberryPi platform

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

Robo4J-rpi-lego-controller

Robo4J RaspberryPi Lego controller using Logitech GamePad F710

Let's start with example

  • you need to have your GamePad connected to your RapsberryPi device
  • go to project folder release
  • upload following files

properties values are according to the 'raspstill' util documentation

Requirements:

  1. clone and install robo4j project from Robo4J Github organisation
    • Robo4J will be installed into the local maven repository
    • command inside the project root folder:
    $ gradle clean build install
    
  2. clone Robo4J-rpi-camera-client example from Github
    • go the the directory and create FatJar file
    • command:
    $ gralde clean fatJar
    
  3. upload jar file to raspberryPi
    • you can use scp command:
    $ scp ./robo4j-rpi-camera-client-alpha-0.3.jar pi@x.x.x.x:/home/pi
    
  4. run example on raspberryPi client
    $ java -jar robo4j-rpi-camera-client-alpha-0.3.jar
    
  5. image is available over http get request
    • open your favorite browser
    • type link: http://:8025/imageProvider?image.jpg
    • imageProvider is the unit reponsible for providing taken image
    • URI option: image.jpg is the access to the taken image

Notes: RaspberryPi must have successfully installed camera module otherwise default image will be displayed

Default Signal Unavailable

Example of Running example on raspberryPi:

INFO: cameraCommand:raspistill -br 60 -ex nightpreview -co 30 -w 640 -t 1 -tl 100 -h 480 -n -e jpg --nopreview -o -
State before start:
RoboSystem state Uninitialized
================================================
    httpClient                    Initialized
    httpServer                    Initialized
    imageController               Initialized
    imageProvider                 Initialized
    scheduleController            Initialized

State after start:
RoboSystem state Started
================================================
    httpClient                        Started
    httpServer                        Started
    imageController                   Started
    imageProvider                     Started
    scheduleController                Started

Press enter to quit!

Building from Source

The Robo4j framework uses Gradle to build. It's required to create fatJar file and run.

Requirements

Staying in Touch

Follow @robo4j or authors: @miragemiko , @hirt on Twitter. In-depth articles can be found at Robo4j.io or miragemiko blog

License

The Robo4j.io Framework is released under version 3.0 of the General Public License.