Call for Help

More
08 Feb 2023 13:15 #264042 by Dummey
Call for Help was created by Dummey
Hi guys,

first of all: i TRIED to find an answer by myself using this forum/Youtube. But i think that im kinda stupid, because i cannot get my CNC running with LinuxCNC and a Raspberry Pi 4 with 8GB to move. No matter what i do/or dont do.. the machine doesnt move. The status right now: I tried only to connect 4 motors(2 on Y, 1 on Y and 1 on Z).. no endswitches, no emrgency button yet.

So i tried hooking up my STEP/DIR to the GPIOs of the Raspberry Pi... and boom! I have no idea how or where to configure this HAL. Is there like a tutorial for really stupid people?! I have my DIR of X connected to GPIO18, Y1-Dir on GPIO 23 and Y2-Dir on GPIO24, Z-Dir is on GPIO25. My X STEP is on GPIO12, my Y1 - STEP is on GPIO16, Y2- STEP is on GPIO20, Z-STEP is on GPIO21.
The enable Pin for all 4 motors is on GPIO26. 

I tried everything i can.. But nothing moves.. Can someone give me an idiot proof example on how to configurate this? I lost two days last weekend and im really frustrated. Thanks a lot in advance. The community here seems to be awesome.

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

More
09 Feb 2023 13:16 #264131 by JT
Replied by JT on topic Call for Help
AFAIK the GPIO on a Rpi is not accessible in HAL

JT

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

More
09 Feb 2023 23:01 #264178 by andypugh
Replied by andypugh on topic Call for Help

AFAIK the GPIO on a Rpi is not accessible in HAL


That's not the case, it can be driven with the hal_pi_gpio driver.

It does not seem to be well documented, but there is a sample HAL file that should work for you with minor tweaks:

github.com/LinuxCNC/linuxcnc/blob/9e28b3...hal_pi_gpio_demo.hal

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

More
10 Feb 2023 22:48 #264260 by Dummey
Replied by Dummey on topic Call for Help
Hi Andy, wooow thank you very much... your short answer solves a lot of questions already. Thx (But they did really "hide" that gpio_demo.hal file.. ^^) Do i need to install this driver? Or is it just the HAL file i have to generate? There is also an INI file.. Do i have to manipulate this one too?

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

Time to create page: 0.048 seconds
Powered by Kunena Forum