Loading...
Logo
Processing Forum
alan.spillane1's Profile
2 Posts
0 Responses
0 Followers

Activity Trend

Last 30 days

Loading Chart...

Show:
Private Message
    Hi I'm just wondering is it possible to use 2 serial ports at the same time. I have an rfid reader plugged into 1 usb port and I have an arduino with a sensor in a second usb port and I'm just wondering is it possible to use these 2 ports and what kind of set up I would have to include to do so. I have already attempted it by opening the port in the same fashion just choosing a different serial port in the code but am currently having no luck.
    1.  //Arduino
        myPort = new Serial(this, Serial.list()[0], 9600);
        oscP5 = new OscP5(this,12000);
        myRemoteLocation = new NetAddress("127.0.0.1",12000);

    2. //RFID
        String portnum=Serial.list()[1];
        myPort2= new Serial(this, portnum, 9600);
        myPort2.buffer(16);
    Hi,
    I'm relatively new to processing and I'm currently looking for a way to slow/speed up audio with an arduino based on the turning of a handle kind of like a jack in the box or an antique gramophone and I was just wondering if anyone could point me in the right direction as I can't find any audio libraries that allow me to do this. Any help would be greatly appreciated!!