Hello all,
The serial monitor works fine.
I have a processing error on import:
// import the serial library
import processing.serial.*;
error Can't find the processing.serial.* files
Where I can find those files?
Kind regards Johan
Hello all,
The serial monitor works fine.
I have a processing error on import:
// import the serial library
import processing.serial.*;
error Can't find the processing.serial.* files
Where I can find those files?
Kind regards Johan
A little bit further ....
Loaded 2nd part of the Project script in the Processing app.
Then changed the path of the logo to a working/active adress.
2nd part of the script works fine in the Processing app.
The Arduino logo is displayed in the app.
So now the 1st Arduino Serial Monitor,
and the 2nd part Processing app of the script are working seperately.
But they don,t work together yet.
Look like something with a COM port conflict.
Arduino Uno connected by USB and Processing COM port seems to work not together. The Processing app don't respond.
No idea what you are talking about. Post all your code, in code tags, if you have errors post those as well in code tags. Take a picture of your hand drawn wiring diagram.
Copy your code in the post with code tags.
To add code please click this link;
Tom...
![]()
We don't do code links, post in code tags.
//Part1
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.write(analogRead(A0)/4);
delay(1);
}
//Part2
import processing.serial.*;
Serial myPort;
PImage logo;
int bgcolor = 0;
void setup() {
colorMode(HSB, 255);
logo = loadImage("http://arduino.cc/logo.png");
size(logo.width, logo.height);
println("Available serial ports:");
println(Serial.list());
myPort = new Serial(this, Serial.list()[0], 9600);
}
void draw() {
if (myPort.available() > 0) {
bgcolor = myPort.read();
println(bgcolor);
}
background(bgcolor, 255, 255);
image(logo, 0, 0);
}
Now the serial monitor output also in code tags. Now all you need is a couple of well formed English (other languages have their own sub-forum) sentences telling us first what was expected, then what actually happened.
Thanks for so far.
Solved the issue was a COM port mismatch
Both set to COM3 and it works.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.