Advanced Search

Search Results (Searched for: raspberry)

  • AndyCNC
  • AndyCNC
25 May 2025 15:49

Not able to get outputs on GPIO of Raspberry5

Category: Installing LinuxCNC

Hi,
I'm a bit desperate. I want to replace my very old pc based linuxcnc with the actual version running on a raspberry pi 5.
I've been trying to get signals to the pin header for a day now.
First of all: Is there a tutorial for raspberry configuration? I found nothing except the general docu and then went from one error message to another.
What I did is:
1. Started Stepconf wizard
2. Replaced parallel port Pins with hal_gpioxxx, see attached hal file

File Attachment:

File Name: AndyCNC.hal
File Size:3 KB

When I start this Setup following error occurs:  

File Attachment:

File Name: linuxcnc_report.txt
File Size:6 KB


This was my try to set the PINs:
halcmd: loadrt hal_gpio inputs=PIN3,PIN5,PIN7 outputs=PIN5,PIN6,PIN9,PIN10,PIN11,PIN17,PIN22,PIN27
Note: Using POSIX realtime
The GPIO line PIN3 can not be found
hal_gpio: rtapi_app_main: Operation not permitted (-1)
<stdin>:12: waitpid failed /usr/bin/rtapi_app hal_gpio
<stdin>:12: /usr/bin/rtapi_app exited without becoming ready
<stdin>:12: insmod for hal_gpio failed, returned -1
halcmd: Note: Using POSIX realtime

Would be nice if onyone could show my where I'm wrong.

Andy

 
  • mikereid0817
  • mikereid0817
21 May 2025 21:06

unable to get gpio to work on Raspberry Pi 5 using latest image

Category: Advanced Configuration

Thanks, Andy, you steered me in the right direction.

GPIO13 would not work at all, continuing to research that.

GPIO25, once pullup=GPIO25 was added, works.

I only have 1 limit switch setup, so I'm fully functional with the official image, Byte2Bot board, and my old Probotix motor driver setup.  Attached are the .hal and .ini files that worked, and my config.txt

 

File Attachment:

File Name: cncrouter.hal
File Size:3 KB

File Attachment:

File Name: cncrouter.ini
File Size:3 KB

File Attachment:

File Name: config.txt
File Size:3 KB
  • andypugh
  • andypugh's Avatar
20 May 2025 11:27

unable to get gpio to work on Raspberry Pi 5 using latest image

Category: Advanced Configuration

Hi Andy... I am muddling my way through this and have things working really well, except inputs. Gpio reads gpio13 fine in python, hal_gpio always shows high in hal scope, meter etc. Any ideas? Is there a way to set gpio characteristics with hal?
 

You can try setting the various modifiers for GPIO13 and see if that helps.
opendrain
opensource
biasdisable
pulldown
pullup
As described in linuxcnc.org/docs/devel/html/drivers/hal_gpio.html#_usage

I am not clear if you are saying that it is always set and the input can not be changed, even if pulled low?

Have you checked with gpioinfo that nothing is claiming the pin?
 
  • unknown
  • unknown
20 May 2025 06:50
Replied by unknown on topic Important Info Regarding Rpi4/5 Images.

Important Info Regarding Rpi4/5 Images.

Category: Computers and Hardware

For the Linuxcnc Raspberry Pi images just don't do dist-upgrade, it will break things, this has been proven.

You get get away without doing any kind of upgrade.

If you are worried about security, updates are only a small part of the picture. The first step should always be physical security, which should be the number one priority with a computer running a cnc machine.I'd take data loss over damage to a cnc machine any day of the week, you can't back up a cnc machine.
  • unknown
  • unknown
20 May 2025 02:23

unable to get gpio to work on Raspberry Pi 5 using latest image

Category: Advanced Configuration

If you want help, you will have to upload your hal & ini files, otherwise no one knows exactly what you are doing.
Displaying 346 - 350 out of 350 results.
Time to create page: 2.046 seconds
Powered by Kunena Forum