Login  Register

Re: ImageJ + Arduino Uno = no communications

Posted by Jerome Mutterer-3 on Jan 18, 2011; 2:01pm
URL: http://imagej.273.s1.nabble.com/ImageJ-Arduino-Uno-no-communications-tp3685917p3685922.html

Stephen,

Do you have the arduino working fine in the Arduino environment ? If yes,
you can find out the exact port name in the Arduino menu Tools>Serial Port.
When upgrading the the Uno, I had the replace the RXTX library by the one
distributed with the Arduino software (look in the Arduino.app package).

Let me know if this works in your case.

Jerome


On Tue, Jan 18, 2011 at 12:14 AM, Nanchy III, Stephen <
[hidden email]> wrote:

> Has anyone had any success communicating with an Arduino microcontroller
> with ImageJ (yes, I know MicroManager is supposed to be able to do it, but
> MM can't be used at the current time).
>
> I'd like to use the "Serial port Macro Extensions" plugin (
> http://imagejdocu.tudor.lu/doku.php?id=plugin:utilities:serial_macro_extensions:startfrom
> http://rsbweb.nih.gov/ij/plugins/index.html) to communicate with an
> Arduino Uno to grab analog voltages while capturing images at various times.
>  I seem to have things properly set now so that I can still run the Arduino
> development environment to program my board while having ImageJ open for
> interactive troubleshooting, but while the plugin's instructions tell the
> user how to address the port ('COM1', 'COM2', etc.) under Windows, there's
> no mention of the proper syntax to use under Mac OS X (running 10.6.5).
>
> I've tried the usual "/dev/tty.usbmodem1d11" (usual for OS X; "COMx"
> doesn't work either) and some variations, but it doesn't seem to want to
> cooperate.
> The macro doesn't crash, so I can figure I have no port conflicts - I'm
> just not specifying it properly to the plugin.
>
> Sample macro I'm using (while the Uno is slamming out ASCII characters
> 20h-7Fh followed by a 10h, at 9600/8/N/1):
> run("serial ext");
> Ext.open("/dev/tty.usbmodem1d11",9600,"");  //or: Ext.open("COM1",9600,"");
> ports = Ext.ports();  print("ports  ="+ports+".");
> active = Ext.active();  print("active  ="+active+".");
> data = Ext.read();  print("data  ="+data+".");
>
>
> 'Log' window results:
> ports  =.
> active  =0.
> data  =.
> (the periods show me there are no hidden characters)
>
>
> Comments?  Ideas?  Fixes?  Thanks.
>
> ________________________________
>
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you are not the named addressee you should not disseminate, distribute,
> retain, or copy this e-mail or any attachments. If you have received this
> email in error please delete and notify the sender.
>