Help with trying out Tom Igoe code
in
Integration and Hardware
•
1 year ago
Hi there,
I was trying out the code in this interview:
http://wiki.processing.org/w/Tom_Igoe_Interview
Instead of potentiometers, I have a triple-axis accelerometer and triple-axis gyroscope feeding in six analog signals. So for all intents and purposes, the inputs are the same. They feed in through bluetooth, and I've verified many times that the signals are coming in properly by using Putty.
I basically copy/pasted his code into processing and clicked Run, and it worked great the first time! There were six signals streaming across the screen that changed shapes as I moved my device in mid-air. I was so excited.
After I stopped the program, it has never run again. Everytime I try it, I get one of two errors, or it the program will display a blank screen. I've tried different things, restarting my computer, reconnecting the bluetooth, etc etc. It just won't run.
Any ideas?
java.net.UnknownHostException: processing.orgat java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)at java.net.Socket.connect(Socket.java:529)at java.net.Socket.connect(Socket.java:478)at sun.net.NetworkClient.doConnect(NetworkClient.java:163)at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)at sun.net.www.http.HttpClient.New(HttpClient.java:306)at sun.net.www.http.HttpClient.New(HttpClient.java:323)at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)at java.net.URL.openStream(URL.java:1010)at processing.app.UpdateCheck.readInt(UpdateCheck.java:131)at processing.app.UpdateCheck.updateCheck(UpdateCheck.java:93)at processing.app.UpdateCheck$1.run(UpdateCheck.java:63)at java.lang.Thread.run(Thread.java:662)
gnu.io.PortInUseException: Unknown Applicationat gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354)at processing.serial.Serial.<init>(Unknown Source)at processing.serial.Serial.<init>(Unknown Source)at broot_tomigoe.setup(broot_tomigoe.java:41)at processing.core.PApplet.handleDraw(Unknown Source)at processing.core.PApplet.run(Unknown Source)at java.lang.Thread.run(Thread.java:662)Exception in thread "Animation Thread" java.lang.RuntimeException: Error inside Serial.<init>()at processing.serial.Serial.errorMessage(Unknown Source)at processing.serial.Serial.<init>(Unknown Source)at processing.serial.Serial.<init>(Unknown Source)at broot_tomigoe.setup(broot_tomigoe.java:41)at processing.core.PApplet.handleDraw(Unknown Source)at processing.core.PApplet.run(Unknown Source)at java.lang.Thread.run(Thread.java:662)
Appreciate any help.
Thanks,
Nate
1