Show Posts
Pages: [1]
1  Using Arduino / Interfacing w/ Software on the Computer / Re: processing arduino program on: December 09, 2011, 05:09:38 am
demillanove
2  Using Arduino / Interfacing w/ Software on the Computer / Re: processing arduino program on: December 08, 2011, 02:38:19 pm
thanks for the reply

actually my arduino is connected to the second port, so i changed it
and changed the float variable to integer baut i still get the same result
3  Using Arduino / Interfacing w/ Software on the Computer / processing arduino program on: December 08, 2011, 05:35:31 am
hello all,
i'm trying to follow this tutorial to send feeds from my arduino to pachube http://community.pachube.com/?q=node/12
but the processing sketch always shows 0.0 as sensor value
i tried reading the value in firmata test application and it worked correctly ( that meens the circute is ok and the firmata is loaded correctly)

i'm using arduino demillanova and firmata library 2.2

this is the processing sketch:
Code:
import processing.serial.*;
import cc.arduino.*;

Arduino arduino;
float myValue;

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

void draw()
{
myValue = arduino.analogRead(0);
println(myValue);
}

Pages: [1]