dchote / talkiepi

The talkiepi project is for a truly headless mumble client for the Raspberry Pi, utilizing static config and GPIO for status LEDs and a button for push to talk
Mozilla Public License 2.0
271 stars 107 forks source link

GPIO on Orange Pi #17

Open robkettridge opened 4 years ago

robkettridge commented 4 years ago

Have installed this on an Orange Pi Zero which is working fine, can connect to the server, can get audio out of it, but I can't seem to get the GPIO to work. I can access them via Python but not really sure where to start with this Go code. Any thoughts of where to look? I've tried various settings for the pins in talkiepi.go but I feel it's a deeper issue than that. During installation the first issue is that there's no GPIO group and the whole handling of the GPIOs seems to be different.

WaffleTime16 commented 4 years ago

Not on Orange Pi Zero, however I've tried to get it running on a Pi 2 running Buster and have the same symptoms. It seems the GPIO pin 25 defaults low and nothing will get it to remain high. I can run GPIOtest and see that my switch is working correctly after manually setting pin 25 high, but as soon as it exits it will have no effect on talkiepi.

eightbit88 commented 4 years ago

Hi robkettridge, sorry but start with the basics. What OS do you run? You can create a GPIO group b running the following command, sudo groupadd [groupname] and you can add users to the group sudo usermod -a -G [groupname] [username]. I'm also interested to see if I can make this work on the orange Pi Zero. I'm busy with another project right now but will get back to it this year.

WaffleTime16 commented 4 years ago

One thing I discovered in getting talkiepi running was that it doesn't seem to play nice with Buster. I ran into trouble with the GPIO like I said, but it seems to have something to do with RPIO which I think is used to communicate with the pins? The other issue is that that the version of GoLang that automatically downloads with apt-get for Stretch is not recent enough to work with TalkiePi. Manually installing the latest version worked fine. I'm no expert, but hopefully that might help someone who is!

zrdimetc commented 2 years ago

Orange Pi Zero doesn't have internal pull-up resistors for reliable button operation. Raspberry Pi boards have internal pull-ups. Some GPIO pins in Orange Pi Zero 26-pin header will work more reliably as button inputs than other. Once you wire the buttons with pull-up resistors, you will find that GPIO inputs work reliably.