Touch Keypad Phidget firing ghost input if other phidget plugged in

Supporting Java SE version 7 and up
Post Reply
Node
Fresh meat
Posts: 2
Joined: Tue May 17, 2022 1:11 am
Contact:

Touch Keypad Phidget firing ghost input if other phidget plugged in

Post by Node »

Hello,
I've been experimenting with phidgets for a project of mine.
However, I run into a problem. For this project to work I need to have a Touch Keypad Phidget and a PhidgetRFID Read-Write plugged in at the same.
The idea being to link a code that would be inputed by the touch keypad to a RFID tag.
The rough code for the touch keypad I came up with worked, here it is:

Code: Select all

@Override
public void openComs() {
    try {
        addListeners();
        zeroButton.open(5000);
        oneButton.open(5000);
        twoButton.open(5000);
        threeButton.open(5000);
        fourButton.open(5000);
        fiveButton.open(5000);
        sixButton.open(5000);
    } catch (PhidgetException ex){
        System.err.println(ex.getMessage());
    }
}
private void addListeners() {
    zeroButton.addTouchListener((cl) -> {
        inputBuffer.add(0);
        checkCallback();
    });
    oneButton.addTouchListener((cl) -> {
        inputBuffer.add(1);
        checkCallback();
    });
    twoButton.addTouchListener((cl) -> {
        inputBuffer.add(2);
        checkCallback();
    });
    threeButton.addTouchListener((cl) -> {
        inputBuffer.add(3);
        checkCallback();
    });
    fourButton.addTouchListener((cl) -> {
        inputBuffer.add(4);
        checkCallback();
    });
    fiveButton.addTouchListener((cl) -> {
        inputBuffer.add(5);
        checkCallback();
    });
    sixButton.addTouchListener((cl) -> {
        inputBuffer.add(6);
        checkCallback();
    });
}
So far everything works fine, however the problem starts whenever I try to use the RFID reader. Like this:

Code: Select all

@Override
public void openComs() {
    try{
        rfidReader.addTagListener((e)->{
            parent.onRFIDReadCallback(e.getProtocol(), e.getTag());
        });
        rfidReader.open(5000);
    }catch (PhidgetException ex){
        System.err.println(ex.getMessage());
    }
}
This also works fine, the RFID tags get read without a problem. But, the touch keypad starts raising events when it shouldn't seemingly at random. I've looked online but couldn't find anything about this problem.
Is this a known issue and if so could you point me in the right direction, it would be really appreciated.

Have a nice day

PS:
I've already tried to change the RFID reader as well as the touch keypad. It doesn't change anything.
User avatar
mparadis
Site Admin
Posts: 959
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Touch Keypad Phidget firing ghost input if other phidget plugged in

Post by mparadis »

If the touch keypad is right next to the 1024, the electric field that the 1024 generates in order to activate nearby RFID tags would interfere with the capacitive sensors on the touch keypad. You'll need to space them ~15cm apart to ensure that it's not affected.
Node
Fresh meat
Posts: 2
Joined: Tue May 17, 2022 1:11 am
Contact:

Re: Touch Keypad Phidget firing ghost input if other phidget plugged in

Post by Node »

Hello,

This seems to be in fact the problem after spacing them out ~30cm it stopped causing issues. This being my first time using more than a computer to code dumb mistakes like this are expected I guess. :lol:

Anyway, thanks a lot !
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests