
fredebec
France
Asked
Hi,
I have successfully connected ARC to the Pi using the EZBPi server, but I don't understand how to access the GPIOs of the Pi.
If I want to set or read a digital port, how do I know which port in ARC correspond the right GPIO pinout?
Related Hardware Raspberry Pi
Related Controls
Read Digital
Set Digital
you can’t wire a led without a resistor.
It works also on the Pi if I plug it on the 3.3v pinout (+ground). It just seems that i cannot set digital on other GPIOs...
connect your led (and the resistor) to pin 12 (GPIO 18)
open a console and run the commands below:
initialize the pin direction:
Code:
switch on:
Code:
switch off:
Code:
Let me know if you can toggle the led.
But first command, first error.
Code:
I don't have a /gpio18 folder in /sys/class/gpio
Ok, all commands work now after some reading in the Pi forums. I had to run:
Then, I have successfully toggle the led.Code:
Please give it a try and let me know how it goes.
Thanks for your help and the new firmware.
Sadly, it is not working and I still cannot switch ON the led.
When I add the "read digital" control on the same port 18, it doesn't go green when i put the "set digital" ON. Moreover, when I put the "read digital" control on the same port than "set digital" control, this later does not stay green when I click on it and go back to red immediately. I don't know if that makes ant sense to you...
Please post the output of the following commands:
Code:
Code:
Code:
Code:
Code:
Code:
Code:
Code:
Code:
Code:
Code:
Code:
Here is what happens if I set the port on & off and disconnect
Code:
Here is what happens if I do the same but with the "read digital" control
Code:
Also, I don't know if it is off any help, but when I run the EZBPi server, I can still run the Pi commands
and successfully switch on the led, without any interference or impact on the EZBPi server or ARC...Code:
Just for you to know, I am still not able to use the Digital control...
Another thing I have observed is that there is a 1-2 seconds latency when I use the PiCamera through ARC. There is no latency when I use a PiCam program.
So, not much luck for me with the EZBPiServer so far...
I have the same issue digital ports don't work too.
I wrote an EZB Server version codename:Blueberry Server inline with Raspberry and B for Blueberry
Check the instructions:
https://synthiam.com/Firmware/EZB-Server-BlueBerry-Server-DBJJ5DRNAAH
Audio is supported, but is deactivated on the code.
If you want explore more my implementation drop some posts on the above thread.
Cool, thanks. For sure, I am going to test it.
See you on the other thread...