My question is first of all if its possible to graph the temperature along with time by combining these two examples and making some changes.
One problem i am facing is how to implement the ILine2DEquation in order to get my serial incoming valye returned on y axis.
Secondly i m having problem getting the value from serial as a float so im at a dillema whether to send the final temperature from arduino(will be a float) or to send the 8 binary adc outputs(will be integers) from the adc converter to processing and then estimate the final temperature each time.
Now why can i only get my wright results by using these codes.
I mean why should the value variable in arduino sketch be an int.
And if it can be a float how do i do it?
float someCrap = 3.14159;Serial.print(someCrap);
do we always declare the pin number with an int?
When i use a float either for declaring only the variable or both the variable and the pin i continue getting the wright result on the arduino screen but cant read the right values in processing.
Does it even matter in what kind of variable i store the port.read in the processing sketch since the serial values always get to processing in ascii format?
I havent found documentation for these queries..
What i want to finally do when i no enough is graph the temperature that is estimated by a circuit connected to my arduino and which ends up in an 8bit value(the temperature comming out of an adc0804).So i have 8 inputs on 8digital pins on the arduino and have to make an equation according to my external circuit and send the final value to processing in order to graph nicelly with gwoptics library.The value will always be a float(maybe i'll have to make it an int to work!!)