We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I'm new here and I already have a question.
It's about my serial port. I have an Arduino attached to my mac, and it sends data (from 2 potentiometers) to the serial port. I know this works fine because I can see this data in both the Arduino IDE Serial Monitor as well as in terminal. I know my Arduino is on port 9. I have this coded in Processing, and it worked all fine, until a few days ago.
Since then every program in Processing I start which has something to do with reading data from this port fails, and I get this message: NullPointerException. I then figured out that Processing thinks there's is no data at all from my serial port. (Even a simple example program from this site fails)
How can I fix this? I really have no idea anymore and I'm a bit desperate , so any help is welcome. Thanks in advance, Susan X_X
Answers
https://forum.Processing.org/two/discussion/comment/59904/#Comment_59904
Hello GoToLoop, thanks for your quick reply. Unfortunately your program gives the same output : Null. The funny thing is when I remove one potmeter everything goes well. So maybe the problem is in the Arduino code, not in Processing. I'll try to rewrite it... and when I fixed it (or not), I'll let you know...
I guess maybe each potentiometer needs its own Serial instance. :-??