Hello, I hope I am writting this question in the right section.
I have a rpi4B running with latest stable released Domoticz (2024.01)which among other things is using GPIO (pin 4) to detect if someone attempt to ring the bell at the entrance of my house.
This works very well using GPIO Sysfs and this declaration made at each boot:
sudo sh -c 'echo 4 > /sys/class/gpio/export'
sudo sh -c 'echo in > /sys/class/gpio/gpio4/direction'
sudo sh -c 'echo both > /sys/class/gpio/gpio4/edge'
My surprise comes from the rpi5 ). I found on it the gpio are completely changed but after many tries and error, it seems converting my 3 lines from the pi4 to:
sudo sh -c 'echo 403 > /sys/class/gpio/export'
sudo sh -c 'echo in > /sys/class/gpio/gpio403/direction'
sudo sh -c 'echo both > /sys/class/gpio/gpio403/edge'
gives the expected result at least using commands to check the state of my gpio:
pi@Pie5B:~ $ cat /sys/class/gpio/gpio403/value
1
pi@Pie5B:~ $ cat /sys/class/gpio/gpio403/value
0
pi@Pie5B:~ $ cat /sys/class/gpio/gpio403/value
0
pi@Pie5B:~ $ cat /sys/class/gpio/gpio403/value
1
The problem seems to come from Domoticz where it seems to detect 2 entries but none are working (change state when I put my GPIO to ground):
Has anyone already successfully used GPIO on Pi5 with Domoticz ? I read here and there that everything changed that Sysfs is depreciated but I see no alternative to it and second I get the impression the sysfs works when I run the command for my GPIO from a terminal so cannot see why Domoticz would not work.
Any help will be greatly apprecaited.
Rpi5 GPIO with Domoticz
Moderator: leecollings
-
- Posts: 8
- Joined: Wednesday 24 July 2019 8:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
-
- Posts: 630
- Joined: Saturday 21 September 2019 17:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.1
- Location: The Netherlands
- Contact:
Re: Rpi5 GPIO with Domoticz
Do a search for Rpi5 and you will find exactly the same issue here
viewtopic.php?p=311298&hilit=Rpi5#p311298
viewtopic.php?p=311298&hilit=Rpi5#p311298
-
- Posts: 8
- Joined: Wednesday 24 July 2019 8:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Rpi5 GPIO with Domoticz
Hello, thanks for your reply. I indeed saw this post but I am not sure of the conclusion this should take me to. I am happy to use libgpio or anything else . According to you is this doable or not ? I am under the impression that that do motive would need to change from sysfs for this to work. At the same time you else see some other referring that sysfs even if deprecated should still work. At the end of the day all I care to find is a way to make it work whatever is the mean.
Thanks
Thanks
-
- Posts: 8
- Joined: Wednesday 24 July 2019 8:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Rpi5 GPIO with Domoticz
I will add my question to the other post though. Thanks
Who is online
Users browsing this forum: No registered users and 0 guests