Arduino Duemilanove/Firmata/Processing issue


hi,

i trying read analog pin processing using firmata (just safe).
i connected voltage divider pin3 , verified ok using different sketch on arduino (println gives me reasonable value: 508).

i uploaded standardfirmata sketch arduino , run it, wrote short processing sketch below (i tried 115200 , 57600 port speed, no change).
arduino.list() gives me reassuring message:

stable library
=========================================
native lib version = rxtx-2.1-7
java lib version   = rxtx-2.1-7
  • "com6"


    but see series of 0s, , no apparent tx/rx led blinking on arduino. there known issues duemilanove platform? or (more possible) doing wrong?

    thanks in advance, , sorry trivial question!

    edo


    processing code:

    import processing.serial.*;
    import cc.arduino.*;

    arduino arduino;
    int pin3_val;

    void setup()
    {
     println(arduino.list());
     arduino = new arduino(this, arduino.list()[0], 57600);
    }

    void draw()
    {
     pin3_val = (int) arduino.analogread(3);
     println(pin3_val);
     delay(1000);
    }

i found long thread on issue(s) firmata2.1 has several versions of arduino board. beta7 fix solved problem (so far!). contributors thread!

edo


Arduino Forum > Forum 2005-2010 (read only) > Software > Interfacing > Arduino Duemilanove/Firmata/Processing issue


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums