- Joined
- Jun 22, 2011
- Messages
- 2,431
- Points
- 83
There's definitely something wrong, your timesteps are all over the place with lots of zeros in the middle... can you do the same thing with version 1.5 of Peregrine? to see if it's something I added.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Jesus... ~85% CPU utilization?
Java...
So... the choppiness. Story time!
In an earlier build of Peregrine, I built some logic into the graph rendering. If the time since the last received data and the current data packet differed from the average by a significant amount, a gap would be rendered in the graph.
This "feature" was undocumented (sorry) and was designed to display gaps in the graph where data was not transmitted to Peregrine during a laser test. The original logic was a little too sensitive, so I removed it for the time being so that I could figure out a good threshold for displaying a gap in the data.
The version of Peregrine that Atomicrox based his version on included this undocumented feature. The codebase that I built version 1.5 on did not.
That's why the gaps appear in one version, but do not in another.
Trevor
Which new version, 1.4 or 1.5?
Have you selected the correct protocol/baudrate?
That's awkward... and it works properly with the older version? can you post screenshots of the debug screen on the older version and either of the new versions?
Can you connect over the Arduino serial monitor?
import processing.serial.*;
Serial myPort;
String sensorReading="";
PFont font;
void setup() {
size(400,200);
myPort = new Serial(this, "tty.usbmodem1a1521", 9600);
myPort.bufferUntil('\n');
font = createFont(PFont.list()[2],32);
textFont(font);
}
void draw() {
//The serialEvent controls the display
}
void serialEvent (Serial myPort){
if(sensorReading != null){
sensorReading=trim(sensorReading);
}
writeText("Sensor Reading: " + sensorReading);
}
void writeText(String textToWrite){
background(255);
fill(0);
text(textToWrite, width/20, height/2);
}
JAVA's demanding 94% CPU usage just for opening Peregrine & I've seen it up to 100% before I've clicked connect and start buttons.
My computer has no problems running big apps like wavelab & sony acid pro, It plays 1080p MKV files fine. All that demands far less on my CPU than JAVA which does not like single core CPU's it seems.
I'm running Windows 7 x64 OS & the computers an HP Pavillion DM3 with 3GB ram+256GB SSD HDD
It's an AMD Athlon II Neo K125 Single core Processor @ 1.7Ghz
It's nothing great, as I've had high spec laptop's before & they don't last due to excessive heat!
One thing I've just remembered!
I could not get Trevor's advised build of Processing,
The beta build version 2.0b7
It was removed from the host site: Download \ Processing.org So I'm on v2.1
So if anyone has 2.0b7 available that would be great.
I have an LG G Pad V500 on route with a 1.7 GHz Quad Core CPU so what's needed is a Peregrine.APK build so I can test out Wades BT add on
Action to perform at the end> set to stop results in attachment!
Rob