Skip to content

A project to use my Lego NXT and it's servos to control blindes via Homebridge with HomeKit

Notifications You must be signed in to change notification settings

Lukcyluke/NXT-blindes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TODO

  1. build api
  2. programm http server
  3. run with https://www.npmjs.com/package/homebridge-minimal-http-blinds
  4. use HAP-Java

Installing the tool chain

MacOS

To compile and flash the software to your NXT 2.0 Brick leJos is needed. Watch the following video until 12:24 and follow the steps.

Video

The steps are:

  1. Download and install Java 6 from https://support.apple.com/kb/DL1572?locale=de_DE.

Notice that your java virtual machine isn't installed in the location mentioned in the video. It is installed at
/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

To determine the location run (see https://stackoverflow.com/a/26507569)

/usr/libexec/java_home -V
  1. Download and install leJOS from https://sourceforge.net/projects/lejos/files/lejos-NXJ/. Choose the latest version.
  • Unpack the tar.gz

  • Move the folder to some suitable directory (home for instance).

    mv ~/Downloads/leJOS_NXJ_* ~/leJOS_NXJ
  • Set the environment variables. You can use the commands from this page. But make sure to use the paths from 1. and 2.

    export NXJ_HOME="~/leJOS_NXJ"
    export LEJOS_NXT_JAVA_HOME="/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home"
    export PATH="$NXJ_HOME/bin:$PATH"
  1. Install the drivers for the brick. Download the drivers from https://www.lego.com/de-de/mindstorms/downloads and install them.

Now you should be able to build and flash when running the build.sh.

Linux and Windows

Sorry, I don't have information about that.

About

A project to use my Lego NXT and it's servos to control blindes via Homebridge with HomeKit

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published