the tutorial said that we had to change the processing code.. i'm kinda confused about this processing code. where should i put this processing code?is it another tab? or where?
2nd, can somebody explain me a little about
import processing.serial
and
port = new Serial (this, Serial.list()[2], 9600)
3rd, this program needs another program right? myGUI?
4th, if I only want to use the arduino and the bluetooth to do simple read and write action, how to do that?
i'm kinda confused about this processing code. where should i put this processing code?
In the Processing IDE.
is it another tab?
More like a whole new application/window.
2nd, can somebody explain me a little about
The first one is Java's equivalent of C's #include.
The second statement generates a list of serial ports that Processing knows are available (Serial.list()), selects the third item in that list ([2]), and connects/binds to that serial port (new Serial(this, portName, 9600)).
3rd, this program needs another program right? myGUI?
That's what I've been telling you. No, someone else's.
4th, if I only want to use the arduino and the bluetooth to do simple read and write action, how to do that?
Well, first you need to define what you want to read from/write to.
i see.. thanks.. it gives me some revelation about what 'processing' is.. at first I thought it was process that done by the code in arduino.. but its not.. hehehe..
Well, first you need to define what you want to read from/write to
i just want to know if my bluetooth works correctly at first, so i want to create a simple program that it I send 1 it will replies with 2, if send 2 it replies 3.. just the data sent and will reply data+1.. the program is okay, but what i need is why my bluetooth won't work with the program, but if i use serial cable the program will work just fine.
the bluetooth pins are connected GND to GND, VCC to 5V, Rx to Tx, Tx to Rx..
baud rate are the same, 9600
the COM port used is correct, I double check the port of the bluetooth.. i don't think the problem is in the COM port..
what else that i could be wrong?
does my explanation clear enough or needs more?
btw why does bluetooth application in processing needs some added code, but my friend can use bluetooth in arduino just like and 'wireless' serial connection?