Go Down

Topic: how processing get data out from arduino (Read 1 time) previous topic - next topic

iconma

Feb 15, 2007, 05:32 am Last Edit: Feb 15, 2007, 05:37 am by iconma Reason: 1
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
Code: [Select]
 port = new Serial (this, "COM2", 9600);
 value = port.read();

in processing and
Code: [Select]
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...?

iconma

#1
Feb 15, 2007, 05:35 am Last Edit: Feb 15, 2007, 05:42 am by iconma Reason: 1
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

Go Up