hmmm ok i'd say grafical is way of designing motion or motionless images that gives the observer an artistic sense of hamony!!
After alot of research i still can't surely say tha a graph of a value can't be constructed using arduino.Probably someone can only make a one-dimensional graph to show the value on that simle text -like interface arduino has.But i'm still trying to think of a way to do this before using processing for something more complete.Heres the code with tags:
void setup() {
// initialize serial: start serial communication at 9600kb/s
Serial.begin(9600);
pinMode(2, INPUT);//attach each one of the 8 adc outputs to a digital pin on the arduino
pinMode(3, INPUT);// and assign digital pins as inputs(pins 1 and 0 are used for other purpose)
pinMode(4, INPUT);
pinMode(5, INPUT);
pinMode(6, INPUT);
pinMode(7, INPUT);
pinMode(8, INPUT);
pinMode(9, INPUT);
}
void loop() {
int a = digitalRead(2);//read each pins output and to use it as an input later store it in a variable at the same time
int b = digitalRead(3);//the variables are int because digital pins give an output 0(0 volts from adc) or 1(5 volts from adc)
int c = digitalRead(4);
int d = digitalRead(5);
int e = digitalRead(6);
int f = digitalRead(7);
int g = digitalRead(8);
int h = digitalRead(9);
int val=(a * 1 ) + (b * 2 ) + (c * 4 ) + (d * 8 ) + (e * 16 ) + (f * 32 ) + (g * 64 ) + (h * 128 );//estimate the total outcome of my 8 bit adc
val=((val*19.6)/3.13)/10;//estimate the right temperature
Serial.print("Read switches : ");//print the text
Serial.println(val);//print the value
delay(1000);wait 1sec before you repeat the loop
}
Moderator edit: **</mark> <mark>** tags added.