i rewrite the samples from http://webzone.k3.mah.se/projects/arduino-workshop/projects/arduino_meets_processing/instructions/index.html
I just wanna get information that arduino transfer to processing.
I use ultrasonic sensor for digital input. And use
port = new Serial (this, "COM2", 9600);
value = port.read();
in processing and
printInteger
in arduino to print out the digital result got from arduino.
i use the correct port and serial number in both arduino and processing. but the out put from processing is not that satisfied. the number is just with the range from 48 to maybe 60. and i cannot find any rules between it and the action i made to arduino.
Can any one help me?
or is there something wrong with my notebook. it only has 2 usb output, and is it caused because that the COM* ports are too busy that processing cannot recogonize them...?
I don't know what does command port.read() get out. is it the value that arduino output? or what type of data can processing get out here, integer? string? or .... someother?
and also what does processing.serial.Serial@2d9c06 and "/dev/cu.usbserial-1B1 mean?
thanks