For My P-comp midterm I did initial research and development of a video game controller to for Meteor defense game I was working on in ICM. The idea is to use 2 potentiometers and on one button to control a satellite that orbits the earth and fire rockets onto in coming meteors. The game has been partially developed in my ICM class.
Button would fire rocket, that would hit and destroy meteor.
Enclosure – and the Rasberry PI
I wanted to make the entire game enclosed in the controller. In order to do this I speculated the possibility of using a Rasberry Pi to run processing. BIG MISTAKE. But you live and learn.
I spent 2 days just trying to get the rasberry pi to connect to the internet. I have some previous Linux knowledge, but by no means an expert. I didn’t not have a wirelles dongle, so I attempted to use the ethernet internet connection, sharing my internet from my Laptop to the rasberry Pi. I was unable to get this to work!
Once I received my wireless card from china, I was able to download processing, and use the following code from: http://cagewebdev.com/index.php/raspberry-pi-running-processing-on-your-raspi/
This is how to install it on your Raspberry PI:
- install the java 6 sdk
sudo apt-get install librxtx-java openjdk-6-jdk
- download and unzip the Linux (x86) version of Processing 1.5.1 to the /home/pidirectory
- change your working directory to /home/pi/processing-1.5.1 before executing the following commands
- delete the directory /home/pi/processing-1.5.1/java
sudo rm -rf java
- create a symbolic link to the system’s java SDK
sudo ln -s /usr/lib/jvm/java-6-openjdk-armhf java
- delete the RXTXcomm.jar file
sudo rm modes/java/libraries/serial/library/RXTXcomm.jar
- copy the system’s RXTXcomm.jar file
cp /usr/share/java/RXTXcomm.jar modes/java/libraries/serial/library/
- fire up Processing from the file manager (or LZTerminal)
(ignore the ‘Not found of this java VM‘ warning!)
PROCESSING IS NOW UP-AND-RUNNING!!!
Use this same tutorial for installing the current beta version of Processing (2.0b7)!
I had some trouble, as linux was stalling when downloading some files. I had to first update the linux Raspbian os before I was able to install Processing.
Finally I got Processing running on the Rasberry Pi!!!
But it was WAY TO SLOW.
All in all I probably spent about 15 hours (maybe more) working on the rasberry pi. It is definantly not the solution I needed as it can not handle Processing. Processing seems to use a lot of Processing power.
I speculate there are some other “simpler” programming languages that could use the rasberry pi as the computer in conjunction with the arduino. My main purpose in this experiment is to try to detach my self from using a laptop in order to run games or visualizations that I would like to control with Arduino controllers.
Someone suggested using open frameworks, or learning C++?
This did not end up being my midterm, but was part of my learning and experimenting process with P-comp.