Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPIO on Orange Pi #17

Open
robkettridge opened this issue Apr 2, 2020 · 4 comments
Open

GPIO on Orange Pi #17

robkettridge opened this issue Apr 2, 2020 · 4 comments

Comments

@robkettridge
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants