The basic Arduino serial uses “Serial” which is built in serial from the PC via usb. Your processing is talking to the com port on the PC, but the Arduino code is reading “xbee” which is using software serial on 2 pins. Waiting for your proposals, thanks for your time and help! Serial.println("El puerto XBEE esta a la escucha!") SoftwareSerial xbee = SoftwareSerial(xbeeRx, xbeeTx) Xbee = new Serial(this, Serial.list(), 9600) you might need to change the Serial.list() Println(Serial.list()) // print list of available serial ports This are the sketches that I’ve created, but I do no get connect them and no receive any data: I had found a lot of examples, were the Arduino send data to Processing, but neither in the other direction (From Processing to Arduino). The configuration of the XBEEs were done, and works well, I just need to program the communication from Processing to Arduino through the Serial Port. I’m trying to communicate two XBEE S1 modules between the computer and an Arduino Mega, in AT mode. I’m writing here hoping that someone will be able to help me… Thanks in advance )
0 Comments
Leave a Reply. |