I'm trying to use the GPIO from my Pi Zero in Domoticz (Version: 3.4834).
I've installed Wiring Pi. OK
Ive added this /usr/local/bin/gpio export 17 in in the /etc/init.d/domoticz.sh file and rebooted the Pi.
Now i connect the Pin 11 (GPIO 17) to the ground. The gpio exports give me :
Code: Select all
pi@Dz-PiZero1:~$ gpio exports
GPIO Pins exported:
17: in 0 none
Code: Select all
pi@Dz-PiZero1:~$ gpio exports
GPIO Pins exported:
17: in 1 none
Next step, I configure a new switch "contact" in DZ with the gpio 17.
The switch status is always Closed.For inputs
Select the GPIO port hardware you just configured, give it a name, select the "Contact" switch type and a "GPIO" type. You can now select the pin in the list. Obviously, the ones you configured above should not start with the "! NON EXPORTED" mention. Then click "Add Device". The mention "open/closed" corresponds to a switch connected between the pin and the ground, with the pin also connected to a pull-up (as you have read on the wiringPi website, some GPIO have an internal permanent pull-up.
When the GPIO exports is 17: in 0 none, the switch is closed
When the GPIO exports is 17: in 1 none, the switch is closed
i don't understand.
somebody have any idea ?
Thank's a lot an sorry for my bad english