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 (view all EZB hardware)
Raspberry Pi by Pi Foundation
Run Synthiam ARC on Raspberry Pi 4+ with Windows 11 for robot control; use external EZB/Arduino for reliable I/O, SSD/USB storage recommended
Wi-Fi
Servos
Camera
Audio
UART
I2C
ADC
Digital

Related Robot Skills (view all robot skills)
Read Digital by Synthiam
Read TTL digital input from an ARC I/O port; real-time red/green status for low (0V) or high (+3.3/5V), selectable board/port and read interval.
Set Digital by Synthiam
Toggle a digital I/O port between TTL low (0V) and high (3.3V/5V) in ARC; select board and port, simple on/off control-signal only.

ARC Pro

Upgrade to ARC Pro

With Synthiam ARC Pro, you're not just programming a robot; you're shaping the future of automation, one innovative idea at a time.

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

Author Avatar
PRO
USA
#10  

And ezbpi server can toggle the gpio18 / port 18?

#11  

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

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

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

Author Avatar
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