France
Asked

Ezbpi Server - Access To The Pi Gpios

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

ARC Pro

Upgrade to ARC Pro

Discover the limitless potential of robot programming with Synthiam ARC Pro – where innovation and creativity meet seamlessly.

#9  

Update:

Ok, all commands work now after some reading in the Pi forums. I had to run:

echo "18" > /sys/class/gpio/export

Then, I have successfully toggle the led.

PRO
USA
#10  

And ezbpi server can toggle the gpio18 / port 18?

#11  

No, no success with ARC via the ezbpi server...

PRO
USA
#12  

One question the led should switch ON with digital ON or digital OFF ?

#13  

On the EZB v4, the led is switched ON with digital ON.

PRO
Canada
#14  

There was an issue with setting the pin to LOW and also with reading its value. I tested it and it works now (port mappings are GPIOX <> DX as already mentioned). I have uploaded a new version 5 here https://synthiam.com/Firmware/EZBPi-Server-SXQJXC3FIQ5.

Please give it a try and let me know how it goes.

User-inserted image

#15  

Hi Amin,

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...

PRO
USA
#16  

@fredebec

Please post the output of the following commands:

cat /sys/firmware/devicetree/base/model
cat /proc/cpuinfo
cat /etc/os-release
uname -a
gpio -v
pip show rpi.gpio