In processing you can use setpix(X, Y, color) - processing can be downloaded from www.processing.org
My friend Awol i dont need anything fancy and 'grafical' just a real time 2-dimensional point creation.It could be dots or a line...
I'd love to hear your definition of graphical.
Still not too late to go back and make that code legible with CODE TAGS
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.
Somebody please tell me what command to use in arduino in order to clear the monitoring screen.Is it possible to clear it without actually closing the interface?????????????????????????????? ![]()
If you mean the Serial Monitor, then there is no way to clear the screen. If you need to do that, you'll need an alternative terminal application that supports command sequences. I believe PuTTY supports a few, including VT100 and ESC[n.
Why hook up an 8-bit ADC when you could just use the 10-bit ADC in the chip and map the output to 0-255?
That is because this project is a continuation of my first one,that consists of an lm35(thermometer) an lm741(connected as an non-converting operational amplifier) and an adc0804.....