analog input from magnetic sensor melexis 90217


what can if choose sensor analog inputs?can represent

them somehow?can store on/off inputs processing program or a

java code , represent them diagram or statistical ''pie''?
can measure them , give average distance of magnet,the min , max values?
for example how represent (flux density in gauss) analog (distance in mils) in oxy system?

my project http://www.bryanchung.net/?p=283 , gives code
code: [select]
import processing.serial.*;

serial port;
final int lf = 10;
boolean led;

void setup() {
 size(600,600);
 println(serial.list());
 port = new serial(this,serial.list()[1],9600);
 led = false;
 framerate(15);
 smooth();
 nostroke();
 fill(100,100,100);
}

void draw() {
 background(0);
 if (port.available()>0) {
   string s1 = port.readstringuntil(lf);
   if (s1!=null) {
     s1 = trim(s1);
     if (s1.equals("1")) {
       fill(255,200,0);
     } else {
       fill(100,100,100);
     }
   }
 }
 ellipse(width/2,height/2,300,300);
}

i cant understand does...

your sketch processing, run on pc, not arduino.


Arduino Forum > Forum 2005-2010 (read only) > Software > Interfacing > analog input from magnetic sensor melexis 90217


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