HAL Driver for Raspberry PI GPIOs

More
6 years 3 months ago - 6 years 3 months ago #175120 by Markyd
Apologies for what will be a really basic question; how do I run LinuxCNC with / load the hal_pi_gpio hal file? I've installed linucCNC to my rpi4 but I'm now stuck. I want to try gpio before forking out for a mesa board such as the 7i96.
Last edit: 6 years 3 months ago by Markyd. Reason: typo

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

  • twoflowers
  • New Member
  • New Member
More
6 years 3 months ago #175125 by twoflowers
Replied by twoflowers on topic HAL Driver for Raspberry PI GPIOs
Feel free to start with my forum.linuxcnc.org/media/kunena/attachme...17065/rpi3b-mill.tgz - it's just the configs, so it'll work on RPI4, too. But you will need to build the kernel + linuxcnc from git (there's a section in the wiki on how to do that - if you don't find tit, drop me a line).

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

More
6 years 3 months ago #175126 by tommylight
Do not know for kernel, but you do not have to build Linuxcnc from GIT on the RPI, there are ready made debs for ARMF here
buildbot.linuxcnc.or/dists

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

More
6 years 3 months ago #175128 by Markyd
Thanks for the the files. The bit I'm stuck with is what to do with the files, where do i put them and how do i tell linuxCNC to use them. I'm an absolute beginner to LinuxCNC and all the tutorials I've looked at seem to start with Stepconf which I assume i can't use if i want to use the GPIO port?

Can I work from the version of linuxcnc I have already installed (I used this tutorial gnipsel.com/linuxcnc/uspace/rpi4-rt.html ) ?

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

More
6 years 3 months ago #175131 by tommylight
Download the attachment, extract it, open the folder, right click on the file with the .ini extension, choose "open with", on the list of apps near the bottom enter linuxcnc.

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

More
5 years 10 months ago #192526 by Markyd
I eventually got this up and running, thanks to everyone's assistance.

I'm having problems trying to invert the enable pin and can't for the life of me work out what I'm doing wrong. I have the following
Code:
net xenable => hal_pi_gpio.pin-29-out setp hal_pi_gpio.pin-29-out.invert_output TRUE net xstep stepgen.0.step => hal_pi_gpio.pin-32-out net ystep stepgen.1.step => hal_pi_gpio.pin-23-out net zstep stepgen.2.step => hal_pi_gpio.pin-36-out net xdir stepgen.0.dir => hal_pi_gpio.pin-24-out net ydir stepgen.1.dir => hal_pi_gpio.pin-19-out net zdir stepgen.2.dir => hal_pi_gpio.pin-40-out

but get a 'parameter or pin not found' error when loading the HAL file. What am i doing wrong?

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

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