PiFace input problem

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
happyman
Posts: 10
Joined: Monday 06 June 2016 11:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

PiFace input problem

Post 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?
happyman
Posts: 10
Joined: Monday 06 June 2016 11:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: PiFace input problem

Post by happyman »

After lots of possible solutions I inserted a resistor in serie and the problem seems to be over.
peterjoosen
Posts: 3
Joined: Wednesday 04 January 2017 14:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Arendonk
Contact:

Re: PiFace input problem

Post by peterjoosen »

Hello,
Can you tell me what resistor(=??? Ohm) you used to solve the problem?

Best regards,
Peter
Jan Jansen
Posts: 229
Joined: Wednesday 30 April 2014 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: PiFace input problem

Post by Jan Jansen »

The contact must connect the input to the ground. The circuit must have as little resistance as possible.
Jan Jansen
Posts: 229
Joined: Wednesday 30 April 2014 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: PiFace input problem

Post 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
happyman
Posts: 10
Joined: Monday 06 June 2016 11:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: PiFace input problem

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest