Setting up a Raspberry Pi to run a Finch Robot
Half the battle is getting the Raspberry Pi up and running with Java installed. Once you’ve done that, the rest is pretty simple.
- Firstly Install Rasbian wheezy on your Raspberry Pi.
- Then install Java 8.
- Create somewhere nice for us to work.
mkdir /home/mrn/dev/finch cd /home/mrn/dev/finch
- For the latest version of the Finch development kit go to http://www.finchrobot.com/raspberry-pi. Search for BBTechSoftwareForPi and download it.
wget https://dl.dropbox.com/u/9303915/BBTechSoftwareForPi.zip
- They’ve done that thing where you don’t get a containing folder inside the zip, so we’ll have to make it.
mkdir BBTechSoftwareForPi-9303915 cd BBTechSoftwareForPi-9303915 unzip ../BBTechSoftwareForPi.zip
- Zips don’t hold unix permissions so we’ll have to add execute permissions to anything we want to run.
chmod +x Configure
- We need to run this as
root
because it copies libraries into protected places.sudo ./Configure
- That’s kind of it. Make sure the Finch robot is connected.
- Enter the Java folder
cd FinchJava
- Compile the sample program
javac -classpath :finch.jar Code/simpleInput/LEDSetter.java
- And run it
java -classpath :finch.jar Code/simpleInput/LEDSetter
No feedback yet
Form is loading...