HAL Driver for Raspberry PI GPIOs

More
6 years 5 months ago #166644 by juscious
Hi,

I am new to this, but i badly need to make Linux cnc to work with RPI GPIO outputs. Maybe someone could share like a working example of configs?
Or maybe someone please explain step by step how to do it.

Thanks in advance.

Please Log in or Create an account to join the conversation.

  • twoflowers
  • New Member
  • New Member
More
6 years 5 months ago #166648 by twoflowers
Replied by twoflowers on topic HAL Driver for Raspberry PI GPIOs
This is from my wooden mill ... enjoy :)

File Attachment:

File Name: rpi-config.tgz
File Size:19.08 KB

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago - 6 years 5 months ago #166653 by juscious
Thanks very much !

I get error hal_gpio: dlopen: /usr/lib/linuxcnc/modules/hal_gpio.so cannot open shared object file.

In directory there is only closest to it hal_bb_gpio.so...

Maybe i could get that file too please?
Last edit: 6 years 5 months ago by juscious.

Please Log in or Create an account to join the conversation.

  • twoflowers
  • New Member
  • New Member
More
6 years 5 months ago - 6 years 5 months ago #166662 by twoflowers
Replied by twoflowers on topic HAL Driver for Raspberry PI GPIOs
oh, sorry, please use "hal_pi_gpio" and you'll need linuxcnc 2.8, the gpio driver for rpi is included in linuxcnc since some months now.
Last edit: 6 years 5 months ago by twoflowers.

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #166670 by juscious
Thanks again !

Wouldnt managed myself to do so much. You are a savior :). Changed to hal_pi_gpio. Seems like everything works, getting some weird end stop errors, but from this point everything is manageable.

Anyways, i will analyze, and actually i have a task of doing SCARA robot control using LinuxCNC via RPI GPIO. Now feeling quite comfortable.

Please Log in or Create an account to join the conversation.

  • twoflowers
  • New Member
  • New Member
More
6 years 5 months ago #166677 by twoflowers
Replied by twoflowers on topic HAL Driver for Raspberry PI GPIOs
Oh, I had erratic endstop triggering, too. I used software debouncing and they were gone. Here is the hal-file with debouncing - sorry, the last config was an old backup. Please test:

File Attachment:

File Name: rpi3b-mill.tgz
File Size:4.02 KB

Please Log in or Create an account to join the conversation.

Moderators: PCW, jmelson
Time to create page: 0.291 seconds
Powered by Kunena Forum