yofercho88 / arduinoscope

Automatically exported from code.google.com/p/arduinoscope
0 stars 0 forks source link

Problem with Arduino UNO #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Connect Arduino UNO and upload sketch
2. Launch processing and the SimpleSerialArduinoscope
3. Nothing happens

What is the expected output? What do you see instead?
I expect to see the same output like my Duemilanove 328p, but with the UNO all 
channels show readings of 0

What version of the product are you using? On what operating system?
Latest Arduino IDE and Processing, Mac OS x 10.6.7

Please provide any additional information below.

Original issue reported on code.google.com by zayanime...@gmail.com on 21 Feb 2011 at 12:33

GoogleCodeExporter commented 8 years ago
Looks like on line 87 of SimpleSerialArduinoscope.pde it assigns the port to 
the first Serial port it finds.  If your UNO is not that first serial port 
(possibly because, for example, you also have your FTDI cable hooked up and IT 
is the first serial port) then it won't establish the connection properly.  (It 
would probably be best if there were some mechanism for selecting which serial 
port it attempts to connect to the Arduino on, rather than having it be 
hardcoded like it currently is.)  In the meantime, try playing around with your 
serial port connections and maybe you'll find a combination that lets it read 
the Arduino.

Best Wishes,
Tcepsa

Original comment by Tce...@gmail.com on 29 May 2011 at 4:46

GoogleCodeExporter commented 8 years ago
On Ubuntu 11.04 the serial port of the Adurino UNO is /dev/ttyACM0 . 
Unfortunately the Processing environment doesn't recognize this port. See:
http://code.google.com/p/processing/issues/detail?id=634
After symlinking the USB serial port to another name
sudo ln -s /dev/ttyACM0 /dev/ttySA0
I got it working.

Original comment by dna4gene...@gmail.com on 30 Jul 2011 at 2:45

GoogleCodeExporter commented 8 years ago
That issue is apparently fixed, and some people say changing the line to
  port = new Serial(this, Serial.list()[1], 115200);
(subscript 1 instead of 0) solves the problem, but that seems hacky.

I'd be happy to write a patch that tries looping over available serial 
connections if someone can give me a hint how to build SimpleSerialArduinoscope 
from source. I've tried various combinations of javac and ant commands but 
haven't gotten anywhere.

Original comment by akkana on 15 Jan 2012 at 6:39

GoogleCodeExporter commented 8 years ago
You can view the source in Processing when you open the example. I think I'd 
eventually like to have this all be user-initiated (user selects correct serial 
port) but for now, you can just set it to use a differnt port by replacing 0 
with whatever serial-port you want to use on teh line that looks liek this:

port = new Serial(this, Serial.list()[0], 115200);

Original comment by david.ko...@gmail.com on 25 Sep 2012 at 6:51