Page 1 of 1

PiFace input problem

Posted: Monday 28 November 2016 19:01
by happyman
Hi,

I'm using a PiFace board on my RaspberryPi3. It is working fine.
I use 4 outputs, 2 ON/OFF switches and 1 button. This works fine.

Today I wanted to add another input switch, but then something strange happens.
It is an normal ON/OFF Switch with 5mtr of coax cable.

When the contact is made, it is shown in domoticz.
When the contact is open (after it was made) the input in domoticz keeps switching on and off.
When I disconnect the cable it stops.....

The piface.conf file is build like this.

Code: Select all

piface.0.input.3.enabled=true
piface.0.input.3.pin_type=level
piface.0.input.3.count_enabled=false
piface.0.input.3.count_type=generic
piface.0.input.3.count_update_interval_sec=1
Anyone an Idea?

Re: PiFace input problem

Posted: Saturday 03 December 2016 14:58
by happyman
After lots of possible solutions I inserted a resistor in serie and the problem seems to be over.

Re: PiFace input problem

Posted: Thursday 01 June 2017 23:10
by peterjoosen
Hello,
Can you tell me what resistor(=??? Ohm) you used to solve the problem?

Best regards,
Peter

Re: PiFace input problem

Posted: Friday 02 June 2017 13:38
by Jan Jansen
The contact must connect the input to the ground. The circuit must have as little resistance as possible.

Re: PiFace input problem

Posted: Friday 02 June 2017 13:41
by Jan Jansen
I use:
piface.1.input.1.enabled=true
piface.1.input.1.pin_type=level
piface.1.input.1.count_enabled=false
piface.1.input.1.count_update_interval_sec=10

Re: PiFace input problem

Posted: Friday 12 January 2018 18:23
by happyman
peterjoosen wrote: Thursday 01 June 2017 23:10 Hello,
Can you tell me what resistor(=??? Ohm) you used to solve the problem?

Best regards,
Peter
Hi,
I used a 4k7 resistor.